2584 Commits
Author SHA1 Message Date
Timofey Solomko d0dcfe7367 Make tar's fileTypeIndicator UInt8 instead of String 2017-10-11 14:21:43 +03:00
Timofey Solomko 6a1903eb8e Remove a lot of temporary properties related to name and linkName from TarEntryInfo
Also, rename linkPath to linkName
2017-10-11 14:18:23 +03:00
Timofey Solomko fe7afa9542 Adopt changes to Tar in tests 2017-10-11 14:03:40 +03:00
Timofey Solomko 07eda575df Remove isDirectory, isLink and tarType and add proper type property to TarEntryInfo 2017-10-11 14:02:05 +03:00
Timofey Solomko fc334ddfea Add two proeprties to TarEntryInfo which indicate if it is an extended header 2017-10-11 14:01:26 +03:00
Timofey Solomko 19b5380e01 Add ContainerEntryType extension: intializer from tar's fileTypeIndicator 2017-10-11 14:00:39 +03:00
Timofey Solomko 67331531a9 Add two more cases to ContainerEntryType (tar related) 2017-10-11 14:00:03 +03:00
Timofey Solomko b6be23eb6d Slightly update docs comments 2017-10-11 13:47:23 +03:00
Timofey Solomko e6c6665612 Adapt 7-zip tests to the latest changes 2017-10-11 13:32:50 +03:00
Timofey Solomko 9c30320d92 Add proper type setting for 7-Zip and remove isDirectory 2017-10-11 13:32:31 +03:00
Timofey Solomko 6417c6af73 Make type non-optional in Tar and Zip 2017-10-11 13:32:07 +03:00
Timofey Solomko d16f36c18e Add initializer from UnixType into ContainerEntryType 2017-10-11 13:30:58 +03:00
Timofey Solomko 188b39372a Extract protocols into separate files 2017-10-11 13:10:38 +03:00
Timofey Solomko 1fe3aed4c1 Extract ContainerEntryType into separate file and add some cases 2017-10-11 13:09:12 +03:00
Timofey Solomko 2370dffbdb Extract Container related protocols into separate file and rename folder 2017-10-11 13:00:03 +03:00
Timofey Solomko 20840aae41 Extract some types from 7-zip into separate files 2017-10-11 12:56:49 +03:00
Timofey Solomko 1e745e08a9 Update Zip tests 2017-10-10 16:37:08 +03:00
Timofey Solomko d6d29f32d4 Restore conformance of Zip classes to Container... protocols
Also remove unnecessary code from ZipEntry
2017-10-10 16:36:56 +03:00
Timofey Solomko 0a2003380d Add ZipEntryInfo class 2017-10-10 16:24:38 +03:00
Timofey Solomko 4e6f5f368a Extract XZ related DataWithPointer extension into separate file 2017-10-08 22:10:14 +03:00
Timofey Solomko 66cf5ee116 Extract 7z related BitReader extension into separate file 2017-10-08 22:07:52 +03:00
Timofey Solomko b0d0a90365 Update tar tests 2017-10-08 22:04:20 +03:00
Timofey Solomko 45ab158717 Make TarContainer conform to Container protocol 2017-10-08 22:04:05 +03:00
Timofey Solomko 0a180789bb Remove info-related code from TarEntry 2017-10-08 20:34:16 +03:00
Timofey Solomko b99b062534 Add TarEntryInfo class 2017-10-08 20:32:51 +03:00
Timofey Solomko 4a9fbc4ff5 Extract tar specific extensions into separate files 2017-10-08 20:32:39 +03:00
Timofey Solomko 9c44244b24 Remove TarError.wrongUstarVersion 2017-10-08 20:19:40 +03:00
Timofey Solomko e36c22f707 Fix some inconsistencies with size and data in SevenZip in different cases (dir, empty file, anti file) 2017-10-08 20:18:33 +03:00
Timofey Solomko f681de517b Update SevenZipTests 2017-10-08 20:03:33 +03:00
Timofey Solomko d8554e0131 Remove info-related properties and entryAttributes from SevenZipEntry and make it conform to ContainerEntry 2017-10-08 20:03:23 +03:00
Timofey Solomko a2540545c1 Conform SevenZipEntryInfo to corresponding protocol 2017-10-08 20:02:44 +03:00
Timofey Solomko 7a1243c3fa Make ContainerEntryInfo properties optional 2017-10-08 20:02:24 +03:00
Timofey Solomko 542f650433 Move some source files up in xcode project closer to container files 2017-10-08 19:52:03 +03:00
Timofey Solomko 76d3b9e4fa Fix warnings in tests code 2017-10-08 19:51:06 +03:00
Timofey Solomko bf763e53c0 Remove Container protocols conformance and make open(container:) methods return fixed types 2017-10-08 19:49:57 +03:00
Timofey Solomko f2807a1ec5 Start rework of Container API
Add associated types, add info protocol, remove entryAttributes, add entry type property and enum. Docs comments were also removed so I won't forget update documentation before release.
2017-10-08 19:47:23 +03:00
Timofey Solomko 7ea25c38b1 Update XZ tests with the removal of multiUnarchive 2017-10-08 16:17:28 +03:00
Timofey Solomko 7b6b729480 Remove XZArchive.multiUnarchive and make unarchive work with multi-streams
This was done, because, apparently, some real world archives (e.g. linux kernel source code archive) are multi-stream.
2017-10-08 16:16:41 +03:00
Timofey Solomko 7eacfe7ab6 Extract private functions for stages of bzip2 processing 2017-10-07 15:16:21 +03:00
Timofey Solomko 9abb475e2b Simplify write of used bytes map and selectors used in bzip2 2017-10-07 15:15:08 +03:00
Timofey Solomko 264e9b9e1e Extract private functions in bzip2 huffman code length generation 2017-10-07 15:14:00 +03:00
Timofey Solomko 9e02a88391 Reduce usage of for-where clause
Sometimes it is inappropriate and single if is more logical.
2017-10-07 13:09:55 +03:00
Timofey Solomko 5da624e75f Use new data slicing in bzip2 compress 2017-10-07 12:28:03 +03:00
Timofey Solomko 21467899db Use new reduce function in bzip2 decompress 2017-10-07 12:27:51 +03:00
Timofey Solomko 5353a2d68c Rename BZip2CompressTests to BZip2CompressionTests to match file name 2017-10-07 12:27:24 +03:00
Timofey Solomko 58768ba466 Revert change to suffix array
endIndex means the same thing as count in that context.
2017-10-07 12:26:56 +03:00
Timofey Solomko 8b22ff2b6a Update code with swift 4 changes to strings 2017-10-07 12:26:11 +03:00
Timofey Solomko 5b18623bc6 Update check sums code to iterate not over indices but elements 2017-10-07 12:25:07 +03:00
Timofey Solomko 7c6bdc296a Fix travis build error when there is no updates to carthage 2017-10-07 00:56:39 +03:00
Timofey Solomko b4bdd16b5e Fix compile problem on linux 2017-10-07 00:09:07 +03:00