bucket_cake 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bucket_cake/decoder.rb +6 -4
- data/lib/bucket_cake/source.rb +1 -0
- data/lib/bucket_cake/version.rb +2 -1
- data/lib/bucket_cake.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba73cbeeef27e403f0426d02157edd801ea1227c
|
4
|
+
data.tar.gz: 5382069dc7c3bbaa7740b64d89f02b74b8d78009
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e163d6001a79f0e013e717f4c7c83f92457faa2ac1ff49220fe55b83b495a1be2e65d6f8af65e675b9fbc35cd0fabfc04900198d127800c921c4b08cdbd7647
|
7
|
+
data.tar.gz: c9d1d3864f8b954ac86517a50759991c4cbc2e0a5c611eeb73a3341c1c8c3e515655a22834a3ac72cd18a48b0e5eaa8f080f9452b265614167848282c365999c
|
data/lib/bucket_cake/decoder.rb
CHANGED
@@ -20,10 +20,12 @@ module BucketCake
|
|
20
20
|
attr_reader :zip_files, :klass
|
21
21
|
|
22
22
|
def unzip_elements(zip_data)
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
23
|
+
zip_data_io = StringIO.new(zip_data)
|
24
|
+
files = Zip::File.new(zip_data_io, true, true)
|
25
|
+
files.read_from_stream(zip_data_io)
|
26
|
+
|
27
|
+
files.each do |entry|
|
28
|
+
yield entry.get_input_stream.read
|
27
29
|
end
|
28
30
|
end
|
29
31
|
end
|
data/lib/bucket_cake/source.rb
CHANGED
data/lib/bucket_cake/version.rb
CHANGED
data/lib/bucket_cake.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bucket_cake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ad2games developers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|