restpack-core-client 0.1.11 → 0.1.12
Sign up to get free protection for your applications and to get access to all the features.
@@ -14,7 +14,20 @@ module RestPack::Core::Client
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def get_configuration_by_key(key)
|
17
|
-
@configurations.find { |c| c.key == key }
|
17
|
+
@configurations.find { |c| c.key == key.to_s }
|
18
|
+
end
|
19
|
+
|
20
|
+
def known_domain_names
|
21
|
+
configuration = get_configuration_by_key(:domains)
|
22
|
+
configuration.present? ? configuration.value : {}
|
23
|
+
end
|
24
|
+
|
25
|
+
def home_domain #TODO: GJ: dynamic
|
26
|
+
known_domain_names[:home]
|
27
|
+
end
|
28
|
+
|
29
|
+
def auth_domain
|
30
|
+
known_domain_names[:auth]
|
18
31
|
end
|
19
32
|
end
|
20
33
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: restpack-core-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.12
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-03-
|
12
|
+
date: 2013-03-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rest-client
|