archive-zip 0.11.0 → 0.12.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: b3ed9fe304aaaccf2112d79acd33be3594225385
4
- data.tar.gz: c09cbfbc1500cc9788a1f495e5063dcfa3660ea1
2
+ SHA256:
3
+ metadata.gz: e05b00169e8fc063e8891e37b1c0ff0be06a5707d309437ef6fd7c9fd2cd6e8d
4
+ data.tar.gz: 5b312ef1f841c3f02355e4f0c421e0f198547ef92179d5ec23e300c075c1ed88
5
5
  SHA512:
6
- metadata.gz: da51b451dacabbb6fbcdad58d9fc0851d474e70ba0047df1676f5ecb148e501d82341122ebe533ff67ab2341201ffc6225dc8c0da9350fc197379168605384b1
7
- data.tar.gz: 764188649dca68e41c8fd651fd1aba216e257d7856dcb7aa86c5f71d8d5105d185168c4b29c11034f4a1e0ee92b2dab4f1a5c54dcb8c4815eb32f66da7267993
6
+ metadata.gz: 27b771c2adfe5d9b0ed20c4bf16cb1c54610cdc599a965ade68c4a20bd2923bc90a42df8401bca7c407d7a8d4074d882b0f17b2dd5f7c1d1582e291e2e50ed02
7
+ data.tar.gz: a734a75a544e23f9b9da9120dfdd49429e3d5c4a5a72898dc9233a6e9e3f33d1ee318f87eb09472c2f8285657088a3502663ad011e6bd83c37af9030346fa2ae
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  (The MIT License)
2
2
 
3
- Copyright (c) 2018 Jeremy Bopp
3
+ Copyright (c) 2019 Jeremy Bopp
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining
6
6
  a copy of this software and associated documentation files (the
data/NEWS.md CHANGED
@@ -6,6 +6,13 @@ detailed information is available in the rest of the documentation.
6
6
  **NOTE:** Date stamps in the following entries are in YYYY/MM/DD format.
7
7
 
8
8
 
9
+ ## v0.12.0 (2019/02/28)
10
+
11
+ ### Fixes
12
+
13
+ * Check for codec availability before attempting to initialize a codec instance
14
+ during extraction. (Kouhei Sutou)
15
+
9
16
  ## v0.11.0 (2018/01/28)
10
17
 
11
18
  ### Fixes
data/README.md CHANGED
@@ -183,6 +183,7 @@ Thanks to all contributors. Without your help this project would not exist.
183
183
  * Jeremy Bopp :: jeremy@bopp.net
184
184
  * Akira Matsuda :: ronnie@dio.jp
185
185
  * Tatsuya Sato :: tatsuya.b.sato@rakuten.com
186
+ * Kouhei Sutou :: kou@clear-code.com
186
187
 
187
188
  ## CONTRIBUTING
188
189
 
@@ -229,7 +230,7 @@ be more easily accepted if they are consistent with the rest of the code.
229
230
  ```
230
231
  (The MIT License)
231
232
 
232
- Copyright (c) 2018 Jeremy Bopp
233
+ Copyright (c) 2019 Jeremy Bopp
233
234
 
234
235
  Permission is hereby granted, free of charge, to any person obtaining
235
236
  a copy of this software and associated documentation files (the
@@ -26,9 +26,9 @@ module Archive; class Zip
26
26
  require 'archive/zip/codec/deflate'
27
27
  require 'archive/zip/codec/store'
28
28
 
29
- codec = COMPRESSION_CODECS[compression_method].new(general_purpose_flags)
29
+ codec = COMPRESSION_CODECS[compression_method]
30
30
  raise Zip::Error, 'unsupported compression codec' if codec.nil?
31
- codec
31
+ codec.new(general_purpose_flags)
32
32
  end
33
33
 
34
34
  # Returns a new encryption codec instance based on _general_purpose_flags_.
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Archive; class Zip
4
4
  # The current version of this gem.
5
- VERSION = '0.11.0'
5
+ VERSION = '0.12.0'
6
6
  end; end
metadata CHANGED
@@ -1,16 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: archive-zip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Bopp
8
8
  - Akira Matsuda
9
9
  - Tatsuya Sato
10
+ - Kouhei Sutou
10
11
  autorequire:
11
12
  bindir: bin
12
13
  cert_chain: []
13
- date: 2018-01-29 00:00:00.000000000 Z
14
+ date: 2019-03-01 00:00:00.000000000 Z
14
15
  dependencies:
15
16
  - !ruby/object:Gem::Dependency
16
17
  name: io-like
@@ -105,6 +106,7 @@ email:
105
106
  - jeremy@bopp.net
106
107
  - ronnie@dio.jp
107
108
  - tatsuya.b.sato@rakuten.com
109
+ - kou@clear-code.com
108
110
  executables: []
109
111
  extensions: []
110
112
  extra_rdoc_files: []
@@ -257,7 +259,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
257
259
  version: '0'
258
260
  requirements: []
259
261
  rubyforge_project: archive-zip
260
- rubygems_version: 2.6.11
262
+ rubygems_version: 2.7.6
261
263
  signing_key:
262
264
  specification_version: 4
263
265
  summary: Simple, extensible, pure Ruby ZIP archive support.