Fix configuration behavior in Ruby SDK.
authorTom Clegg <tom@curoverse.com>
Sat, 19 Apr 2014 06:39:11 +0000 (02:39 -0400)
committerTom Clegg <tom@curoverse.com>
Sat, 19 Apr 2014 06:42:14 +0000 (02:42 -0400)
commit7bc20af4935fee1caa566e86a074022f0b60d166
tree22eff9fbd14c95ec29119625fbbb9b9d39bd754d
parentafe657cad834e66867b11bef08a5e9a372f525a4
Fix configuration behavior in Ruby SDK.

API_VERSION is not configuration: it indicates how a client program
expects the API server to behave. (No environment variable or config
file should try to override that.)

Do not invoke insecure behavior unless API_HOST_INSECURE is "1",
"true", or "yes".

If API_HOST and API_TOKEN environment variables are set, do not bother
reading the configuration file at all.

Strip spaces so "API_TOKEN = foo" works in the configuration file.
sdk/ruby/lib/arvados.rb