king_konf 0.1.4 → 0.1.5

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: bb38c36fe1787e6a86e1605a01b479dbaffb2490
4
- data.tar.gz: 00216523cc08f46a6e3ed08025bccb28d2a26157
3
+ metadata.gz: abc81cff30b2a3d480020c088f5134c054571f73
4
+ data.tar.gz: e076879bbfc0d94890fe661fdd2162df8ab21902
5
5
  SHA512:
6
- metadata.gz: 9f856669272dca904b76c0161a4baaa72653e293d64eab71c66eaa06af6a53e8087f7a4a91dd1fa1a07cf1b0fe9892923f7299b1064f22b2aec50e08e472c4c8
7
- data.tar.gz: a5bf08cbd536b9dd9e2530e8481c5f4307bb18e5ca3fd0c27431f0c04f22ca14d7d4e92fc0eef272dcbc73856d833e7438c0eb646113dbff6bc157165571b49a
6
+ metadata.gz: df30bcc671ebd55378a87ca970a86df2cf8f702523092aaaea634902df34475bd1b375ff7abeb5670f5d80ea419650230d612b872bca631b65a402a4906d5546
7
+ data.tar.gz: 60706bc33e11bef6bb59238a55d651ec8d157d74c9d81603ec9bdc777ed3bd4e352bdf1c2167b95c069676a642e5ee6f14d20c2e664c3f88b939c96dfff7979b
@@ -90,6 +90,12 @@ module KingKonf
90
90
  end
91
91
  end
92
92
 
93
+ def decode(name, value)
94
+ decoded_value = self.class.variable(name).decode(value)
95
+
96
+ set(name, decoded_value)
97
+ end
98
+
93
99
  def set(name, value)
94
100
  unless self.class.variable?(name)
95
101
  raise ConfigError, "unknown configuration variable #{name}"
@@ -1,3 +1,3 @@
1
1
  module KingKonf
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: king_konf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Schierbeck