Skip to content

Commit

Permalink
Merge branch 'hotfix-2.4.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
tsolomko committed May 25, 2017
2 parents 5ba3593 + ff0a2fc commit 0226de2
Show file tree
Hide file tree
Showing 69 changed files with 315 additions and 312 deletions.
4 changes: 2 additions & 2 deletions .jazzy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ clean: true
exclude: Tests/
author: Timofey Solomko
module: SWCompression
module_version: 2.4.2
module_version: 2.4.3
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/v2.4.3
theme: fullwidth
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Changelog
v2.4.3
----------------
- Fixed incorrect calculation of header's checksum for GZip archives.

v2.4.2
----------------
- Fixed a problem, where ZipEntry.fileName was returning fileComment instead.
Expand Down
2 changes: 1 addition & 1 deletion SWCompression.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "SWCompression"
s.version = "2.4.2"
s.version = "2.4.3"
s.summary = "Framework with implementations in Swift of different (de)compression algorithms"

s.description = <<-DESC
Expand Down
5 changes: 2 additions & 3 deletions Sources/GzipArchive.swift
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ public struct GzipHeader {
- Throws: `GzipError`. It may indicate that either the data is damaged or
it might not be compressed with gzip at all.
*/

public init(archiveData: Data) throws {
let pointerData = DataWithPointer(data: archiveData, bitOrder: .reversed)
try self.init(pointerData)
Expand Down Expand Up @@ -144,9 +143,9 @@ public struct GzipHeader {
var fnameBytes: [UInt8] = []
while true {
let byte = pointerData.alignedByte()
headerBytes.append(byte)
guard byte != 0 else { break }
fnameBytes.append(byte)
headerBytes.append(byte)
}
self.originalFileName = String(data: Data(fnameBytes), encoding: .utf8)
} else {
Expand All @@ -158,9 +157,9 @@ public struct GzipHeader {
var fcommentBytes: [UInt8] = []
while true {
let byte = pointerData.alignedByte()
headerBytes.append(byte)
guard byte != 0 else { break }
fcommentBytes.append(byte)
headerBytes.append(byte)
}
self.comment = String(data: Data(fcommentBytes), encoding: .utf8)
} else {
Expand Down
2 changes: 1 addition & 1 deletion Sources/Service/Info-iOS.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>2.4.2</string>
<string>2.4.3</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
Expand Down
2 changes: 1 addition & 1 deletion Sources/Service/Info-tvOS.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>2.4.2</string>
<string>2.4.3</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
Expand Down
2 changes: 1 addition & 1 deletion Sources/Service/Info-watchOS.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>2.4.2</string>
<string>2.4.3</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
Expand Down
2 changes: 1 addition & 1 deletion Sources/Service/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>2.4.2</string>
<string>2.4.3</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSHumanReadableCopyright</key>
Expand Down
18 changes: 9 additions & 9 deletions docs/Classes.html
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ <h4>Declaration</h4>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.4.2/Sources/LZMA2.swift#L38-L106">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.4.3/Sources/LZMA2.swift#L38-L106">Show on GitHub</a>
</div>
</section>
</div>
Expand Down Expand Up @@ -221,7 +221,7 @@ <h4>Declaration</h4>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.4.2/Sources/GzipArchive.swift#L182-L268">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.4.3/Sources/GzipArchive.swift#L181-L267">Show on GitHub</a>
</div>
</section>
</div>
Expand Down Expand Up @@ -256,7 +256,7 @@ <h4>Declaration</h4>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.4.2/Sources/ZipContainer.swift#L77-L236">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.4.3/Sources/ZipContainer.swift#L77-L236">Show on GitHub</a>
</div>
</section>
</div>
Expand Down Expand Up @@ -291,7 +291,7 @@ <h4>Declaration</h4>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.4.2/Sources/LZMA.swift#L44-L90">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.4.3/Sources/LZMA.swift#L44-L90">Show on GitHub</a>
</div>
</section>
</div>
Expand Down Expand Up @@ -326,7 +326,7 @@ <h4>Declaration</h4>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.4.2/Sources/ZlibArchive.swift#L125-L189">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.4.3/Sources/ZlibArchive.swift#L125-L189">Show on GitHub</a>
</div>
</section>
</div>
Expand Down Expand Up @@ -361,7 +361,7 @@ <h4>Declaration</h4>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.4.2/Sources/Deflate.swift#L32-L518">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.4.3/Sources/Deflate.swift#L32-L518">Show on GitHub</a>
</div>
</section>
</div>
Expand Down Expand Up @@ -396,7 +396,7 @@ <h4>Declaration</h4>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.4.2/Sources/BZip2.swift#L47-L277">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.4.3/Sources/BZip2.swift#L47-L277">Show on GitHub</a>
</div>
</section>
</div>
Expand Down Expand Up @@ -431,7 +431,7 @@ <h4>Declaration</h4>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.4.2/Sources/XZArchive.swift#L58-L346">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.4.3/Sources/XZArchive.swift#L58-L346">Show on GitHub</a>
</div>
</section>
</div>
Expand All @@ -445,7 +445,7 @@ <h4>Declaration</h4>
</div>
<section class="footer">
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.8.1</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.8.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
</div>
Expand Down
4 changes: 2 additions & 2 deletions docs/Classes/BZip2.html
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ <h4>Return Value</h4>
<p>Decompressed data.</p>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.4.2/Sources/BZip2.swift#L61-L97">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.4.3/Sources/BZip2.swift#L61-L97">Show on GitHub</a>
</div>
</section>
</div>
Expand All @@ -237,7 +237,7 @@ <h4>Return Value</h4>
</div>
<section class="footer">
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.8.1</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.8.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
</div>
Expand Down
6 changes: 3 additions & 3 deletions docs/Classes/Deflate.html
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ <h4>Return Value</h4>
<p>Decompressed data.</p>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.4.2/Sources/Deflate.swift#L79-L83">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.4.3/Sources/Deflate.swift#L79-L83">Show on GitHub</a>
</div>
</section>
</div>
Expand Down Expand Up @@ -263,7 +263,7 @@ <h4>Declaration</h4>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.4.2/Sources/Deflate.swift#L271-L327">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.4.3/Sources/Deflate.swift#L271-L327">Show on GitHub</a>
</div>
</section>
</div>
Expand All @@ -277,7 +277,7 @@ <h4>Declaration</h4>
</div>
<section class="footer">
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.8.1</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.8.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
</div>
Expand Down
6 changes: 3 additions & 3 deletions docs/Classes/GzipArchive.html
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ <h4>Return Value</h4>
<p>Unarchived data.</p>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.4.2/Sources/GzipArchive.swift#L200-L221">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.4.3/Sources/GzipArchive.swift#L199-L220">Show on GitHub</a>
</div>
</section>
</div>
Expand Down Expand Up @@ -298,7 +298,7 @@ <h4>Return Value</h4>
<p>Data object with resulting archive.</p>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.4.2/Sources/GzipArchive.swift#L239-L266">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.4.3/Sources/GzipArchive.swift#L238-L265">Show on GitHub</a>
</div>
</section>
</div>
Expand All @@ -312,7 +312,7 @@ <h4>Return Value</h4>
</div>
<section class="footer">
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.8.1</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.8.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
</div>
Expand Down
4 changes: 2 additions & 2 deletions docs/Classes/LZMA.html
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ <h4>Return Value</h4>
<p>Decompressed data.</p>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.4.2/Sources/LZMA.swift#L58-L63">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.4.3/Sources/LZMA.swift#L58-L63">Show on GitHub</a>
</div>
</section>
</div>
Expand All @@ -237,7 +237,7 @@ <h4>Return Value</h4>
</div>
<section class="footer">
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.8.1</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.8.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
</div>
Expand Down
4 changes: 2 additions & 2 deletions docs/Classes/LZMA2.html
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ <h4>Return Value</h4>
<p>Decompressed data.</p>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.4.2/Sources/LZMA2.swift#L52-L59">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.4.3/Sources/LZMA2.swift#L52-L59">Show on GitHub</a>
</div>
</section>
</div>
Expand All @@ -237,7 +237,7 @@ <h4>Return Value</h4>
</div>
<section class="footer">
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.8.1</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.8.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
</div>
Expand Down
4 changes: 2 additions & 2 deletions docs/Classes/XZArchive.html
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ <h4>Return Value</h4>
<p>Unarchived data.</p>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.4.2/Sources/XZArchive.swift#L76-L143">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.4.3/Sources/XZArchive.swift#L76-L143">Show on GitHub</a>
</div>
</section>
</div>
Expand All @@ -241,7 +241,7 @@ <h4>Return Value</h4>
</div>
<section class="footer">
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.8.1</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.8.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
</div>
Expand Down
10 changes: 5 additions & 5 deletions docs/Classes/ZipContainer.html
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ <h4>Declaration</h4>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.4.2/Sources/ZipContainer.swift#L82">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.4.3/Sources/ZipContainer.swift#L82">Show on GitHub</a>
</div>
</section>
</div>
Expand Down Expand Up @@ -267,7 +267,7 @@ <h4>Parameters</h4>
</table>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.4.2/Sources/ZipContainer.swift#L103-L132">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.4.3/Sources/ZipContainer.swift#L103-L132">Show on GitHub</a>
</div>
</section>
</div>
Expand Down Expand Up @@ -328,7 +328,7 @@ <h4>Parameters</h4>
</table>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.4.2/Sources/ZipContainer.swift#L145-L204">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.4.3/Sources/ZipContainer.swift#L145-L204">Show on GitHub</a>
</div>
</section>
</div>
Expand Down Expand Up @@ -407,7 +407,7 @@ <h4>Return Value</h4>
<p>Array of pairs (tuples) where first member is <code>entryName</code> and second member is <code>entryData</code>.</p>
</div>
<div class="slightly-smaller">
<a href="https://github.com/tsolomko/SWCompression/tree/v2.4.2/Sources/ZipContainer.swift#L227-L234">Show on GitHub</a>
<a href="https://github.com/tsolomko/SWCompression/tree/v2.4.3/Sources/ZipContainer.swift#L227-L234">Show on GitHub</a>
</div>
</section>
</div>
Expand All @@ -421,7 +421,7 @@ <h4>Return Value</h4>
</div>
<section class="footer">
<p>© 2017 Timofey Solomko</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.8.1</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.8.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
</div>
Expand Down
Loading

0 comments on commit 0226de2

Please sign in to comment.