json_kit 0.1.3 → 0.1.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0d4be7f20c592705ff7ab248e677909c2cb8df67
4
- data.tar.gz: 9566a93527d773fc2eea3c71fb25487ab572b42e
3
+ metadata.gz: 2df8cf034f13f45d7def69a8b7ef045cde9ff026
4
+ data.tar.gz: ac1c6625a92ab962d93daa10d03cbbfaeb9e0913
5
5
  SHA512:
6
- metadata.gz: 709acbe09301f2e40a4168c1ee9406d88af9dfb09c078c7b726a064c48f3796a1218b8c8f6551c28a56f8f2df4b441965f3555d715f9364ce7831dc27d7c7c59
7
- data.tar.gz: afa90155d3bc625e1f4677626c5bb66b8b2459eb451a530f4442223fb76cbe2586973feb9ba2dc7db5bb54c890f93ba933da6d375137762cd6dbb1916a03ce03
6
+ metadata.gz: d221128ede3350cfd9216da3eeaade11068b5e9a44a79cde7f1244970cce2da5a11ed282e00358b1837108007a66bfa9156233841cbdaadd96eea916da7cd35c
7
+ data.tar.gz: 97168a2f323e70678313d04fcf048219d3500824081cbc0a07281738b2d56c332203908f90d388cbda80751cec74218e2839179a50d94736fd1292eb72c97a0a
@@ -6,7 +6,7 @@ module JsonKit
6
6
  end
7
7
 
8
8
  def to_json(obj)
9
- if [String, Fixnum, Numeric, Date, DateTime, Time, Integer].include?(obj.class)
9
+ if [String, Fixnum, Numeric, Date, DateTime, Time, Integer, TrueClass, FalseClass].include?(obj.class)
10
10
  return obj
11
11
  elsif obj.is_a?(Hash)
12
12
  return JSON.dump(obj)
@@ -23,7 +23,7 @@ module JsonKit
23
23
 
24
24
  obj = JSON.parse(json)
25
25
 
26
- if [String, Fixnum, Numeric, Date, DateTime, Time, Integer].include?(obj.class)
26
+ if [String, Fixnum, Numeric, Date, DateTime, Time, Integer, TrueClass, FalseClass].include?(obj.class)
27
27
  return json
28
28
  end
29
29
 
@@ -33,7 +33,7 @@ module JsonKit
33
33
  if klass != nil
34
34
  @hash_helper.from_hash(i, klass, transforms)
35
35
  else i.is_a?(Hash)
36
- @hash_helper.symbolize(i)
36
+ @hash_helper.symbolize(i)
37
37
  end
38
38
  else
39
39
  i
@@ -1,3 +1,3 @@
1
1
  module JsonKit
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
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.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - vaughanbrittonsage