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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e31f6c9d7a53111c74ea5c965aa98c2bfbd10ef3
4
- data.tar.gz: 152f26894f635dd2c05d1990f79d7da47bacfcb4
3
+ metadata.gz: ba73cbeeef27e403f0426d02157edd801ea1227c
4
+ data.tar.gz: 5382069dc7c3bbaa7740b64d89f02b74b8d78009
5
5
  SHA512:
6
- metadata.gz: fd917f1e01d53d216d94baf41a5ed173a2e0cb044ead85d8e16982faf1cef6f30bb443343569925601882a7d70b848e1035a0e5637f90420ead85748170cfa0d
7
- data.tar.gz: f244945c1ff6a96f8a7de5b90c4f9ff6274c22f0f35b1e3c5a3148faa7a88f4aa1c3496e554827a94fe69520f32065033d1c15ca64f4c19a9b9991a623c47fcb
6
+ metadata.gz: 1e163d6001a79f0e013e717f4c7c83f92457faa2ac1ff49220fe55b83b495a1be2e65d6f8af65e675b9fbc35cd0fabfc04900198d127800c921c4b08cdbd7647
7
+ data.tar.gz: c9d1d3864f8b954ac86517a50759991c4cbc2e0a5c611eeb73a3341c1c8c3e515655a22834a3ac72cd18a48b0e5eaa8f080f9452b265614167848282c365999c
@@ -20,10 +20,12 @@ module BucketCake
20
20
  attr_reader :zip_files, :klass
21
21
 
22
22
  def unzip_elements(zip_data)
23
- Zip::File.open_buffer(zip_data) do |files|
24
- files.each do |entry|
25
- yield entry.get_input_stream.read
26
- end
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
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module BucketCake
2
3
  class Source
3
4
  def initialize(type, cache)
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module BucketCake
2
- VERSION = '1.0.0'.freeze
3
+ VERSION = '1.0.1'.freeze
3
4
  end
data/lib/bucket_cake.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require 'aws-sdk'
2
3
  require 'zip'
3
4
  require 'protobuf'
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.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: 2015-12-15 00:00:00.000000000 Z
11
+ date: 2016-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk