diff --git a/.jazzy.yaml b/.jazzy.yaml
index a37058ae..f48e98ac 100644
--- a/.jazzy.yaml
+++ b/.jazzy.yaml
@@ -3,9 +3,9 @@ clean: true
exclude: Tests/
author: Timofey Solomko
module: SWCompression
-module_version: 2.4.2
+module_version: 3.0.0-test2
copyright: '© 2017 Timofey Solomko'
readme: README.md
github_url: https://github.com/tsolomko/SWCompression
-github_file_prefix: https://github.com/tsolomko/SWCompression/tree/v2.4.2
+github_file_prefix: https://github.com/tsolomko/SWCompression/tree/v3.0.0-test2
theme: fullwidth
diff --git a/CHANGELOG.md b/CHANGELOG.md
index ca4e3787..d621c8e9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,18 @@
# Changelog
v3.0.0
----------------
+#### test2
+- Added support for TAR containers.
+ - Various standards are supported (pre-POSIX, POSIX-1988, pax).
+ - Added subspec for TAR features.
+- Added Container protocol.
+ - Reworked ZipContainer to conform to new protocol.
+- All Errors cases renamed to conform Swift naming convetions (lowerCamelCase).
+- Removed LZMAOutWindow.
+- Test results combined into single document.
+- Reduced tests sizes.
+- Included 2.4.1 and 2.4.2 changes.
+
#### test1
- BZip2 decompression now checks CRC32.
- GZipHeader.modificationTime is now Optional.
diff --git a/SWCompression.podspec b/SWCompression.podspec
index 316a813b..707a68c2 100644
--- a/SWCompression.podspec
+++ b/SWCompression.podspec
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|
s.name = "SWCompression"
- s.version = "3.0.0-test1"
+ s.version = "3.0.0-test2"
s.summary = "Framework with implementations in Swift of different (de)compression algorithms"
s.description = <<-DESC
@@ -74,4 +74,9 @@ Pod::Spec.new do |s|
sp.pod_target_xcconfig = { 'OTHER_SWIFT_FLAGS' => '-DSWCOMP_ZIP_POD_BUILD' }
end
+ s.subspec 'TAR' do |sp|
+ sp.dependency 'SWCompression/Common'
+ sp.source_files = 'Sources/TarContainer.swift'
+ end
+
end
diff --git a/docs/Classes.html b/docs/Classes.html
index a23bc05d..7fa3b6d8 100644
--- a/docs/Classes.html
+++ b/docs/Classes.html
@@ -22,7 +22,7 @@
- (100% documented)
+ (75% documented)
LZMA2
+
+ TarContainer
+
+
+ TarEntry
+
+
+ – EntryType
+
XZArchive
ZipContainer
+
+ ZipEntry
+
ZlibArchive
@@ -96,6 +108,9 @@
LZMAError
+
+ TarError
+
XZError
@@ -113,6 +128,12 @@
Archive
+
+ Container
+
+
+ ContainerEntry
+
DecompressionAlgorithm
@@ -130,9 +151,6 @@
– FileSystemType
-
- ZipEntry
-
ZlibHeader
@@ -186,7 +204,7 @@
@@ -221,7 +239,7 @@
@@ -230,6 +248,37 @@
+ -
+
+
+
+
+
+
+
Represents either a file or directory entry inside ZIP archive.
+
+
See more
+
+
+
+
+
+
-
@@ -243,7 +292,7 @@
-
Provides function to open ZIP archives (containers).
+
Provides function which opens ZIP archives (containers).
See more
@@ -251,12 +300,12 @@
Declaration
Swift
-
public class ZipContainer
+
public class ZipContainer: Container
@@ -291,7 +340,7 @@
@@ -326,7 +375,7 @@
@@ -361,7 +410,7 @@
@@ -396,7 +445,73 @@
+
+
+
+
+
+
+
+ -
+
+
+
+
+
+
+
Represents either a file or directory entry inside TAR archive.
+
+
See more
+
+
+
+
+
+
+ -
+
+
+
+
+
+
+
Provides function which opens TAR archives (containers).
+
+
See more
+
+
+
Declaration
+
+
Swift
+
public class TarContainer: Container
+
+
+
+
@@ -431,7 +546,7 @@
@@ -445,7 +560,7 @@
+
+
+
+
+
+
+
+
+ SWCompression Reference
+
+ TarContainer Class Reference
+
+
+
+
+
+
+
+
+
TarContainer
+
+
Provides function which opens TAR archives (containers).
+
+
+
+
+
+
+
+
+ -
+
+
+
+
+
+
+
+
Declaration
+
+
Swift
+
public class TarContainer: Container
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/Classes/BZip2.html b/docs/Classes/BZip2.html
index 67a9d601..391621e7 100644
--- a/docs/Classes/BZip2.html
+++ b/docs/Classes/BZip2.html
@@ -23,7 +23,7 @@
- (100% documented)
+ (75% documented)
LZMA2
+
+ TarContainer
+
+
+ TarEntry
+
+
+ – EntryType
+
XZArchive
ZipContainer
+
+ ZipEntry
+
ZlibArchive
@@ -97,6 +109,9 @@
LZMAError
+
+ TarError
+
XZError
@@ -114,6 +129,12 @@
Archive
+
+ Container
+
+
+ ContainerEntry
+
DecompressionAlgorithm
@@ -131,9 +152,6 @@
– FileSystemType
-
- ZipEntry
-
ZlibHeader
@@ -212,7 +230,6 @@ It may indicate that either the data is damaged or it might not be compressed wi
Data compressed with BZip2.
-
|
@@ -222,10 +239,9 @@ It may indicate that either the data is damaged or it might not be compressed wi
Return Value
Decompressed data.
-
@@ -239,7 +255,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
diff --git a/docs/Classes/Deflate.html b/docs/Classes/Deflate.html
index dbb7637a..48b672aa 100644
--- a/docs/Classes/Deflate.html
+++ b/docs/Classes/Deflate.html
@@ -23,7 +23,7 @@
- (100% documented)
+ (75% documented)
LZMA2
+
+ TarContainer
+
+
+ TarEntry
+
+
+ – EntryType
+
XZArchive
ZipContainer
+
+ ZipEntry
+
ZlibArchive
@@ -97,6 +109,9 @@
LZMAError
+
+ TarError
+
XZError
@@ -114,6 +129,12 @@
Archive
+
+ Container
+
+
+ ContainerEntry
+
DecompressionAlgorithm
@@ -131,9 +152,6 @@
– FileSystemType
-
- ZipEntry
-
ZlibHeader
@@ -212,7 +230,6 @@ It may indicate that either the data is damaged or it might not be compressed wi
Data compressed with DEFLATE.
-
|
@@ -222,10 +239,9 @@ It may indicate that either the data is damaged or it might not be compressed wi
Return Value
Decompressed data.
-
@@ -265,7 +281,7 @@ static Huffman is used in all other cases.
@@ -279,7 +295,7 @@ static Huffman is used in all other cases.
diff --git a/docs/Classes/GzipArchive.html b/docs/Classes/GzipArchive.html
index 789b7b12..dd78db7f 100644
--- a/docs/Classes/GzipArchive.html
+++ b/docs/Classes/GzipArchive.html
@@ -23,7 +23,7 @@
- (100% documented)
+ (75% documented)
LZMA2
+
+ TarContainer
+
+
+ TarEntry
+
+
+ – EntryType
+
XZArchive
ZipContainer
+
+ ZipEntry
+
ZlibArchive
@@ -97,6 +109,9 @@
LZMAError
+
+ TarError
+
XZError
@@ -114,6 +129,12 @@
Archive
+
+ Container
+
+
+ ContainerEntry
+
DecompressionAlgorithm
@@ -131,9 +152,6 @@
– FileSystemType
-
- ZipEntry
-
ZlibHeader
@@ -219,7 +237,6 @@ It may indicate that either the data is damaged or it might not be compressed wi
Data compressed with gzip.
-
|
@@ -229,10 +246,9 @@ It may indicate that either the data is damaged or it might not be compressed wi
Return Value
Unarchived data.
-
@@ -289,7 +305,6 @@ It will be also specified that the compressor used slowest DEFLATE algorithm.
Data to compress and archive.
-
@@ -299,10 +314,9 @@ It will be also specified that the compressor used slowest DEFLATE algorithm.
Return Value
Data object with resulting archive.
-
@@ -316,7 +330,7 @@ It will be also specified that the compressor used slowest DEFLATE algorithm.
diff --git a/docs/Classes/LZMA.html b/docs/Classes/LZMA.html
index da30ab7b..7810dc32 100644
--- a/docs/Classes/LZMA.html
+++ b/docs/Classes/LZMA.html
@@ -23,7 +23,7 @@
- (100% documented)
+ (75% documented)
LZMA2
+
+ TarContainer
+
+
+ TarEntry
+
+
+ – EntryType
+
XZArchive
ZipContainer
+
+ ZipEntry
+
ZlibArchive
@@ -97,6 +109,9 @@
LZMAError
+
+ TarError
+
XZError
@@ -114,6 +129,12 @@
Archive
+
+ Container
+
+
+ ContainerEntry
+
DecompressionAlgorithm
@@ -131,9 +152,6 @@
– FileSystemType
-
- ZipEntry
-
ZlibHeader
@@ -212,7 +230,6 @@ It may indicate that either the data is damaged or it might not be compressed wi
Data compressed with LZMA.
-
|
@@ -222,10 +239,9 @@ It may indicate that either the data is damaged or it might not be compressed wi
Return Value
Decompressed data.
-
@@ -239,7 +255,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
diff --git a/docs/Classes/LZMA2.html b/docs/Classes/LZMA2.html
index 01f74f7d..644475ed 100644
--- a/docs/Classes/LZMA2.html
+++ b/docs/Classes/LZMA2.html
@@ -23,7 +23,7 @@
- (100% documented)
+ (75% documented)
LZMA2
+
+ TarContainer
+
+
+ TarEntry
+
+
+ – EntryType
+
XZArchive
ZipContainer
+
+ ZipEntry
+
ZlibArchive
@@ -97,6 +109,9 @@
LZMAError
+
+ TarError
+
XZError
@@ -114,6 +129,12 @@
Archive
+
+ Container
+
+
+ ContainerEntry
+
DecompressionAlgorithm
@@ -131,9 +152,6 @@
– FileSystemType
-
- ZipEntry
-
ZlibHeader
@@ -212,7 +230,6 @@ It may indicate that either the data is damaged or it might not be compressed wi
Data compressed with LZMA2.
-
|
@@ -222,10 +239,9 @@ It may indicate that either the data is damaged or it might not be compressed wi
Return Value
Decompressed data.
-
@@ -239,7 +255,7 @@ It may indicate that either the data is damaged or it might not be compressed wi
diff --git a/docs/Classes/TarContainer.html b/docs/Classes/TarContainer.html
new file mode 100644
index 00000000..bbf3179b
--- /dev/null
+++ b/docs/Classes/TarContainer.html
@@ -0,0 +1,231 @@
+
+
+
+
TarContainer Class Reference
+
+
+
+
+
+
+
+
+
+
+
+
+