misty 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ef6194d780346c6ece1d31df96eb3ee0b9238cfd
4
- data.tar.gz: 647ec752cc79508e49f5b7be38197634f787921b
3
+ metadata.gz: 0f3a29db8f499a11bf1eff54146d39862457b6f2
4
+ data.tar.gz: fea65df097fa2543051783ea143c354610a18d51
5
5
  SHA512:
6
- metadata.gz: d44270f88d2790dd75c7c47641c88f1c4bf0217dcfb3baf95ca36b99c2b88d82306791e5a45171c0760a2c5360946c8b406fbc5a5cdc7b7db190aad951444c70
7
- data.tar.gz: ee7884149c42462497317b8305c5b10edacfe584e44edc6273ce04314daca7339c90b33a8753d4d0f76b1ce1e7361616bcab823a6bd279a6d094be898c636d25
6
+ metadata.gz: 6c65a335c1ca5a485727ecf18cd9001e14011ac564aba4775da9cfabee76a7fbfcab59e4ad5bbab5b0ed03e96a0322a6fc769d831d8b1f62b6fb3b2d43321541
7
+ data.tar.gz: 70895252f62e836ec5c6f10d474b23aa20ca0fb156522239d2b806558ef1a6b2a32aa9e02e6c5dad3b339c1c6fdd90d2e81779331344dcfe48c00d7322969d4b
@@ -15,12 +15,10 @@ module Misty
15
15
  include Misty::HTTP::NetHTTP
16
16
 
17
17
  def self.factory(options, *args)
18
- if options[:project_id] || options[:project]
19
- return Misty::AuthV3.new(options, *args)
20
- elsif options[:tenant_id] || options[:tenant]
18
+ if options[:tenant_id] || options[:tenant]
21
19
  return Misty::AuthV2.new(options, *args)
22
20
  else
23
- raise CredentialsError, "Cannot identify version from credentials"
21
+ return Misty::AuthV3.new(options, *args)
24
22
  end
25
23
  end
26
24
 
@@ -1,3 +1,3 @@
1
1
  module Misty
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: misty
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gilles Dubreuil