multi_zip 0.1.6 → 0.1.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6ae79eb36822d59d1b6c74fbc01954469af7affc
4
- data.tar.gz: e907a498f8b2f26bf0c5c09b79604e1ae3c55d5f
3
+ metadata.gz: 43c45cf26b23aca7ac4e0b1c7dc5a32c0e378818
4
+ data.tar.gz: 7493aa2e557ba6384d99d3a2329727ab61fdc12c
5
5
  SHA512:
6
- metadata.gz: fffb4dc3201100b24d680b0e7f1b34001f30ea653c286b378018c037ce99b66bc4628d57c7afed364a27f8318c2b0ac4b99fe2accd2d1b453ac10bfbe8d8b6ef
7
- data.tar.gz: e02558c21895d05e01db7222d83dcf6be10067e074618b4bd7eebd1a90d24ec7927041bd6624c4e5507ad459ff519c48a2ee10a5e1052383c2ea3aa2ba400ab6
6
+ metadata.gz: 7fff3a6a79913309ab09aabbd7b1a90dd88d7aa5ceccc47d0c1afd3e2fde7d4507658b5775c54c0cd9e9b5aa60de5187219b23bbe4b73b24dfdb8f87f2235ea7
7
+ data.tar.gz: 02c871901c57a50c789309a04e477766749d4fcdb9b2d2a00f178bbe78c4e2d8c6366bd41ae4dd10a882a2dd4e8337ce222f8e987159052a237e66c4daa6009c
@@ -10,10 +10,10 @@ rvm:
10
10
  - jruby-18mode
11
11
  - jruby-19mode
12
12
  - jruby-9.0.5.0
13
- - rbx-2
13
+ - rbx-2.2.7
14
14
  matrix:
15
15
  allow_failures:
16
16
  - rvm:
17
17
  - ruby-head
18
- - rbx-2
18
+ - rbx-2.2.7
19
19
  sudo: false
@@ -1,3 +1,7 @@
1
+ ### 0.1.6.1 - Dec 20, 2017
2
+
3
+ Maintenance release that fixes compatibility with 1.8.7, and rubyzip-1.2.1.
4
+
1
5
  ### 0.1.6 - Dec 20, 2017
2
6
 
3
7
  Added '#member_info` method for retrieving file size and information.
data/Gemfile CHANGED
@@ -10,7 +10,13 @@ end
10
10
 
11
11
  # rubyzip requires ruby >= 1.9.2
12
12
  if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("1.9.2")
13
- gem 'rubyzip', '~> 1.1.6', :require => nil, :platforms => :ruby
13
+ if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("2.0.0")
14
+ # rubyzip 1.2.1 drops support for 1.9.3:
15
+ # https://github.com/rubyzip/rubyzip/pull/256#issuecomment-155860478
16
+ gem 'rubyzip', '1.2.0', :require => nil, :platforms => :ruby
17
+ else
18
+ gem 'rubyzip', '~> 1.2.1', :require => nil, :platforms => :ruby
19
+ end
14
20
  gem 'zip-zip', '~>0.3', :require => nil, :platforms => :ruby
15
21
  end
16
22
 
@@ -103,10 +103,10 @@ module MultiZip::Backend::ArchiveZip
103
103
  member = zip.find{|m| m.zip_path == member_path}
104
104
  if member
105
105
  return {
106
- path: member.zip_path,
107
- size: member.expected_data_descriptor.uncompressed_size.to_i,
108
- type: member.ftype,
109
- original: member
106
+ :path => member.zip_path,
107
+ :size => member.expected_data_descriptor.uncompressed_size.to_i,
108
+ :type => member.ftype,
109
+ :original => member
110
110
  }
111
111
  else
112
112
  zip.close
@@ -258,10 +258,10 @@ module MultiZip::Backend::Cli
258
258
  end
259
259
 
260
260
  {
261
- path: fields.last,
262
- size: size.to_i,
263
- type: type,
264
- original: line
261
+ :path => fields.last,
262
+ :size => size.to_i,
263
+ :type => type,
264
+ :original => line
265
265
  }
266
266
 
267
267
  end
@@ -69,10 +69,10 @@ module MultiZip::Backend::Zipruby
69
69
  member_stats = zip.get_stat(member_location)
70
70
 
71
71
  {
72
- path: member_stats.name,
73
- size: member_stats.size.to_i,
74
- type: member_stats.directory? ? :directory : :file,
75
- original: member_stats
72
+ :path => member_stats.name,
73
+ :size => member_stats.size.to_i,
74
+ :type => member_stats.directory? ? :directory : :file,
75
+ :original => member_stats
76
76
  }
77
77
  end
78
78
  end
@@ -1,3 +1,3 @@
1
1
  class MultiZip
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.6.1"
3
3
  end
@@ -207,9 +207,9 @@ shared_examples 'zip backend' do |backend_name|
207
207
  info = subject.member_info(member_file)
208
208
  expect(info).to include(
209
209
  {
210
- path: member_file,
211
- size: archive_member_size(member_file),
212
- type: :file
210
+ :path => member_file,
211
+ :size => archive_member_size(member_file),
212
+ :type => :file
213
213
  }
214
214
  )
215
215
 
@@ -228,9 +228,9 @@ shared_examples 'zip backend' do |backend_name|
228
228
  subject.member_info(archive_member_directories.first)
229
229
  ).to include(
230
230
  {
231
- path: archive_member_directories.first,
232
- size: archive_member_size(archive_member_directories.first).to_i,
233
- type: :directory
231
+ :path => archive_member_directories.first,
232
+ :size => archive_member_size(archive_member_directories.first).to_i,
233
+ :type => :directory
234
234
  }
235
235
  )
236
236
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: multi_zip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Nielsen