king_konf 0.3.3 → 0.3.4
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 +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e70105236984b09d7d7084252aa803a7f80d5e5e932f8dac6abf8b5f55f517f
|
4
|
+
data.tar.gz: 0f84bbb611f69f745e859da039b4c2efd17241ef5679af8df3e4da63a80f3b76
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3060051a7d7a5bbf79c43b4434b29e1466fd4eab9c03485819b5e7ce4b2e559911b1a510c80281a5a3deba0779fe433d595db3556b06deba8d715778da3f3af9
|
7
|
+
data.tar.gz: 7ba6ae642819a51cace837206ee5756d5008c6586f0b418ff4b2e881df184d2bc24bd05cfc67f169bc478b5d115e24c99933dbccef04f345184c748fc32a86a7
|
data/lib/king_konf/variable.rb
CHANGED
@@ -34,7 +34,7 @@ module KingKonf
|
|
34
34
|
when :float then value.is_a?(Float) || value.is_a?(Integer) || value.nil?
|
35
35
|
when :duration then value.is_a?(Float) || value.is_a?(Integer) || value.is_a?(String) || value.nil?
|
36
36
|
when :boolean then value == true || value == false
|
37
|
-
when :symbol then value.is_a?(Symbol)
|
37
|
+
when :symbol then value.is_a?(Symbol) || value.is_a?(String)
|
38
38
|
else raise "invalid type #{@type}"
|
39
39
|
end
|
40
40
|
end
|
data/lib/king_konf/version.rb
CHANGED