arvados 0.1.20140414145041 → 0.1.20140414163107
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 +18 -14
- 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: 8d7c5f67625b284c400a3d2f18c9ae0eb91a6aea
|
4
|
+
data.tar.gz: 625876d51a2f9cd7510856fc75868d782b6d66c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07bbf9d8b741aca3ebf2067469ec27e0eed9d79b6a9f19396171258cf5cf326124f63dc817ab8dd44a035bfd029d4685274a68941dd1f2269cef966ac554bd48
|
7
|
+
data.tar.gz: ae19f3f97097ec6718ce5f6daa70e3075e7fb3f5974004c2388eba5bf6fe6b668bfeb619768cb32dbef57c58ab645cb93a07a6f166102cf142802f0af66e55a7
|
data/lib/arvados.rb
CHANGED
@@ -152,22 +152,26 @@ class Arvados
|
|
152
152
|
config['ARVADOS_API_HOST_INSECURE'] = ENV['ARVADOS_API_HOST_INSECURE']
|
153
153
|
config['ARVADOS_API_VERSION'] = ENV['ARVADOS_API_VERSION']
|
154
154
|
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
155
|
+
begin
|
156
|
+
expanded_path = File.expand_path config_file_path
|
157
|
+
if File.exist? expanded_path
|
158
|
+
# Load settings from the config file.
|
159
|
+
lineno = 0
|
160
|
+
File.open(expanded_path).each do |line|
|
161
|
+
lineno = lineno + 1
|
162
|
+
# skip comments and blank lines
|
163
|
+
next if line.match('^\s*#') or not line.match('\S')
|
164
|
+
var, val = line.chomp.split('=', 2)
|
165
|
+
# allow environment settings to override config files.
|
166
|
+
if var and val
|
167
|
+
config[var] ||= val
|
168
|
+
else
|
169
|
+
warn "#{expanded_path}: #{lineno}: could not parse `#{line}'"
|
170
|
+
end
|
169
171
|
end
|
170
172
|
end
|
173
|
+
rescue
|
174
|
+
debuglog "HOME environment variable (#{ENV['HOME']}) not set, not using #{config_file_path}", 0
|
171
175
|
end
|
172
176
|
|
173
177
|
@@config = config
|
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.20140414163107
|
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 28c07cc661b01747d4a3b090d0cac2e68067ad80
|
70
70
|
email: gem-dev@curoverse.com
|
71
71
|
executables: []
|
72
72
|
extensions: []
|