arvados 0.1.20150614013129 → 0.1.20150615153345

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 +4 -0
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4e88a98ecf81a0992ac43e751b78eb89abf1e78f
4
- data.tar.gz: 64d1b0e574cbcb44c6722d9f2ccde1a4f88b1d8a
3
+ metadata.gz: f093ab2ae7ac20c25288c8b1c479668fb8b8f4c0
4
+ data.tar.gz: 6bbad3bfc8a885de3250ae9153ed806d143acfdd
5
5
  SHA512:
6
- metadata.gz: a546031d80c6c08133e7a2987fe5abdc61644c88dbc7515d8d6d50a47fabd4382a4cceedd69418f0a27707621614a3d985e38819d13b184a83c3b726f3496172
7
- data.tar.gz: 0c7a3631101f1ec8f5b3607b0c076094a8eb2be9ff6bb4f2b7c391137feb8df92c32cb89a470ad23010a1a7275ae896df7e50dd431bd97fe2c739fecefb599fc
6
+ metadata.gz: 8d63b3e1ea31d83f134d0e9426c6b7fa1968cb761b80fc4bb7a881f92052448bc8ef69c24b7d5653222f602a0ebb0d88284bab6bf2d9caef6c8da554aecb845c
7
+ data.tar.gz: d5e347079ba82be4420b90ed1c6f391af811c9853aaa85b953790182043b47ee3f3bd37c4e17a2513bb79091312c18766add04bd866dfc310889669c6e7dd68e
data/lib/arvados/keep.rb CHANGED
@@ -231,6 +231,10 @@ module Keep
231
231
  # Verify that a given manifest is valid according to
232
232
  # https://arvados.org/projects/arvados/wiki/Keep_manifest_format
233
233
  def self.validate! manifest
234
+ raise ArgumentError.new "No manifest found" if !manifest
235
+
236
+ return true if manifest.empty?
237
+
234
238
  raise ArgumentError.new "Invalid manifest: does not end with newline" if !manifest.end_with?("\n")
235
239
  line_count = 0
236
240
  manifest.each_line do |line|
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.20150614013129
4
+ version: 0.1.20150615153345
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-06-14 00:00:00.000000000 Z
11
+ date: 2015-06-15 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 4617a33da4f02639db5a63d925abdf1eaa01145c
107
+ description: Arvados client library, git commit 771dae6fa850973dd5ae979c939d814bc45b8ab3
108
108
  email: gem-dev@curoverse.com
109
109
  executables: []
110
110
  extensions: []