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 +4 -4
- data/lib/misty/auth/token.rb +1 -4
- data/lib/misty/auth/token/v2.rb +1 -0
- data/lib/misty/auth/token/v3.rb +4 -0
- data/lib/misty/cloud.rb +2 -8
- data/lib/misty/config.rb +1 -1
- data/lib/misty/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51db43f31654ff73aa9fe58100552299f4e2052f
|
4
|
+
data.tar.gz: f7f72291b25f45d202e7b1a7c440ce7ead73d9c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 850fbb0608e2393355ae186e383dd8271011c028bc839fc7169692df82390001e69784232ce99227536aa455787a1275225a89b03e57a9509ef80fc0061be86d
|
7
|
+
data.tar.gz: f0f8ef9da041ae92042cefc55b6b44d853b71f289a19f2dee1fccc2bb81626abff5021956007f40954290b9021ec52bef5ba5c79f3b23e965f6b3931d56d55a4
|
data/lib/misty/auth/token.rb
CHANGED
@@ -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]
|
data/lib/misty/auth/token/v2.rb
CHANGED
data/lib/misty/auth/token/v3.rb
CHANGED
data/lib/misty/cloud.rb
CHANGED
@@ -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
|
data/lib/misty/config.rb
CHANGED
@@ -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 :
|
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?
|
data/lib/misty/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2018-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|