king_konf 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/king_konf/variable.rb +1 -1
- data/lib/king_konf/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6321bc1dbb64b0256b68251f524a71bc93b3837e15950c51f8d1820b52ccd7b4
|
4
|
+
data.tar.gz: 426d17dc7be5cc6b68376fe572e0c34b95074c3c303bbd463a42b7ac13201402
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ee51b8c5fc4eefc2c33b6ced5a3a00ae627cbf206d1631c28188f0fc4032cd70a6d7475729ef0d2f6446c1fbf00e6b7875e652654086f2b37d8b7c08bebbb58
|
7
|
+
data.tar.gz: 4c3f255add7dd11e2ab00c8705bfa4d4271ba9ba4f2d1758cb34dc532b9a7f66ea2a11f1cc00737b7a722b08491d170a78d39bb07914374024ca38e1fb76b498
|
data/lib/king_konf/variable.rb
CHANGED
@@ -15,7 +15,7 @@ module KingKonf
|
|
15
15
|
|
16
16
|
def cast(value)
|
17
17
|
case @type
|
18
|
-
when :float then value.to_f
|
18
|
+
when :float then value.is_a?(String) || value.is_a?(Integer) ? value.to_f : value
|
19
19
|
when :duration then value.is_a?(String) ? Decoder.duration(value) : value
|
20
20
|
when :symbol then value.is_a?(String) ? value.to_sym : value
|
21
21
|
else value
|
data/lib/king_konf/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: king_konf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Schierbeck
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05-
|
11
|
+
date: 2018-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|