restpack-core-client 0.1.11 → 0.1.12

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.
@@ -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
@@ -17,7 +17,7 @@ module RestPack::Core::Client
17
17
  end
18
18
 
19
19
  def get_configuration_by_key(key)
20
- @configurations.find { |c| c.key == key }
20
+ @configurations.find { |c| c.key == key.to_s }
21
21
  end
22
22
  end
23
23
  end
@@ -1,7 +1,7 @@
1
1
  module RestPack
2
2
  module Core
3
3
  module Client
4
- VERSION = "0.1.11"
4
+ VERSION = "0.1.12"
5
5
  end
6
6
  end
7
7
  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.11
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-16 00:00:00.000000000 Z
12
+ date: 2013-03-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client