configuration_service 4.2.0 → 4.2.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d95adf4453485b695ef282335dace87967e66e6c
|
4
|
+
data.tar.gz: e02eb0b25f7eaaaffac67d74617fdd9145dd1d77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9d30e1de3bc12bedb49f9885378745a476be1f03d6bfe8ac8932af554dc70cba03fd4153b93f6d3f8f732a9aa58440c646abaebeda7c07aa128dcdeb5ad6735
|
7
|
+
data.tar.gz: 25ae4f77493da061cbc13c74239682602c46cab47c43c1e7fb7fdd98cc3b8538b2335bb5871ec5378d3c77237494c59d18015f571f9f2b46c75150155799fa7c
|
data/Rakefile
CHANGED
@@ -15,10 +15,11 @@ end
|
|
15
15
|
namespace :test do
|
16
16
|
desc "Test includes"
|
17
17
|
task :includes do
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
18
|
+
Dir.chdir("lib") do
|
19
|
+
Dir["**/*.rb"].map { |x| x.chomp(".rb") }.each do |f|
|
20
|
+
sh %Q{ruby -e '$LOAD_PATH.unshift("."); require "#{f}"; exit 0'}
|
21
|
+
end
|
22
|
+
end
|
22
23
|
end
|
23
24
|
end
|
24
25
|
|
@@ -106,8 +106,10 @@ module ConfigurationService
|
|
106
106
|
#
|
107
107
|
def request_configuration(identifier, credentials)
|
108
108
|
configuration = @provider.request_configuration(identifier, credentials)
|
109
|
-
|
110
|
-
|
109
|
+
if configuration
|
110
|
+
resolved_configuration_data = resolve_configuration_data(configuration.data, credentials)
|
111
|
+
ConfigurationService::Configuration.new(configuration.identifier, resolved_configuration_data, configuration.metadata)
|
112
|
+
end
|
111
113
|
end
|
112
114
|
|
113
115
|
##
|
@@ -122,9 +124,9 @@ module ConfigurationService
|
|
122
124
|
#
|
123
125
|
def authorize_consumption(identifier, credentials)
|
124
126
|
configuration = @provider.request_configuration(identifier, credentials)
|
125
|
-
identifiers = find_configuration_identifiers(configuration.data)
|
127
|
+
identifiers = configuration ? find_configuration_identifiers(configuration.data) : []
|
126
128
|
identifiers.unshift(identifier)
|
127
|
-
@provider.authorize_consumption(identifiers, credentials)
|
129
|
+
@provider.authorize_consumption(identifiers, credentials)
|
128
130
|
end
|
129
131
|
|
130
132
|
private
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: configuration_service
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.2.
|
4
|
+
version: 4.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sheldon Hearn
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|