rubyzip 1.1.3 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/zip/entry.rb +2 -2
- data/lib/zip/errors.rb +8 -0
- data/lib/zip/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d23ddcc769403826e54f22ac7351086bd4dda0ad
|
|
4
|
+
data.tar.gz: 6e45bc494896b948785b181b843393092c0a6a87
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b2227b5f2243bf5921259930ab98d82b794b3bd4bfd47d787fbd2c58b0e9fefa3524dc6072eec66cafe79c8ac81f47efb8608c257750d4cab8fca0311c907ffa
|
|
7
|
+
data.tar.gz: 262be035076ac7b7840190718d5191e47dc15847dec3e1e28c8fa415b1f423919ca444cedc544b22b23af4e1f2cd0de2911cacdd4a9816fb79abb1449fea52d6
|
data/lib/zip/entry.rb
CHANGED
|
@@ -273,7 +273,7 @@ module Zip
|
|
|
273
273
|
io << pack_local_entry
|
|
274
274
|
|
|
275
275
|
io << @name
|
|
276
|
-
io <<
|
|
276
|
+
io << @extra.to_local_bin if @extra
|
|
277
277
|
@local_header_size = io.tell - @local_header_offset
|
|
278
278
|
end
|
|
279
279
|
|
|
@@ -539,7 +539,7 @@ module Zip
|
|
|
539
539
|
if @ftype == :directory
|
|
540
540
|
zip_output_stream.put_next_entry(self, nil, nil, ::Zip::Entry::STORED)
|
|
541
541
|
elsif @filepath
|
|
542
|
-
zip_output_stream.put_next_entry(self, nil, nil, ::Zip::Entry::DEFLATED)
|
|
542
|
+
zip_output_stream.put_next_entry(self, nil, nil, self.compression_method || ::Zip::Entry::DEFLATED)
|
|
543
543
|
get_input_stream { |is| ::Zip::IOExtras.copy_stream(zip_output_stream, is) }
|
|
544
544
|
else
|
|
545
545
|
zip_output_stream.copy_raw_entry(self)
|
data/lib/zip/errors.rb
CHANGED
|
@@ -5,4 +5,12 @@ module Zip
|
|
|
5
5
|
class CompressionMethodError < Error; end
|
|
6
6
|
class EntryNameError < Error; end
|
|
7
7
|
class InternalError < Error; end
|
|
8
|
+
|
|
9
|
+
# Backwards compatibility with v1 (delete in v2)
|
|
10
|
+
ZipError = Error
|
|
11
|
+
ZipEntryExistsError = EntryExistsError
|
|
12
|
+
ZipDestinationFileExistsError = DestinationFileExistsError
|
|
13
|
+
ZipCompressionMethodError = CompressionMethodError
|
|
14
|
+
ZipEntryNameError = EntryNameError
|
|
15
|
+
ZipInternalError = InternalError
|
|
8
16
|
end
|
data/lib/zip/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rubyzip
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alexander Simonov
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-05-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description:
|
|
14
14
|
email:
|
|
@@ -61,7 +61,8 @@ files:
|
|
|
61
61
|
- TODO
|
|
62
62
|
- Rakefile
|
|
63
63
|
homepage: http://github.com/rubyzip/rubyzip
|
|
64
|
-
licenses:
|
|
64
|
+
licenses:
|
|
65
|
+
- BSD 2-Clause
|
|
65
66
|
metadata: {}
|
|
66
67
|
post_install_message:
|
|
67
68
|
rdoc_options: []
|