json_kit 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/json_kit/helper.rb +7 -3
- data/lib/json_kit/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: 0d4be7f20c592705ff7ab248e677909c2cb8df67
|
4
|
+
data.tar.gz: 9566a93527d773fc2eea3c71fb25487ab572b42e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 709acbe09301f2e40a4168c1ee9406d88af9dfb09c078c7b726a064c48f3796a1218b8c8f6551c28a56f8f2df4b441965f3555d715f9364ce7831dc27d7c7c59
|
7
|
+
data.tar.gz: afa90155d3bc625e1f4677626c5bb66b8b2459eb451a530f4442223fb76cbe2586973feb9ba2dc7db5bb54c890f93ba933da6d375137762cd6dbb1916a03ce03
|
data/lib/json_kit/helper.rb
CHANGED
@@ -29,10 +29,14 @@ module JsonKit
|
|
29
29
|
|
30
30
|
if obj.is_a?(Array)
|
31
31
|
return obj.map do |i|
|
32
|
-
if
|
33
|
-
|
34
|
-
|
32
|
+
if i.is_a?(Hash)
|
33
|
+
if klass != nil
|
34
|
+
@hash_helper.from_hash(i, klass, transforms)
|
35
|
+
else i.is_a?(Hash)
|
35
36
|
@hash_helper.symbolize(i)
|
37
|
+
end
|
38
|
+
else
|
39
|
+
i
|
36
40
|
end
|
37
41
|
end
|
38
42
|
else
|
data/lib/json_kit/version.rb
CHANGED