zipline 0.0.8 → 0.0.9

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: e29199e5ffa8970199f9586ea13025d68373594f
4
- data.tar.gz: b155365912bf26cdedc37221d4061571fbe7c985
3
+ metadata.gz: 9b48fbf7198d9030ccdc2e84f3641244ec2356e9
4
+ data.tar.gz: 2ff49a3cafd6035fef3ac4c3bec01a35aa11bb38
5
5
  SHA512:
6
- metadata.gz: e9b51d097401fe6e7142ed4220b4c779b2f3cdc0e77f7665c85f0ad60daa62d33557b53c37e006bca87bd7584153d6a622d25e85e0366e5b32f4dbcbc604524d
7
- data.tar.gz: 35b0a617645946e17306617b5e21f4f88f10c11a291b5c2079fe9d93c440eb68df71b600d30c305c76720c6359ee682d0782fefa236776b5c5cf804909ab5d90
6
+ metadata.gz: 3497595098265d777bfd5e534694ee16f3c8c5dc4335cc329c920f02d089ffef98e5dc2cdcfdcbc8c6ba762c095fe5257fcff6cef462152cbbb2a9ef0bbe75c4
7
+ data.tar.gz: 97f69f5834d1b177c4ca9f3023293bb9453094d36fd3c5b049e0986f05b1af9823f35393b715837f2fd9158376cf31456b5bd2aa9198f8c7991a024a11d952a7
@@ -1,3 +1,3 @@
1
1
  module Zipline
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
@@ -65,7 +65,7 @@ module Zipline
65
65
  end
66
66
 
67
67
  def get_size(file)
68
- if is_io?(file)
68
+ if is_io?(file) || file.respond_to?(:size)
69
69
  file.size
70
70
  elsif file.respond_to? :content_length
71
71
  file.content_length
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zipline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ram Dobson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-21 00:00:00.000000000 Z
11
+ date: 2014-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip