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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 81c7cc9bd8ee2ea7742b30c91685d9a4096a6e02
4
- data.tar.gz: f432b20a9c9ca1869036885f57384f03b9c410d9
3
+ metadata.gz: 0d4be7f20c592705ff7ab248e677909c2cb8df67
4
+ data.tar.gz: 9566a93527d773fc2eea3c71fb25487ab572b42e
5
5
  SHA512:
6
- metadata.gz: 09b6bbdfc5737f166ab2605bcc7d1c22efc7f9d8660eae3499833a94a009e73519e054ead2a77935a909f904a0bec736d9393240d6c9a230b83c47670e22fa6e
7
- data.tar.gz: eadb04f51f371c4c64a7f442b82b6fcd4fda28c95ea54798e4c0cc37df5229db03199d8bcf49eda103f73621c0608f3f3d1e789feb620d2842b06be0a45a2918
6
+ metadata.gz: 709acbe09301f2e40a4168c1ee9406d88af9dfb09c078c7b726a064c48f3796a1218b8c8f6551c28a56f8f2df4b441965f3555d715f9364ce7831dc27d7c7c59
7
+ data.tar.gz: afa90155d3bc625e1f4677626c5bb66b8b2459eb451a530f4442223fb76cbe2586973feb9ba2dc7db5bb54c890f93ba933da6d375137762cd6dbb1916a03ce03
@@ -29,10 +29,14 @@ module JsonKit
29
29
 
30
30
  if obj.is_a?(Array)
31
31
  return obj.map do |i|
32
- if klass != nil
33
- @hash_helper.from_hash(i, klass, transforms)
34
- else
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
@@ -1,3 +1,3 @@
1
1
  module JsonKit
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - vaughanbrittonsage