arvados 0.1.20150413172135 → 0.1.20150421171838

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: 96584f94e463e7f2b86c1205f0097fe9aa8a840f
4
- data.tar.gz: 432ae039f8a6b7eabeace88d57a60c0a85f078fa
3
+ metadata.gz: a25c44b03acbf2dcf5d81815745323041dadef06
4
+ data.tar.gz: 13f7e04848bce28b04aeb44fb8589f3bc4220c17
5
5
  SHA512:
6
- metadata.gz: 72bcb43b91f6f0b0e5929ed2baa23c526535ea79417beb89bc034e4141bd0dbae12d734cdd5cec0d05978dbb0738070df9fa556ce8658d1396ba3f223a320f27
7
- data.tar.gz: 77256e96f0a6af3c3e613584a3fec6143588472cb9f9ff45d6726ec287f9fa05670d039c0a2a5ae393185af2336e2f6d0814c2a757305474861762bed1ccebce
6
+ metadata.gz: 1291e066620c01abe18888c58f60c5d74f5f12483ef9ccb6778b0bbd8a4136059eae228c7d4b86064aa490afd9cd43fa27ce9e0de1ad4df1433f6f846e7edf0f
7
+ data.tar.gz: 7225d796be41cc5a384abbce723936f026ed9643b5c0aae887894177bf1b5e49f4a8e2885ba51fed0f0303c06fa6c3d11f310b35b75c5e31630ad60115ddec1a
data/lib/arvados/keep.rb CHANGED
@@ -165,6 +165,11 @@ module Keep
165
165
  if @files.nil?
166
166
  file_sizes = Hash.new(0)
167
167
  each_file_spec do |streamname, _, filesize, filename|
168
+ if filename.include?('/')
169
+ parts = filename.rpartition('/')
170
+ streamname = streamname + parts[1] + parts[0] # ./dir_parts
171
+ filename = parts[2]
172
+ end
168
173
  file_sizes[[streamname, filename]] += filesize
169
174
  end
170
175
  @files = file_sizes.each_pair.map do |(streamname, filename), size|
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.20150413172135
4
+ version: 0.1.20150421171838
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-04-13 00:00:00.000000000 Z
11
+ date: 2015-04-21 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 43aa02f5af636f874bac5ffe96cff0061bcd6a44
107
+ description: Arvados client library, git commit da705110826943b04151f959e059b5f4ffcc4c5e
108
108
  email: gem-dev@curoverse.com
109
109
  executables: []
110
110
  extensions: []