arvados-cli 0.1.20150127170053 → 0.1.20150128223752

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/bin/arv +1 -31
  3. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 58eebb77bb4d8c203b0528d785b961048eb114cc
4
- data.tar.gz: b79ee9764ad50d332aed045a17f6a5699153e4f9
3
+ metadata.gz: 566fd38f7693b25fbcc883017c6ef4779270218d
4
+ data.tar.gz: 2ea24ca2b4616374e26e9da4f56f7803b229aa61
5
5
  SHA512:
6
- metadata.gz: fe19d4df0b0903fb1b0b1882606992c1eb31748b234bb770a8846ea17064bc8108d87b2ec04a8da1dd11512dafd51eb5c70d35a68150b45879eec63508e1125c
7
- data.tar.gz: fcf8e177ee7dbd337a9beec008538ad02bfc91eac734549bf0f4f96d2d08c4d711e684930daf12eebb3c16f5dd752eb046346e88d3ab469afd8a960f7e37271b
6
+ metadata.gz: 4e2c53d631fa9b4dd2da8dd544f7f840cd659ed0266457ca5bbc9d82e269309d19fb03520ddcfa9b374ca401633b7b00ba72116bc4405b7254f58631f5d1f9f9
7
+ data.tar.gz: 84cf369e71c2c327b62f12bd7513e7b34b60623fb656ca20f58a8a779aaa7df5fe2944f354ef438d6e750baee22cb0f03c7529f07cecdddf94d3c690e02d80c7
data/bin/arv CHANGED
@@ -15,7 +15,7 @@ end
15
15
  begin
16
16
  require 'curb'
17
17
  require 'rubygems'
18
- require 'google/api_client'
18
+ require 'arvados/google_api_client'
19
19
  require 'json'
20
20
  require 'pp'
21
21
  require 'trollop'
@@ -52,36 +52,6 @@ module Kernel
52
52
  end
53
53
  end
54
54
 
55
- class Google::APIClient
56
- def discovery_document(api, version)
57
- api = api.to_s
58
- discovery_uri = self.discovery_uri(api, version)
59
- discovery_uri_hash = Digest::MD5.hexdigest(discovery_uri)
60
- return @discovery_documents[discovery_uri_hash] ||=
61
- begin
62
- # fetch new API discovery doc if stale
63
- cached_doc = File.expand_path "~/.cache/arvados/discovery-#{discovery_uri_hash}.json" rescue nil
64
-
65
- if cached_doc.nil? or not File.exist?(cached_doc) or (Time.now - File.mtime(cached_doc)) > 86400
66
- response = self.execute!(:http_method => :get,
67
- :uri => discovery_uri,
68
- :authenticated => false)
69
-
70
- begin
71
- FileUtils.makedirs(File.dirname cached_doc)
72
- File.open(cached_doc, 'w') do |f|
73
- f.puts response.body
74
- end
75
- rescue
76
- return JSON.load response.body
77
- end
78
- end
79
-
80
- File.open(cached_doc) { |f| JSON.load f }
81
- end
82
- end
83
- end
84
-
85
55
  class ArvadosClient < Google::APIClient
86
56
  def execute(*args)
87
57
  if args.last.is_a? Hash
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arvados-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.20150127170053
4
+ version: 0.1.20150128223752
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-01-27 00:00:00.000000000 Z
11
+ date: 2015-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: arvados
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '0.1'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 0.1.0
22
+ version: 0.1.20150128223554
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '0.1'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 0.1.0
32
+ version: 0.1.20150128223554
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: google-api-client
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -178,7 +178,7 @@ dependencies:
178
178
  - - "<"
179
179
  - !ruby/object:Gem::Version
180
180
  version: 1.0.0
181
- description: Arvados command line tools, git commit ef2d368867bfae2ca702184c57a8cd873f1c4e43
181
+ description: Arvados command line tools, git commit 0fb26747fa229d6b19ec911b907259a8e84acd83
182
182
  email: gem-dev@curoverse.com
183
183
  executables:
184
184
  - arv