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 +4 -4
- data/bin/arv +5 -3
- data/bin/arv-run-pipeline-instance +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 045eab93d72306fe632c852614b2bf2929fe1587
|
4
|
+
data.tar.gz: 7bbbb11f0567c049d4d47ca67951ee8d2cefc012
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
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 =>
|
65
|
+
:uri => discovery_uri,
|
64
66
|
:authenticated => false)
|
65
67
|
|
66
68
|
begin
|
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.
|
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
|
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
|