json_kit 0.1.5 → 1.0.0

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
- SHA1:
3
- metadata.gz: d23cbebf80b89d4d6581f049c1596a0cf61360be
4
- data.tar.gz: 4dbb8ea85ba6daf42b4a0010e004462baf5dd43f
2
+ SHA256:
3
+ metadata.gz: d4f67f99cbc184ec91bb2268aaf28b7d2ead5f2d1e3b3a565715eda397b1e5e0
4
+ data.tar.gz: c02a14e19e6112a433dd017c77fbc42135d6e893558137c0b1853313fb24bfec
5
5
  SHA512:
6
- metadata.gz: 7b64f48633d54b2fc800b631e8df249a6d130a5e8a796fe196dcef89e731dfc5cddf8b3c8809ecbabad062aad97911797384944f87f275c660c7bbf0a2cbeb2e
7
- data.tar.gz: 4d831264de5529bf1594aba65a495d8aa3895b23041072287144d4d35e13c3f756cf4f74e3d3614629dff9313186ae51db7b94b4f8f73c4ffa9f9ceadf8e835a
6
+ metadata.gz: 4fecc634af98a9cc4b32ea7eed3157272de5e54e019905df7099d762a0d67ab9c2069e4074093e48deb0106e7d239188b4bf908e1861359f8cc86190333d26a0
7
+ data.tar.gz: a81661bfbd0b464f587107441e4744b82c4f5d36b4ebdcf5fd25ff06e183d553f25ad672efe1862678cf1e4ec0027aeae85ce609a3277508173018adaf70e5b8
@@ -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, TrueClass, FalseClass].include?(obj.class)
9
+ if [String, 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, TrueClass, FalseClass].include?(obj.class)
26
+ if [String, Numeric, Date, DateTime, Time, Integer, TrueClass, FalseClass].include?(obj.class)
27
27
  return json
28
28
  end
29
29
 
@@ -64,4 +64,4 @@ module JsonKit
64
64
  end
65
65
 
66
66
  end
67
- end
67
+ end
@@ -1,3 +1,3 @@
1
1
  module JsonKit
2
- VERSION = "0.1.5"
2
+ VERSION = "1.0.0"
3
3
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - vaughanbrittonsage
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-09-05 00:00:00.000000000 Z
11
+ date: 2024-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.11'
19
+ version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1.11'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -42,16 +42,16 @@ dependencies:
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '3.0'
47
+ version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '3.0'
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: pry
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -66,6 +66,34 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: simplecov
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: simplecov_json_formatter
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
69
97
  - !ruby/object:Gem::Dependency
70
98
  name: json
71
99
  requirement: !ruby/object:Gem::Requirement
@@ -104,7 +132,7 @@ files:
104
132
  - lib/json_kit.rb
105
133
  - lib/json_kit/helper.rb
106
134
  - lib/json_kit/version.rb
107
- homepage: https://github.com/vaughanbrittonsage/json_kit
135
+ homepage: https://github.com/sage/json_kit
108
136
  licenses:
109
137
  - MIT
110
138
  metadata: {}
@@ -116,15 +144,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
116
144
  requirements:
117
145
  - - ">="
118
146
  - !ruby/object:Gem::Version
119
- version: '0'
147
+ version: 3.0.0
120
148
  required_rubygems_version: !ruby/object:Gem::Requirement
121
149
  requirements:
122
150
  - - ">="
123
151
  - !ruby/object:Gem::Version
124
152
  version: '0'
125
153
  requirements: []
126
- rubyforge_project:
127
- rubygems_version: 2.5.1
154
+ rubygems_version: 3.3.5
128
155
  signing_key:
129
156
  specification_version: 4
130
157
  summary: Toolkit for working with Json