From c14a36ca31d5f541bd70a0e072175c42cb289234 Mon Sep 17 00:00:00 2001
From: Timofey Solomko
Date: Sun, 21 May 2017 20:29:56 +0300
Subject: [PATCH] Preparation for 3.0.0-test2.
---
.jazzy.yaml | 4 +-
CHANGELOG.md | 12 +
SWCompression.podspec | 7 +-
docs/Classes.html | 145 +++-
docs/Classes/BZip2.html | 32 +-
docs/Classes/Deflate.html | 34 +-
docs/Classes/GzipArchive.html | 36 +-
docs/Classes/LZMA.html | 32 +-
docs/Classes/LZMA2.html | 32 +-
docs/Classes/TarContainer.html | 231 ++++++
docs/Classes/TarEntry.html | 718 ++++++++++++++++++
docs/Classes/TarEntry/EntryType.html | 477 ++++++++++++
docs/Classes/XZArchive.html | 34 +-
docs/Classes/ZipContainer.html | 224 +-----
docs/Classes/ZipEntry.html | 395 ++++++++++
docs/Classes/ZlibArchive.html | 36 +-
docs/Enums.html | 195 +++--
docs/Enums/BZip2Error.html | 172 +++--
docs/Enums/DeflateError.html | 76 +-
docs/Enums/GzipError.html | 100 ++-
docs/Enums/LZMA2Error.html | 88 ++-
docs/Enums/LZMAError.html | 112 +--
docs/Enums/TarError.html | 372 +++++++++
docs/Enums/XZError.html | 148 ++--
docs/Enums/ZipError.html | 185 +++--
docs/Enums/ZlibError.html | 86 ++-
docs/Protocols.html | 78 +-
docs/Protocols/Archive.html | 30 +-
docs/Protocols/Container.html | 217 ++++++
.../ContainerEntry.html} | 122 +--
docs/Protocols/DecompressionAlgorithm.html | 30 +-
docs/Structs.html | 67 +-
docs/Structs/GzipHeader.html | 64 +-
.../Structs/GzipHeader/CompressionMethod.html | 30 +-
docs/Structs/GzipHeader/FileSystemType.html | 38 +-
docs/Structs/ZlibHeader.html | 41 +-
docs/Structs/ZlibHeader/CompressionLevel.html | 36 +-
.../Structs/ZlibHeader/CompressionMethod.html | 30 +-
docs/badge.svg | 2 +-
.../Contents/Resources/Documents/Classes.html | 145 +++-
.../Resources/Documents/Classes/BZip2.html | 32 +-
.../Resources/Documents/Classes/Deflate.html | 34 +-
.../Documents/Classes/GzipArchive.html | 36 +-
.../Resources/Documents/Classes/LZMA.html | 32 +-
.../Resources/Documents/Classes/LZMA2.html | 32 +-
.../Documents/Classes/TarContainer.html | 231 ++++++
.../Resources/Documents/Classes/TarEntry.html | 718 ++++++++++++++++++
.../Documents/Classes/TarEntry/EntryType.html | 477 ++++++++++++
.../Documents/Classes/XZArchive.html | 34 +-
.../Documents/Classes/ZipContainer.html | 224 +-----
.../Resources/Documents/Classes/ZipEntry.html | 395 ++++++++++
.../Documents/Classes/ZlibArchive.html | 36 +-
.../Contents/Resources/Documents/Enums.html | 195 +++--
.../Resources/Documents/Enums/BZip2Error.html | 172 +++--
.../Documents/Enums/DeflateError.html | 76 +-
.../Resources/Documents/Enums/GzipError.html | 100 ++-
.../Resources/Documents/Enums/LZMA2Error.html | 88 ++-
.../Resources/Documents/Enums/LZMAError.html | 112 +--
.../Resources/Documents/Enums/TarError.html | 372 +++++++++
.../Resources/Documents/Enums/XZError.html | 148 ++--
.../Resources/Documents/Enums/ZipError.html | 185 +++--
.../Resources/Documents/Enums/ZlibError.html | 86 ++-
.../Resources/Documents/Protocols.html | 78 +-
.../Documents/Protocols/Archive.html | 30 +-
.../Documents/Protocols/Container.html | 217 ++++++
.../ContainerEntry.html} | 122 +--
.../Protocols/DecompressionAlgorithm.html | 30 +-
.../Contents/Resources/Documents/Structs.html | 67 +-
.../Documents/Structs/GzipHeader.html | 64 +-
.../Structs/GzipHeader/CompressionMethod.html | 30 +-
.../Structs/GzipHeader/FileSystemType.html | 38 +-
.../Documents/Structs/ZlibHeader.html | 41 +-
.../Structs/ZlibHeader/CompressionLevel.html | 36 +-
.../Structs/ZlibHeader/CompressionMethod.html | 30 +-
.../Contents/Resources/Documents/index.html | 40 +-
.../Contents/Resources/Documents/search.json | 2 +-
.../Contents/Resources/docSet.dsidx | Bin 45056 -> 57344 bytes
docs/docsets/SWCompression.tgz | Bin 99272 -> 104350 bytes
docs/index.html | 40 +-
docs/search.json | 2 +-
docs/undocumented.json | 288 ++++++-
81 files changed, 8056 insertions(+), 1827 deletions(-)
create mode 100644 docs/Classes/TarContainer.html
create mode 100644 docs/Classes/TarEntry.html
create mode 100644 docs/Classes/TarEntry/EntryType.html
create mode 100644 docs/Classes/ZipEntry.html
create mode 100644 docs/Enums/TarError.html
create mode 100644 docs/Protocols/Container.html
rename docs/{Structs/ZipEntry.html => Protocols/ContainerEntry.html} (71%)
create mode 100644 docs/docsets/SWCompression.docset/Contents/Resources/Documents/Classes/TarContainer.html
create mode 100644 docs/docsets/SWCompression.docset/Contents/Resources/Documents/Classes/TarEntry.html
create mode 100644 docs/docsets/SWCompression.docset/Contents/Resources/Documents/Classes/TarEntry/EntryType.html
create mode 100644 docs/docsets/SWCompression.docset/Contents/Resources/Documents/Classes/ZipEntry.html
create mode 100644 docs/docsets/SWCompression.docset/Contents/Resources/Documents/Enums/TarError.html
create mode 100644 docs/docsets/SWCompression.docset/Contents/Resources/Documents/Protocols/Container.html
rename docs/docsets/SWCompression.docset/Contents/Resources/Documents/{Structs/ZipEntry.html => Protocols/ContainerEntry.html} (71%)
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
+
+
+
+
+
+
+
+
+
+
+
+
+