onering-client 0.0.93 → 0.0.94

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/onering.rb +1 -1
  2. data/lib/onering/api.rb +2 -2
  3. metadata +1 -1
@@ -2,7 +2,7 @@ $: << File.expand_path(File.dirname(__FILE__))
2
2
 
3
3
  module Onering
4
4
  module Client
5
- VERSION = "0.0.93"
5
+ VERSION = "0.0.94"
6
6
 
7
7
  class Error < Exception; end
8
8
  class FatalError < Error; end
@@ -320,8 +320,8 @@ module Onering
320
320
  Onering::Logger.info("Using token authentication mechanism", "Onering::API")
321
321
 
322
322
  # get first keyfile found
323
- key = Onering::Config.get('authentication.key')
324
- raise Errors::AuthenticationMissing.new("Cannot find an API token") if key.nil?
323
+ key = Onering::Config.get('authentication.key', Onering::Config.get('authentication.keyfile'))
324
+ raise Errors::AuthenticationMissing.new("Token authentication specified, but cannot find a token config or as a command line argument") if key.nil?
325
325
 
326
326
  # set auth mechanism
327
327
  Onering::API.headers({
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onering-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.93
4
+ version: 0.0.94
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: