arvados 0.1.20140414145041 → 0.1.20140414163107

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/lib/arvados.rb +18 -14
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dbffb0a4c94fbde180b2b3840c780b5d56774036
4
- data.tar.gz: 772425d21825f982a7464c264ea0ab52c8d2a22e
3
+ metadata.gz: 8d7c5f67625b284c400a3d2f18c9ae0eb91a6aea
4
+ data.tar.gz: 625876d51a2f9cd7510856fc75868d782b6d66c9
5
5
  SHA512:
6
- metadata.gz: 25251e957da896cd94ea349ddf04da02f363ddc86a41d784d890e21687f01bedc7fbb5eeec89f0f4e0c94156b0b4607174932cbcc098a03b76d47cb7792fb74b
7
- data.tar.gz: d417a038f2123870210b4e9d47789c50c97863ed0d1e063eb46c659cd135dbc804f55d133a194db1f095e50b980778142e6df0b8266a60ac99263e1aed1ab1a8
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
- expanded_path = File.expand_path config_file_path
156
- if File.exist? expanded_path
157
- # Load settings from the config file.
158
- lineno = 0
159
- File.open(expanded_path).each do |line|
160
- lineno = lineno + 1
161
- # skip comments and blank lines
162
- next if line.match('^\s*#') or not line.match('\S')
163
- var, val = line.chomp.split('=', 2)
164
- # allow environment settings to override config files.
165
- if var and val
166
- config[var] ||= val
167
- else
168
- warn "#{expanded_path}: #{lineno}: could not parse `#{line}'"
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.20140414145041
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 97279656db75b9b7f8282e3b98774a60935d39f3
69
+ description: This is the Arvados SDK gem, git revision 28c07cc661b01747d4a3b090d0cac2e68067ad80
70
70
  email: gem-dev@curoverse.com
71
71
  executables: []
72
72
  extensions: []