arvados 0.1.20140513124920 → 0.1.20140513131358
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/lib/arvados.rb +4 -3
- 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: 1f6d57e2fd119e60336962c789eea0ebc185c83a
|
4
|
+
data.tar.gz: 54c80c115c1d6eea7a287c9047ea85fcc4c057df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d47b7a096bad1410dbf1a5b3d4964ca358bf2d23e9c717d2e34d11031ed530aaeee4cb72ff5df0f076e20cc5623529751e39a5267b8b892950daecd000449bf8
|
7
|
+
data.tar.gz: 689966367e2aa99397907c85e12aa24a9b94fa1fa842c127e0d3a74dceb3bf19ee2cd7e80dbfeacb7e92adcbf6561d818691e10e86e34b899b3757f57a630566
|
data/lib/arvados.rb
CHANGED
@@ -210,8 +210,6 @@ class Arvados
|
|
210
210
|
end
|
211
211
|
def self.api_exec(method, parameters={})
|
212
212
|
api_method = arvados_api.send(api_models_sym).send(method.name.to_sym)
|
213
|
-
parameters = parameters.
|
214
|
-
merge(:api_token => arvados.config['ARVADOS_API_TOKEN'])
|
215
213
|
parameters.each do |k,v|
|
216
214
|
parameters[k] = v.to_json if v.is_a? Array or v.is_a? Hash
|
217
215
|
end
|
@@ -230,7 +228,10 @@ class Arvados
|
|
230
228
|
execute(:api_method => api_method,
|
231
229
|
:authenticated => false,
|
232
230
|
:parameters => parameters,
|
233
|
-
:body => body
|
231
|
+
:body => body,
|
232
|
+
:headers => {
|
233
|
+
authorization: 'OAuth2 '+arvados.config['ARVADOS_API_TOKEN']
|
234
|
+
})
|
234
235
|
resp = JSON.parse result.body, :symbolize_names => true
|
235
236
|
if resp[:errors]
|
236
237
|
raise Arvados::TransactionFailedError.new(resp[:errors])
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: arvados
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.20140513131358
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arvados Authors
|
@@ -66,7 +66,7 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
-
description: This is the Arvados SDK gem, git revision
|
69
|
+
description: This is the Arvados SDK gem, git revision 67f17818338153fc6f7b0c65f51e97bbb16f0cc7
|
70
70
|
email: gem-dev@curoverse.com
|
71
71
|
executables: []
|
72
72
|
extensions: []
|