json_world 0.1.2 → 0.1.3
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/json_world/property_definition.rb +3 -1
- data/lib/json_world/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 548550510a3d4677c1ad3fccde272e0d0a918d2f
|
|
4
|
+
data.tar.gz: b72123974bfe91891a884f1d52d1f833247ea094
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1320f37b8e132cc830486996c556ae8c9b02e627d8952938d5fb098eec19b01e93fd9cf8bf99af839a8239251be3909fa7b49de963fb2306dbdec3b8b9895124
|
|
7
|
+
data.tar.gz: 0ea1eb0e8c725629733942f6703b0fdc5985bfbe964f842d4b1801943882d9827e72535259d343fdf564c469578b528b9fe5e5b9fdcef420866ee55897c388e4
|
data/CHANGELOG.md
CHANGED
|
@@ -113,6 +113,8 @@ module JsonWorld
|
|
|
113
113
|
case
|
|
114
114
|
when this_type == Array
|
|
115
115
|
"array"
|
|
116
|
+
when this_type == FalseClass || this_type == TrueClass
|
|
117
|
+
"boolean"
|
|
116
118
|
when this_type == Float
|
|
117
119
|
"float"
|
|
118
120
|
when this_type == Hash
|
|
@@ -124,7 +126,7 @@ module JsonWorld
|
|
|
124
126
|
when this_type == String || this_type == Time
|
|
125
127
|
"string"
|
|
126
128
|
end
|
|
127
|
-
end.compact
|
|
129
|
+
end.compact.uniq
|
|
128
130
|
strings.length >= 2 ? strings : strings.first
|
|
129
131
|
end
|
|
130
132
|
|
data/lib/json_world/version.rb
CHANGED