restpack-core-client 0.1.20 → 0.1.21

Sign up to get free protection for your applications and to get access to all the features.
@@ -26,12 +26,12 @@ module RestPack
26
26
  end
27
27
 
28
28
  def get_configuration(key)
29
- @configurations.find { |c| c.key == key }
29
+ @configurations.find { |c| c.key == key.to_s }
30
30
  end
31
-
32
- def get_service_domain(identifer)
33
- config = get_configuration(identifer)
34
- config.nil? ? nil : config.value[:domain]
31
+
32
+ def get_configuration_value(key, default_value = nil)
33
+ config = get_configuration(key)
34
+ config.nil? ? default_value : config[:value]
35
35
  end
36
36
  end
37
37
  end
@@ -1,7 +1,7 @@
1
1
  module RestPack
2
2
  module Core
3
3
  module Client
4
- VERSION = "0.1.20"
4
+ VERSION = "0.1.21"
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.20
4
+ version: 0.1.21
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: