arvados-cli 0.1.20140730210049 → 0.1.20140731165007

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/crunch-job +14 -1
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2230f99e411ed478a280d19112a6410bdbf622f6
4
- data.tar.gz: 9ee4532ba5beb20fd785add8f7e7917695939b64
3
+ metadata.gz: 2774620db247820071711f464eeafa78926d0cbd
4
+ data.tar.gz: 48b362e590221c28d70e6a2c363a47b2e84c0afd
5
5
  SHA512:
6
- metadata.gz: 373c20feed98d5ce06eecbc131db8a105c02931bea0c480d8cb445542922770d220d0332629499d0df3fc87e07e4476107ff200214b07b92bb7d8422a6a9edc2
7
- data.tar.gz: d8df72b3044af4d54b0c4f2105389ca54dd39a5a9f7280cc95c81100d988c53f01ed22ab0fce73c7fe620f6861edb558792be3e239f5501fee815f1dc3993cff
6
+ metadata.gz: e60b9efc1b65cfa36e7da26f9eab76aafd8386000aa4c80350c8ee187a0855e4eeb7d9bf0a9124ec7bccb72fa859181161e845a34bc01ef086d464551b59d7ac
7
+ data.tar.gz: b692c707727a293325bb02dfd16fc7199c45c05221bd0801417955d9a79009f08b3da1defebfa18e40465a9bec2a40bde458a0c972b363a6a250b24eb6514d76
data/bin/crunch-job CHANGED
@@ -1179,7 +1179,20 @@ sub fetch_block
1179
1179
 
1180
1180
  my $cmd = "arv-get \Q$hash\E";
1181
1181
  open($keep, '-|', $cmd) or die "fetch_block: $cmd: $!";
1182
- sysread($keep, $output_block, 64 * 1024 * 1024);
1182
+ $output_block = '';
1183
+ while (1) {
1184
+ my $buf;
1185
+ my $bytes = sysread($keep, $buf, 1024 * 1024);
1186
+ if (!defined $bytes) {
1187
+ die "reading from arv-get: $!";
1188
+ } elsif ($bytes == 0) {
1189
+ # sysread returns 0 at the end of the pipe.
1190
+ last;
1191
+ } else {
1192
+ # some bytes were read into buf.
1193
+ $output_block .= $buf;
1194
+ }
1195
+ }
1183
1196
  close $keep;
1184
1197
  return $output_block;
1185
1198
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arvados-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.20140730210049
4
+ version: 0.1.20140731165007
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arvados Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-30 00:00:00.000000000 Z
11
+ date: 2014-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: arvados
@@ -166,7 +166,7 @@ dependencies:
166
166
  - - "<"
167
167
  - !ruby/object:Gem::Version
168
168
  version: 1.0.0
169
- description: This is the Arvados SDK CLI gem, git revision f879aadfdf3b53036069dc40116188ae5077810e
169
+ description: This is the Arvados SDK CLI gem, git revision da7d1fa4d078d0d7785672a195b16a9134478b0d
170
170
  email: gem-dev@curoverse.com
171
171
  executables:
172
172
  - arv