arvados-cli 0.1.20140812091227 → 0.1.20140812101132

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a54d204bc47cb5d1f271ebff704b547ecc57a113
4
- data.tar.gz: bd221ef8fa3fe22c4b23d37013eb2cc1abfdced8
3
+ metadata.gz: 045eab93d72306fe632c852614b2bf2929fe1587
4
+ data.tar.gz: 7bbbb11f0567c049d4d47ca67951ee8d2cefc012
5
5
  SHA512:
6
- metadata.gz: 3404b992ede6e0accb516fb2ee93c9ace7e2211a83ac20d770317a88b0c46ae019c427fe640de22e1a177ae5bcb0c505a082fa100cc74fedb9d8939cacb4db38
7
- data.tar.gz: f9fa9924d67878175f64e8f4c9250d40918c700bd99d7d99c7b5fe18704e111ab1d73d42b745429b8e7a5d2d4c7286d673f9d3965b1874bf6a0d32fa162e185f
6
+ metadata.gz: 304ad02c85a9c5c9e9aca8537289afca2c9936c976b3667d7d732514bd3502c073f5b322bd0b5a73e3f6597579261f2899d7ad5cfb108f105e8e99f9670bd417
7
+ data.tar.gz: 36f1b18769f41b58e6fff9be20af4eb3e03b659e976037fc602112cb0fb6d662395795f1cdd892f21cc5461aba77386ba2d46cd428561d51dd5a60ad3a5943e2
data/bin/arv CHANGED
@@ -53,14 +53,16 @@ end
53
53
  class Google::APIClient
54
54
  def discovery_document(api, version)
55
55
  api = api.to_s
56
- return @discovery_documents["#{api}:#{version}"] ||=
56
+ discovery_uri = self.discovery_uri(api, version)
57
+ discovery_uri_hash = Digest::MD5.hexdigest(discovery_uri)
58
+ return @discovery_documents[discovery_uri_hash] ||=
57
59
  begin
58
60
  # fetch new API discovery doc if stale
59
- cached_doc = File.expand_path '~/.cache/arvados/discovery_uri.json' rescue nil
61
+ cached_doc = File.expand_path "~/.cache/arvados/discovery-#{discovery_uri_hash}.json" rescue nil
60
62
 
61
63
  if cached_doc.nil? or not File.exist?(cached_doc) or (Time.now - File.mtime(cached_doc)) > 86400
62
64
  response = self.execute!(:http_method => :get,
63
- :uri => self.discovery_uri(api, version),
65
+ :uri => discovery_uri,
64
66
  :authenticated => false)
65
67
 
66
68
  begin
@@ -475,7 +475,7 @@ class WhRunPipelineInstance
475
475
  }
476
476
  },
477
477
  pipeline_template_uuid: @template[:uuid],
478
- state: ($options[:submit] ? 'New' : 'RunningOnClient'))
478
+ state: ($options[:submit] ? 'RunningOnServer' : 'RunningOnClient'))
479
479
  end
480
480
  self
481
481
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arvados-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.20140812091227
4
+ version: 0.1.20140812101132
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arvados Authors
@@ -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 ed1580a38c1aae0910cef83605622a41d927fba3
169
+ description: This is the Arvados SDK CLI gem, git revision 57ee96926d2d3d315ece3b2cbfb20d0fe01ab912
170
170
  email: gem-dev@curoverse.com
171
171
  executables:
172
172
  - arv