rubyzip 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of rubyzip might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a4516159068d18e7d329c5c99b8bf098905c83b8
4
- data.tar.gz: 1a689549ef8b554a649af9693d48d47a764d69bb
3
+ metadata.gz: d23ddcc769403826e54f22ac7351086bd4dda0ad
4
+ data.tar.gz: 6e45bc494896b948785b181b843393092c0a6a87
5
5
  SHA512:
6
- metadata.gz: 3e7bd98090597c65b5e43bfe8c7d7aaa86f3d956a15fd05b3211ba84301ad2669f85cc7ad8a54d8466aea5d87edcdfa2140dcf77f1dc11d248af81e585b09806
7
- data.tar.gz: e49d4ecf677f7ee6311b16e9aba32b0d4893489baddb49bac5f5159d6a580251038e6df909ba5c1a136a0c50b2439df1097c3407d54daa8690388114555326eb
6
+ metadata.gz: b2227b5f2243bf5921259930ab98d82b794b3bd4bfd47d787fbd2c58b0e9fefa3524dc6072eec66cafe79c8ac81f47efb8608c257750d4cab8fca0311c907ffa
7
+ data.tar.gz: 262be035076ac7b7840190718d5191e47dc15847dec3e1e28c8fa415b1f423919ca444cedc544b22b23af4e1f2cd0de2911cacdd4a9816fb79abb1449fea52d6
@@ -273,7 +273,7 @@ module Zip
273
273
  io << pack_local_entry
274
274
 
275
275
  io << @name
276
- io << (@extra ? @extra.to_local_bin : '')
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)
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Zip
2
- VERSION = '1.1.3'
2
+ VERSION = '1.1.4'
3
3
  end
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.3
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-04-06 00:00:00.000000000 Z
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: []