quiverstaskrunner 0.1.2470998 → 0.1.2477923

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
  SHA256:
3
- metadata.gz: f341969236e5a6de7414c33c2e1b51a793ba9d09d1c82e9a01f8ff79e64a9681
4
- data.tar.gz: 9bf96de868a0246ffe0b8b5e27fa69c28f7e744fd28de9c5cee1d2ba1b0c91ff
3
+ metadata.gz: 0bbfbf105d0c1640b775e05648f114f9387e9abd5aa0250062d21757cc3637a8
4
+ data.tar.gz: b686b093ec1a6017aa7e4ed2a9dfb93062cb24ef3c426221c52b92f4d9a59976
5
5
  SHA512:
6
- metadata.gz: 70197045616444e937814361f9af0bf160f44aa781a4bd780c9770a50822e95f563c8a5a41f445c129837a39bec14447cbd05aa2eac928e54ecfd8dcf8f5dd9d
7
- data.tar.gz: 51da9677bca00277f003b9254b161c0e598e91cf5f6de0d01935a669b57f173cb6cc2eb50100bd9efade6345a4d78672ba9af0c462998bdde87e30ff1b7a4226
6
+ metadata.gz: 4f83d4f3d3083e8f395822ae265d295586cf9d5026a2ee80fd97286bfe6054f80054c3de6915c64778b0894191ef31c3eedfbed6777c6b262956f7b0137e52ac
7
+ data.tar.gz: '08345797a6cf32b77e08da454c7ae72c7896b0d85be7045ef1ed3405792dd5017955e7c1b03db6b8bf60a89fc98d853ff3561830d9d3513e3772137ab219f9de'
@@ -10,6 +10,12 @@ require "quiverstaskrunner/helpers/clihelper"
10
10
 
11
11
  include QuiversTaskrunner
12
12
 
13
+ class ::File
14
+ def each_chunk(chunk_size=2**20)
15
+ yield read(chunk_size) until eof?
16
+ end
17
+ end
18
+
13
19
  module QuiversTaskrunner
14
20
  @@get_settings_options = { :cli_params_black_list => ["env", "nos", "no-swap", "nod", "no-staging-del" ] }
15
21
  @@secrets = {
@@ -156,11 +162,13 @@ module QuiversTaskrunner
156
162
  f.each_chunk {|chunk|
157
163
  block_id = counter.to_s.rjust(5, '0')
158
164
  block_list << [block_id, :uncommitted]
165
+
159
166
  blob_options = {
160
167
  :content_md5 => Base64.strict_encode64(Digest::MD5.digest(chunk)),
161
168
  :content_type => "application/octet-stream",
162
169
  :timeout => timeout
163
170
  }
171
+
164
172
  md5 = blob_srv.create_blob_block(blob_container, blob_name, block_id, chunk, blob_options)
165
173
  counter += 1
166
174
  }
@@ -1 +1 @@
1
- module QuiversTaskrunner
1
+ module QuiversTaskrunner
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quiverstaskrunner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2470998
4
+ version: 0.1.2477923
5
5
  platform: ruby
6
6
  authors:
7
7
  - ndao
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-14 00:00:00.000000000 Z
11
+ date: 2019-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler