arvados 0.1.20150312153553 → 0.1.20150313191637

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/lib/arvados/keep.rb +5 -0
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c887bb28600c43b66bbb0940f933c23006b9d175
4
- data.tar.gz: 7c6f38acc71631d15b95da40c5ed49666dee7454
3
+ metadata.gz: f7777c7fd0f5fae868ca7e621a86dd806d69b5d1
4
+ data.tar.gz: 09b5ef89cac47dd878b60d84e00992067aafc48f
5
5
  SHA512:
6
- metadata.gz: 86489ab3196ef868ae5b84909cdc0959e37a9c551acdc177424da17ec72862cccd0cd4cd9c004b357de1fc5970dd8c9135271483ae3f075063460c7365d4f555
7
- data.tar.gz: e55c81dd39f96b079bd9c1d97c973c02cedbf0e62aec975fa9a19067cc518d30b43b78ea56ed38968208206837df9a5026bab2aef0491470f2dfaba7fc618707
6
+ metadata.gz: 007a16243ec11d714042476f9e2a89e26cad56b4c97b49f18c72dedbf5ee56931ddb5413b30393e2aaac9071c5c42f10638af999d15e5240fae9264e699bcb27
7
+ data.tar.gz: 0ed415e276280b11c7abddb09259d018e25bf3a3916fa8b0b13d9cd2e2af5ae3cdafd4eef05479d2eb313ba682968b3bb7de4f20b095c6674da7d3a9fdd490f1
data/lib/arvados/keep.rb CHANGED
@@ -191,6 +191,11 @@ module Keep
191
191
  seen_files.size
192
192
  end
193
193
 
194
+ def files_size
195
+ # Return the total size of all files in this manifest.
196
+ files.reduce(0) { |total, (_, _, size)| total + size }
197
+ end
198
+
194
199
  def exact_file_count?(want_count)
195
200
  files_count(want_count + 1) == want_count
196
201
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arvados
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.20150312153553
4
+ version: 0.1.20150313191637
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arvados Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-12 00:00:00.000000000 Z
11
+ date: 2015-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-api-client
@@ -104,7 +104,7 @@ dependencies:
104
104
  - - "<"
105
105
  - !ruby/object:Gem::Version
106
106
  version: 1.0.0
107
- description: Arvados client library, git commit 36f6241516d81c726bb7439650cf6ec56e6d6525
107
+ description: Arvados client library, git commit 71c4fdc3352ad5ca34c2f260fe43fa1150868a04
108
108
  email: gem-dev@curoverse.com
109
109
  executables: []
110
110
  extensions: []