misty 1.5.2 → 1.5.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 39ef5d2b5855f445d3202c466f0b6d54ee673b47
4
- data.tar.gz: 99f2298d30b27b21ffdb7ab4be9e8acba981b3f0
3
+ metadata.gz: 51db43f31654ff73aa9fe58100552299f4e2052f
4
+ data.tar.gz: f7f72291b25f45d202e7b1a7c440ce7ead73d9c3
5
5
  SHA512:
6
- metadata.gz: da385e4e6c2b71bf348722fc41268295af80f4b6956f5f9a9d2dd1aa7d9e4007a1db09624df71d131576d859c1ff232badab35d0215f7e9da09c85bf5067e70f
7
- data.tar.gz: d4d5166a02c894ffe507e5dd0edab32b2aa07c93e942da1fabda2206b52bd60510252a0fe9d6b14f611ef23c8a90e0220fce808494923f3b20fe2af1856cde09
6
+ metadata.gz: 850fbb0608e2393355ae186e383dd8271011c028bc839fc7169692df82390001e69784232ce99227536aa455787a1275225a89b03e57a9509ef80fc0061be86d
7
+ data.tar.gz: f0f8ef9da041ae92042cefc55b6b44d853b71f289a19f2dee1fccc2bb81626abff5021956007f40954290b9021ec52bef5ba5c79f3b23e965f6b3931d56d55a4
@@ -3,10 +3,7 @@ module Misty
3
3
  module Auth
4
4
  module Token
5
5
  include Misty::HTTP::NetHTTP
6
- attr_reader :catalog, :token
7
-
8
- # Default Domain ID
9
- DOMAIN_ID = 'default'
6
+ attr_reader :catalog, :expires, :token, :user
10
7
 
11
8
  def self.build(auth)
12
9
  if auth[:tenant_id] || auth[:tenant]
@@ -6,6 +6,7 @@ module Misty
6
6
  module Token
7
7
  class V2
8
8
  include Misty::Auth::Token
9
+ attr_reader :tenant
9
10
 
10
11
  def credentials
11
12
  if @token
@@ -6,6 +6,10 @@ module Misty
6
6
  module Token
7
7
  class V3
8
8
  include Misty::Auth::Token
9
+ attr_reader :domain, :project
10
+
11
+ # Default Domain ID
12
+ DOMAIN_ID = 'default'
9
13
 
10
14
  def credentials
11
15
  if @token
@@ -2,19 +2,13 @@ require 'misty/config'
2
2
  require 'misty/http/header'
3
3
 
4
4
  module Misty
5
-
6
- # +Misty::Cloud+ is the main OpenStack cloud class.
7
- # An instance holds authentication information such as token, catalog and contains all available services as methods.
8
- #
9
5
  class Cloud
6
+ attr_reader :config
7
+
10
8
  def self.dot_to_underscore(val)
11
9
  val.gsub(/\./,'_')
12
10
  end
13
11
 
14
- # ==== Attributes
15
- #
16
- # * +arg+ - Hash of configuration parameters for authentication, log, and services options.
17
- #
18
12
  def initialize(arg)
19
13
  @config = Misty::Config.new(arg)
20
14
  end
@@ -27,7 +27,7 @@ module Misty
27
27
  # Default when uri.scheme is https
28
28
  SSL_VERIFY_MODE = true
29
29
 
30
- attr_reader :catalog, :token, :log, :services
30
+ attr_reader :log, :services, :token
31
31
 
32
32
  def initialize(arg)
33
33
  raise CredentialsError if arg.nil? || arg.empty? || arg[:auth].nil? || arg[:auth].empty?
@@ -1,3 +1,3 @@
1
1
  module Misty
2
- VERSION = '1.5.2'
2
+ VERSION = '1.5.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: misty
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.2
4
+ version: 1.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gilles Dubreuil
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-03-15 00:00:00.000000000 Z
11
+ date: 2018-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json