json 1.8.3 → 2.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/{CHANGES → CHANGES.md} +241 -90
- data/Gemfile +10 -6
- data/{COPYING-json-jruby → LICENSE} +5 -6
- data/{README.rdoc → README.md} +201 -134
- data/VERSION +1 -1
- data/ext/json/ext/fbuffer/fbuffer.h +0 -3
- data/ext/json/ext/generator/generator.c +264 -104
- data/ext/json/ext/generator/generator.h +12 -4
- data/ext/json/ext/parser/extconf.rb +28 -0
- data/ext/json/ext/parser/parser.c +425 -462
- data/ext/json/ext/parser/parser.h +5 -5
- data/ext/json/ext/parser/parser.rl +181 -181
- data/ext/json/extconf.rb +1 -1
- data/json.gemspec +0 -0
- data/lib/json.rb +550 -29
- data/lib/json/add/bigdecimal.rb +3 -2
- data/lib/json/add/complex.rb +4 -4
- data/lib/json/add/core.rb +1 -0
- data/lib/json/add/date.rb +1 -1
- data/lib/json/add/date_time.rb +1 -1
- data/lib/json/add/exception.rb +1 -1
- data/lib/json/add/ostruct.rb +3 -3
- data/lib/json/add/range.rb +1 -1
- data/lib/json/add/rational.rb +3 -3
- data/lib/json/add/regexp.rb +3 -3
- data/lib/json/add/set.rb +29 -0
- data/lib/json/add/struct.rb +1 -1
- data/lib/json/add/symbol.rb +1 -1
- data/lib/json/add/time.rb +1 -1
- data/lib/json/common.rb +381 -162
- data/lib/json/ext.rb +0 -6
- data/lib/json/generic_object.rb +5 -4
- data/lib/json/pure.rb +2 -8
- data/lib/json/pure/generator.rb +83 -126
- data/lib/json/pure/parser.rb +62 -84
- data/lib/json/version.rb +2 -1
- data/tests/fixtures/fail29.json +1 -0
- data/tests/fixtures/fail30.json +1 -0
- data/tests/fixtures/fail31.json +1 -0
- data/tests/fixtures/fail32.json +1 -0
- data/tests/fixtures/obsolete_fail1.json +1 -0
- data/tests/{test_json_addition.rb → json_addition_test.rb} +28 -25
- data/tests/json_common_interface_test.rb +169 -0
- data/tests/json_encoding_test.rb +107 -0
- data/tests/json_ext_parser_test.rb +15 -0
- data/tests/{test_json_fixtures.rb → json_fixtures_test.rb} +13 -8
- data/tests/{test_json_generate.rb → json_generator_test.rb} +109 -47
- data/tests/{test_json_generic_object.rb → json_generic_object_test.rb} +15 -8
- data/tests/json_parser_test.rb +497 -0
- data/tests/json_string_matching_test.rb +38 -0
- data/tests/lib/core_assertions.rb +763 -0
- data/tests/lib/envutil.rb +365 -0
- data/tests/lib/find_executable.rb +22 -0
- data/tests/lib/helper.rb +4 -0
- data/tests/ractor_test.rb +30 -0
- data/tests/test_helper.rb +17 -0
- metadata +48 -76
- data/.gitignore +0 -16
- data/.travis.yml +0 -26
- data/COPYING +0 -58
- data/GPL +0 -340
- data/README-json-jruby.markdown +0 -33
- data/Rakefile +0 -412
- data/TODO +0 -1
- data/data/example.json +0 -1
- data/data/index.html +0 -38
- data/data/prototype.js +0 -4184
- data/diagrams/.keep +0 -0
- data/install.rb +0 -23
- data/java/src/json/ext/ByteListTranscoder.java +0 -167
- data/java/src/json/ext/Generator.java +0 -444
- data/java/src/json/ext/GeneratorMethods.java +0 -232
- data/java/src/json/ext/GeneratorService.java +0 -43
- data/java/src/json/ext/GeneratorState.java +0 -543
- data/java/src/json/ext/OptionsReader.java +0 -114
- data/java/src/json/ext/Parser.java +0 -2645
- data/java/src/json/ext/Parser.rl +0 -969
- data/java/src/json/ext/ParserService.java +0 -35
- data/java/src/json/ext/RuntimeInfo.java +0 -121
- data/java/src/json/ext/StringDecoder.java +0 -167
- data/java/src/json/ext/StringEncoder.java +0 -106
- data/java/src/json/ext/Utils.java +0 -89
- data/json-java.gemspec +0 -23
- data/json_pure.gemspec +0 -40
- data/tests/fixtures/fail1.json +0 -1
- data/tests/setup_variant.rb +0 -11
- data/tests/test_json.rb +0 -553
- data/tests/test_json_encoding.rb +0 -65
- data/tests/test_json_string_matching.rb +0 -39
- data/tests/test_json_unicode.rb +0 -72
- data/tools/fuzz.rb +0 -139
- data/tools/server.rb +0 -62
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 4ba367cf703870f72ec5de7af43e713095df4b9c88cb0ae12a4c10455052383a
|
4
|
+
data.tar.gz: 622fc0230b9a26ddde47fb3e81c2cf2f0143c22cbfd2429019db1a0f9eef5aaa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1cab7c9113f03333b720a039fd065d5dd376ab3b4dda1630ccf316ee72121ed4a8abfc06a576be524ce7a86b78e9af917b507fbe95411efef11a563da95295c4
|
7
|
+
data.tar.gz: 68b7cec95107a831286fc3ff36971cd9cc0efbc29157bc0df95a16238b5594214ffca0d417f2dd9011f9e26bf4e163e01e179cbf06f8c053df68c4d60f2416cc
|
data/{CHANGES → CHANGES.md}
RENAMED
@@ -1,94 +1,211 @@
|
|
1
|
-
|
1
|
+
# Changes
|
2
|
+
|
3
|
+
## 2020-12-22 (2.5.1)
|
4
|
+
|
5
|
+
* Restore the compatibility for constants of JSON class.
|
6
|
+
|
7
|
+
## 2020-12-22 (2.5.0)
|
8
|
+
|
9
|
+
* Ready to Ractor-safe at Ruby 3.0.
|
10
|
+
|
11
|
+
## 2020-12-17 (2.4.1)
|
12
|
+
|
13
|
+
* Restore version.rb with 2.4.1
|
14
|
+
|
15
|
+
## 2020-12-15 (2.4.0)
|
16
|
+
|
17
|
+
* Implement a freeze: parser option #447
|
18
|
+
* Fix an issue with generate_pretty and empty objects in the Ruby and Java implementations #449
|
19
|
+
* Fix JSON.load_file doc #448
|
20
|
+
* Fix pure parser with unclosed arrays / objects #425
|
21
|
+
* bundle the LICENSE file in the gem #444
|
22
|
+
* Add an option to escape forward slash character #405
|
23
|
+
* RDoc for JSON #439 #446 #442 #434 #433 #430
|
24
|
+
|
25
|
+
## 2020-06-30 (2.3.1)
|
26
|
+
|
27
|
+
* Spelling and grammar fixes for comments. Pull request #191 by Josh
|
28
|
+
Kline.
|
29
|
+
* Enhance generic JSON and #generate docs. Pull request #347 by Victor
|
30
|
+
Shepelev.
|
31
|
+
* Add :nodoc: for GeneratorMethods. Pull request #349 by Victor Shepelev.
|
32
|
+
* Baseline changes to help (JRuby) development. Pull request #371 by Karol
|
33
|
+
Bucek.
|
34
|
+
* Add metadata for rubygems.org. Pull request #379 by Alexandre ZANNI.
|
35
|
+
* Remove invalid JSON.generate description from JSON module rdoc. Pull
|
36
|
+
request #384 by Jeremy Evans.
|
37
|
+
* Test with TruffleRuby in CI. Pull request #402 by Benoit Daloze.
|
38
|
+
* Rdoc enhancements. Pull request #413 by Burdette Lamar.
|
39
|
+
* Fixtures/ are not being tested... Pull request #416 by Marc-André
|
40
|
+
Lafortune.
|
41
|
+
* Use frozen string for hash key. Pull request #420 by Marc-André
|
42
|
+
Lafortune.
|
43
|
+
* Added :call-seq: to RDoc for some methods. Pull request #422 by Burdette
|
44
|
+
Lamar.
|
45
|
+
* Small typo fix. Pull request #423 by Marc-André Lafortune.
|
46
|
+
|
47
|
+
## 2019-12-11 (2.3.0)
|
48
|
+
* Fix default of `create_additions` to always be `false` for `JSON(user_input)`
|
49
|
+
and `JSON.parse(user_input, nil)`.
|
50
|
+
Note that `JSON.load` remains with default `true` and is meant for internal
|
51
|
+
serialization of trusted data. [CVE-2020-10663]
|
52
|
+
* Fix passing args all #to_json in json/add/*.
|
53
|
+
* Fix encoding issues
|
54
|
+
* Fix issues of keyword vs positional parameter
|
55
|
+
* Fix JSON::Parser against bigdecimal updates
|
56
|
+
* Bug fixes to JRuby port
|
57
|
+
|
58
|
+
## 2019-02-21 (2.2.0)
|
59
|
+
* Adds support for 2.6 BigDecimal and ruby standard library Set datetype.
|
60
|
+
|
61
|
+
## 2017-04-18 (2.1.0)
|
62
|
+
* Allow passing of `decimal_class` option to specify a class as which to parse
|
63
|
+
JSON float numbers.
|
64
|
+
## 2017-03-23 (2.0.4)
|
65
|
+
* Raise exception for incomplete unicode surrogates/character escape
|
66
|
+
sequences. This problem was reported by Daniel Gollahon (dgollahon).
|
67
|
+
* Fix arbitrary heap exposure problem. This problem was reported by Ahmad
|
68
|
+
Sherif (ahmadsherif).
|
69
|
+
|
70
|
+
## 2017-01-12 (2.0.3)
|
71
|
+
* Set `required_ruby_version` to 1.9
|
72
|
+
* Some small fixes
|
73
|
+
|
74
|
+
## 2016-07-26 (2.0.2)
|
75
|
+
* Specify `required_ruby_version` for json\_pure.
|
76
|
+
* Fix issue #295 failure when parsing frozen strings.
|
77
|
+
|
78
|
+
## 2016-07-01 (2.0.1)
|
79
|
+
* Fix problem when requiring json\_pure and Parser constant was defined top
|
80
|
+
level.
|
81
|
+
* Add `RB_GC_GUARD` to avoid possible GC problem via Pete Johns.
|
82
|
+
* Store `current_nesting` on stack by Aaron Patterson.
|
83
|
+
|
84
|
+
## 2015-09-11 (2.0.0)
|
85
|
+
* Now complies to newest JSON RFC 7159.
|
86
|
+
* Implements compatibiliy to ruby 2.4 integer unification.
|
87
|
+
* Drops support for old rubies whose life has ended, that is rubies < 2.0.
|
88
|
+
Also see https://www.ruby-lang.org/en/news/2014/07/01/eol-for-1-8-7-and-1-9-2/
|
89
|
+
* There were still some mentions of dual GPL licensing in the source, but JSON
|
90
|
+
has just the Ruby license that itself includes an explicit dual-licensing
|
91
|
+
clause that allows covered software to be distributed under the terms of
|
92
|
+
the Simplified BSD License instead for all ruby versions >= 1.9.3. This is
|
93
|
+
however a GPL compatible license according to the Free Software Foundation.
|
94
|
+
I changed these mentions to be consistent with the Ruby license setting in
|
95
|
+
the gemspec files which were already correct now.
|
96
|
+
|
97
|
+
## 2015-06-01 (1.8.3)
|
2
98
|
* Fix potential memory leak, thx to nobu.
|
3
|
-
|
99
|
+
|
100
|
+
## 2015-01-08 (1.8.2)
|
4
101
|
* Some performance improvements by Vipul A M <vipulnsward@gmail.com>.
|
5
102
|
* Fix by Jason R. Clark <jclark@newrelic.com> to avoid mutation of
|
6
|
-
JSON.dump_default_options
|
103
|
+
`JSON.dump_default_options`.
|
7
104
|
* More tests by Michael Mac-Vicar <mmacvicar@gmail.com> and fixing
|
8
|
-
space_before accessor in generator.
|
9
|
-
* Performance on Jruby
|
105
|
+
`space_before` accessor in generator.
|
106
|
+
* Performance on Jruby improved by Ben Browning <bbrownin@redhat.com>.
|
10
107
|
* Some fixes to be compatible with the new Ruby 2.2 by Zachary Scott <e@zzak.io>
|
11
108
|
and SHIBATA Hiroshi <hsbt@ruby-lang.org>.
|
12
|
-
|
109
|
+
|
110
|
+
## 2013-05-13 (1.8.1)
|
13
111
|
* Remove Rubinius exception since transcoding should be working now.
|
14
|
-
|
112
|
+
|
113
|
+
## 2013-05-13 (1.8.0)
|
15
114
|
* Fix https://github.com/flori/json/issues/162 reported by Marc-Andre
|
16
115
|
Lafortune <github_rocks@marc-andre.ca>. Thanks!
|
17
116
|
* Applied patches by Yui NARUSE <naruse@airemix.jp> to suppress warning with
|
18
117
|
-Wchar-subscripts and better validate UTF-8 strings.
|
19
118
|
* Applied patch by ginriki@github to remove unnecessary if.
|
20
|
-
* Add load/dump interface to JSON::GenericObject to make
|
21
|
-
serialize :some_attribute, JSON::GenericObject
|
22
|
-
work in Rails active models for convenient SomeModel#some_attribute.foo.bar
|
119
|
+
* Add load/dump interface to `JSON::GenericObject` to make
|
120
|
+
serialize :some_attribute, `JSON::GenericObject`
|
121
|
+
work in Rails active models for convenient `SomeModel#some_attribute.foo.bar`
|
23
122
|
access to serialised JSON data.
|
24
|
-
|
123
|
+
|
124
|
+
## 2013-02-04 (1.7.7)
|
25
125
|
* Security fix for JSON create_additions default value and
|
26
|
-
JSON::GenericObject
|
126
|
+
`JSON::GenericObject`. It should not be possible to create additions unless
|
27
127
|
explicitely requested by setting the create_additions argument to true or
|
28
|
-
using the JSON.load/dump interface. If JSON::GenericObject is supposed to
|
128
|
+
using the JSON.load/dump interface. If `JSON::GenericObject` is supposed to
|
29
129
|
be automatically deserialised, this has to be explicitely enabled by
|
30
130
|
setting
|
31
|
-
|
131
|
+
JSON::GenericObject.json_creatable = true
|
32
132
|
as well.
|
33
133
|
* Remove useless assert in fbuffer implementation.
|
34
134
|
* Apply patch attached to https://github.com/flori/json/issues#issue/155
|
35
135
|
provided by John Shahid <jvshahid@gmail.com>, Thx!
|
36
136
|
* Add license information to rubygems spec data, reported by Jordi Massaguer Pla <jmassaguerpla@suse.de>.
|
37
137
|
* Improve documentation, thx to Zachary Scott <zachary@zacharyscott.net>.
|
38
|
-
|
39
|
-
|
138
|
+
|
139
|
+
## 2012-11-29 (1.7.6)
|
140
|
+
* Add `GeneratorState#merge` alias for JRuby, fix state accessor methods. Thx to
|
40
141
|
jvshahid@github.
|
41
142
|
* Increase hash likeness of state objects.
|
42
|
-
|
143
|
+
|
144
|
+
## 2012-08-17 (1.7.5)
|
43
145
|
* Fix compilation of extension on older rubies.
|
44
|
-
|
146
|
+
|
147
|
+
## 2012-07-26 (1.7.4)
|
45
148
|
* Fix compilation problem on AIX, see https://github.com/flori/json/issues/142
|
46
|
-
|
149
|
+
|
150
|
+
## 2012-05-12 (1.7.3)
|
47
151
|
* Work around Rubinius encoding issues using iconv for conversion instead.
|
48
|
-
|
152
|
+
|
153
|
+
## 2012-05-11 (1.7.2)
|
49
154
|
* Fix some encoding issues, that cause problems for the pure and the
|
50
155
|
extension variant in jruby 1.9 mode.
|
51
|
-
|
156
|
+
|
157
|
+
## 2012-04-28 (1.7.1)
|
52
158
|
* Some small fixes for building
|
53
|
-
|
54
|
-
|
55
|
-
|
159
|
+
|
160
|
+
## 2012-04-28 (1.7.0)
|
161
|
+
* Add `JSON::GenericObject` for method access to objects transmitted via JSON.
|
162
|
+
|
163
|
+
## 2012-04-27 (1.6.7)
|
56
164
|
* Fix possible crash when trying to parse nil value.
|
57
|
-
|
165
|
+
|
166
|
+
## 2012-02-11 (1.6.6)
|
58
167
|
* Propagate src encoding to values made from it (fixes 1.9 mode converting
|
59
168
|
everything to ascii-8bit; harmless for 1.8 mode too) (Thomas E. Enebo
|
60
169
|
<tom.enebo@gmail.com>), should fix
|
61
170
|
https://github.com/flori/json/issues#issue/119.
|
62
171
|
* Fix https://github.com/flori/json/issues#issue/124 Thx to Jason Hutchens.
|
63
172
|
* Fix https://github.com/flori/json/issues#issue/117
|
64
|
-
|
173
|
+
|
174
|
+
## 2012-01-15 (1.6.5)
|
65
175
|
* Vit Ondruch <v.ondruch@tiscali.cz> reported a bug that shows up when using
|
66
176
|
optimisation under GCC 4.7. Thx to him, Bohuslav Kabrda
|
67
177
|
<bkabrda@redhat.com> and Yui NARUSE <naruse@airemix.jp> for debugging and
|
68
178
|
developing a patch fix.
|
69
|
-
|
179
|
+
|
180
|
+
## 2011-12-24 (1.6.4)
|
70
181
|
* Patches that improve speed on JRuby contributed by Charles Oliver Nutter
|
71
182
|
<headius@headius.com>.
|
72
|
-
* Support object_class
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
183
|
+
* Support `object_class`/`array_class` with duck typed hash/array.
|
184
|
+
|
185
|
+
## 2011-12-01 (1.6.3)
|
186
|
+
* Let `JSON.load('')` return nil as well to make mysql text columns (default to
|
187
|
+
`''`) work better for serialization.
|
188
|
+
|
189
|
+
## 2011-11-21 (1.6.2)
|
77
190
|
* Add support for OpenStruct and BigDecimal.
|
78
|
-
* Fix bug when parsing nil in quirks_mode
|
191
|
+
* Fix bug when parsing nil in `quirks_mode`.
|
79
192
|
* Make JSON.dump and JSON.load methods better cooperate with Rails' serialize
|
80
|
-
method. Just use:
|
193
|
+
method. Just use:
|
194
|
+
serialize :value, JSON
|
81
195
|
* Fix bug with time serialization concerning nanoseconds. Thanks for the
|
82
196
|
patch go to Josh Partlow (jpartlow@github).
|
83
197
|
* Improve parsing speed for JSON numbers (integers and floats) in a similar way to
|
84
198
|
what Evan Phoenix <evan@phx.io> suggested in:
|
85
199
|
https://github.com/flori/json/pull/103
|
86
|
-
|
200
|
+
|
201
|
+
## 2011-09-18 (1.6.1)
|
87
202
|
* Using -target 1.5 to force Java bits to compile with 1.5.
|
88
|
-
|
203
|
+
|
204
|
+
## 2011-09-12 (1.6.0)
|
89
205
|
* Extract utilities (prettifier and GUI-editor) in its own gem json-utils.
|
90
206
|
* Split json/add/core into different files for classes to be serialised.
|
91
|
-
|
207
|
+
|
208
|
+
## 2011-08-31 (1.5.4)
|
92
209
|
* Fix memory leak when used from multiple JRuby. (Patch by
|
93
210
|
jfirebaugh@github).
|
94
211
|
* Apply patch by Eric Wong <nocode@yhbt.net> that fixes garbage collection problem
|
@@ -96,42 +213,50 @@
|
|
96
213
|
* Add :quirks_mode option to parser and generator.
|
97
214
|
* Add support for Rational and Complex number additions via json/add/complex
|
98
215
|
and json/add/rational requires.
|
99
|
-
|
216
|
+
|
217
|
+
## 2011-06-20 (1.5.3)
|
100
218
|
* Alias State#configure method as State#merge to increase duck type synonymy with Hash.
|
101
|
-
* Add as_json methods in json/add/core, so rails can create its json objects
|
219
|
+
* Add `as_json` methods in json/add/core, so rails can create its json objects
|
102
220
|
the new way.
|
103
|
-
|
221
|
+
|
222
|
+
## 2011-05-11 (1.5.2)
|
104
223
|
* Apply documentation patch by Cory Monty <cory.monty@gmail.com>.
|
105
|
-
* Add gemspecs for json and
|
224
|
+
* Add gemspecs for json and json\_pure.
|
106
225
|
* Fix bug in jruby pretty printing.
|
107
|
-
* Fix bug in object_class and array_class when inheriting from Hash or
|
108
|
-
|
226
|
+
* Fix bug in `object_class` and `array_class` when inheriting from Hash or
|
227
|
+
Array.
|
228
|
+
|
229
|
+
## 2011-01-24 (1.5.1)
|
109
230
|
* Made rake-compiler build a fat binary gem. This should fix issue
|
110
231
|
https://github.com/flori/json/issues#issue/54.
|
111
|
-
|
232
|
+
|
233
|
+
## 2011-01-22 (1.5.0)
|
112
234
|
* Included Java source codes for the Jruby extension made by Daniel Luz
|
113
235
|
<dev@mernen.com>.
|
114
|
-
* Output full exception message of deep_const_get to aid debugging.
|
115
|
-
* Fixed an issue with ruby 1.9 Module#const_defined
|
236
|
+
* Output full exception message of `deep_const_get` to aid debugging.
|
237
|
+
* Fixed an issue with ruby 1.9 `Module#const_defined?` method, that was
|
116
238
|
reported by Riley Goodside.
|
117
|
-
|
239
|
+
|
240
|
+
## 2010-08-09 (1.4.6)
|
118
241
|
* Fixed oversight reported in http://github.com/flori/json/issues/closed#issue/23,
|
119
242
|
always create a new object from the state prototype.
|
120
243
|
* Made pure and ext api more similar again.
|
121
|
-
|
244
|
+
|
245
|
+
## 2010-08-07 (1.4.5)
|
122
246
|
* Manage data structure nesting depth in state object during generation. This
|
123
|
-
should reduce problems with to_json method definіtions that only have one
|
247
|
+
should reduce problems with `to_json` method definіtions that only have one
|
124
248
|
argument.
|
125
249
|
* Some fixes in the state objects and additional tests.
|
126
|
-
2010-08-06 (1.4.4)
|
250
|
+
## 2010-08-06 (1.4.4)
|
127
251
|
* Fixes build problem for rubinius under OS X, http://github.com/flori/json/issues/closed#issue/25
|
128
252
|
* Fixes crashes described in http://github.com/flori/json/issues/closed#issue/21 and
|
129
253
|
http://github.com/flori/json/issues/closed#issue/23
|
130
|
-
2010-05-05 (1.4.3)
|
254
|
+
## 2010-05-05 (1.4.3)
|
131
255
|
* Fixed some test assertions, from Ruby r27587 and r27590, patch by nobu.
|
132
256
|
* Fixed issue http://github.com/flori/json/issues/#issue/20 reported by
|
133
257
|
electronicwhisper@github. Thx!
|
134
|
-
|
258
|
+
|
259
|
+
## 2010-04-26 (1.4.2)
|
135
260
|
* Applied patch from naruse Yui NARUSE <naruse@airemix.com> to make building with
|
136
261
|
Microsoft Visual C possible again.
|
137
262
|
* Applied patch from devrandom <c1.github@niftybox.net> in order to allow building of
|
@@ -139,34 +264,43 @@
|
|
139
264
|
* Thanks to Dustin Schneider <dustin@stocktwits.com>, who reported a memory
|
140
265
|
leak, which is fixed in this release.
|
141
266
|
* Applied 993f261ccb8f911d2ae57e9db48ec7acd0187283 patch from josh@github.
|
142
|
-
|
267
|
+
|
268
|
+
## 2010-04-25 (1.4.1)
|
143
269
|
* Fix for a bug reported by Dan DeLeo <dan@kallistec.com>, caused by T_FIXNUM
|
144
270
|
being different on 32bit/64bit architectures.
|
145
|
-
|
271
|
+
|
272
|
+
## 2010-04-23 (1.4.0)
|
146
273
|
* Major speed improvements and building with simplified
|
147
274
|
directory/file-structure.
|
148
275
|
* Extension should at least be comapatible with MRI, YARV and Rubinius.
|
149
|
-
|
276
|
+
|
277
|
+
## 2010-04-07 (1.2.4)
|
150
278
|
* Triger const_missing callback to make Rails' dynamic class loading work.
|
151
|
-
|
152
|
-
|
279
|
+
|
280
|
+
## 2010-03-11 (1.2.3)
|
281
|
+
* Added a `State#[]` method which returns an attribute's value in order to
|
153
282
|
increase duck type compatibility to Hash.
|
154
|
-
|
283
|
+
|
284
|
+
## 2010-02-27 (1.2.2)
|
155
285
|
* Made some changes to make the building of the parser/generator compatible
|
156
286
|
to Rubinius.
|
157
|
-
|
158
|
-
|
287
|
+
|
288
|
+
## 2009-11-25 (1.2.1)
|
289
|
+
* Added `:symbolize_names` option to Parser, which returns symbols instead of
|
159
290
|
strings in object names/keys.
|
160
|
-
|
161
|
-
|
291
|
+
|
292
|
+
## 2009-10-01 (1.2.0)
|
293
|
+
* `fast_generate` now raises an exeception for nan and infinite floats.
|
162
294
|
* On Ruby 1.8 json supports parsing of UTF-8, UTF-16BE, UTF-16LE, UTF-32BE,
|
163
295
|
and UTF-32LE JSON documents now. Under Ruby 1.9 the M17n conversion
|
164
296
|
functions are used to convert from all supported encodings. ASCII-8BIT
|
165
297
|
encoded strings are handled like all strings under Ruby 1.8 were.
|
166
298
|
* Better documentation
|
167
|
-
|
168
|
-
|
169
|
-
|
299
|
+
|
300
|
+
## 2009-08-23 (1.1.9)
|
301
|
+
* Added forgotten main doc file `extra_rdoc_files`.
|
302
|
+
|
303
|
+
## 2009-08-23 (1.1.8)
|
170
304
|
* Applied a patch by OZAWA Sakuro <sakuro@2238club.org> to make json/pure
|
171
305
|
work in environments that don't provide iconv.
|
172
306
|
* Applied patch by okkez_ in order to fix Ruby Bug #1768:
|
@@ -174,7 +308,8 @@
|
|
174
308
|
* Finally got around to avoid the rather paranoid escaping of ?/ characters
|
175
309
|
in the generator's output. The parsers aren't affected by this change.
|
176
310
|
Thanks to Rich Apodaca <rapodaca@metamolecular.com> for the suggestion.
|
177
|
-
|
311
|
+
|
312
|
+
## 2009-06-29 (1.1.7)
|
178
313
|
* Security Fix for JSON::Pure::Parser. A specially designed string could
|
179
314
|
cause catastrophic backtracking in one of the parser's regular expressions
|
180
315
|
in earlier 1.1.x versions. JSON::Ext::Parser isn't affected by this issue.
|
@@ -182,16 +317,19 @@
|
|
182
317
|
problem.
|
183
318
|
* This release also uses a less strict ruby version requirement for the
|
184
319
|
creation of the mswin32 native gem.
|
185
|
-
|
320
|
+
|
321
|
+
## 2009-05-10 (1.1.6)
|
186
322
|
* No changes. І tested native linux gems in the last release and they don't
|
187
323
|
play well with different ruby versions other than the one the gem was built
|
188
324
|
with. This release is just to bump the version number in order to skip the
|
189
325
|
native gem on rubyforge.
|
190
|
-
|
326
|
+
|
327
|
+
## 2009-05-10 (1.1.5)
|
191
328
|
* Started to build gems with rake-compiler gem.
|
192
329
|
* Applied patch object/array class patch from Brian Candler
|
193
330
|
<B.Candler@pobox.com> and fixes.
|
194
|
-
|
331
|
+
|
332
|
+
## 2009-04-01 (1.1.4)
|
195
333
|
* Fixed a bug in the creation of serialized generic rails objects reported by
|
196
334
|
Friedrich Graeter <graeter@hydrixos.org>.
|
197
335
|
* Deleted tests/runner.rb, we're using testrb instead.
|
@@ -200,7 +338,8 @@
|
|
200
338
|
1.9.
|
201
339
|
* Improved speed of the code path for the fast_generate method in the pure
|
202
340
|
variant.
|
203
|
-
|
341
|
+
|
342
|
+
## 2008-07-10 (1.1.3)
|
204
343
|
* Wesley Beary <monki@geemus.com> reported a bug in json/add/core's DateTime
|
205
344
|
handling: If the nominator and denominator of the offset were divisible by
|
206
345
|
each other Ruby's Rational#to_s returns them as an integer not a fraction
|
@@ -210,7 +349,8 @@
|
|
210
349
|
* Supports ragel >= 6.0 now.
|
211
350
|
* Corrected some tests.
|
212
351
|
* Some minor changes.
|
213
|
-
|
352
|
+
|
353
|
+
## 2007-11-27 (1.1.2)
|
214
354
|
* Remember default dir (last used directory) in editor.
|
215
355
|
* JSON::Editor.edit method added, the editor can now receive json texts from
|
216
356
|
the clipboard via C-v.
|
@@ -226,13 +366,14 @@
|
|
226
366
|
generator by returning something other than a String instance from a
|
227
367
|
to_json method. I now guard against this by doing a rather crude type
|
228
368
|
check, which raises an exception instead of crashing.
|
229
|
-
|
369
|
+
|
370
|
+
## 2007-07-06 (1.1.1)
|
230
371
|
* Yui NARUSE <naruse@airemix.com> sent some patches to fix tests for Ruby
|
231
372
|
1.9. I applied them and adapted some of them a bit to run both on 1.8 and
|
232
373
|
1.9.
|
233
|
-
* Introduced a JSON.parse
|
234
|
-
danger.
|
235
|
-
* Made generate and pretty_generate methods configurable by an options hash.
|
374
|
+
* Introduced a `JSON.parse!` method without depth checking for people who
|
375
|
+
like danger.
|
376
|
+
* Made generate and `pretty_generate` methods configurable by an options hash.
|
236
377
|
* Added :allow_nan option to parser and generator in order to handle NaN,
|
237
378
|
Infinity, and -Infinity correctly - if requested. Floats, which aren't numbers,
|
238
379
|
aren't valid JSON according to RFC4627, so by default an exception will be
|
@@ -241,55 +382,65 @@
|
|
241
382
|
* Fixed some more tests for Ruby 1.9.
|
242
383
|
* Implemented dump/load interface of Marshal as suggested in ruby-core:11405
|
243
384
|
by murphy <murphy@rubychan.de>.
|
244
|
-
* Implemented the max_nesting feature for generate methods, too.
|
385
|
+
* Implemented the `max_nesting` feature for generate methods, too.
|
245
386
|
* Added some implementations for ruby core's custom objects for
|
246
387
|
serialisation/deserialisation purposes.
|
247
|
-
|
388
|
+
|
389
|
+
## 2007-05-21 (1.1.0)
|
248
390
|
* Implemented max_nesting feature for parser to avoid stack overflows for
|
249
391
|
data from untrusted sources. If you trust the source, you can disable it
|
250
392
|
with the option max_nesting => false.
|
251
393
|
* Piers Cawley <pdcawley@bofh.org.uk> reported a bug, that not every
|
252
|
-
character can be escaped by
|
394
|
+
character can be escaped by `\` as required by RFC4627. There's a
|
253
395
|
contradiction between David Crockford's JSON checker test vectors (in
|
254
396
|
tests/fixtures) and RFC4627, though. I decided to stick to the RFC, because
|
255
397
|
the JSON checker seems to be a bit older than the RFC.
|
256
398
|
* Extended license to Ruby License, which includes the GPL.
|
257
399
|
* Added keyboard shortcuts, and 'Open location' menu item to edit_json.rb.
|
258
|
-
|
400
|
+
|
401
|
+
## 2007-05-09 (1.0.4)
|
259
402
|
* Applied a patch from Yui NARUSE <naruse@airemix.com> to make JSON compile
|
260
403
|
under Ruby 1.9. Thank you very much for mailing it to me!
|
261
404
|
* Made binary variants of JSON fail early, instead of falling back to the
|
262
405
|
pure version. This should avoid overshadowing of eventual problems while
|
263
406
|
loading of the binary.
|
264
|
-
|
407
|
+
|
408
|
+
## 2007-03-24 (1.0.3)
|
265
409
|
* Improved performance of pure variant a bit.
|
266
410
|
* The ext variant of this release supports the mswin32 platform. Ugh!
|
267
|
-
|
411
|
+
|
412
|
+
## 2007-03-24 (1.0.2)
|
268
413
|
* Ext Parser didn't parse 0e0 correctly into 0.0: Fixed!
|
269
|
-
|
414
|
+
|
415
|
+
## 2007-03-24 (1.0.1)
|
270
416
|
* Forgot some object files in the build dir. I really like that - not!
|
271
|
-
|
417
|
+
|
418
|
+
## 2007-03-24 (1.0.0)
|
272
419
|
* Added C implementations for the JSON generator and a ragel based JSON
|
273
420
|
parser in C.
|
274
421
|
* Much more tests, especially fixtures from json.org.
|
275
422
|
* Further improved conformance to RFC4627.
|
276
|
-
|
423
|
+
|
424
|
+
## 2007-02-09 (0.4.3)
|
277
425
|
* Conform more to RFC4627 for JSON: This means JSON strings
|
278
|
-
now always must contain exactly one object "{ ... }" or array "[ ... ]" in
|
426
|
+
now always must contain exactly one object `"{ ... }"` or array `"[ ... ]"` in
|
279
427
|
order to be parsed without raising an exception. The definition of what
|
280
428
|
constitutes a whitespace is narrower in JSON than in Ruby ([ \t\r\n]), and
|
281
429
|
there are differences in floats and integers (no octals or hexadecimals) as
|
282
430
|
well.
|
283
|
-
* Added aliases generate and pretty_generate of unparse and pretty_unparse
|
431
|
+
* Added aliases generate and `pretty_generate` of unparse and `pretty_unparse`.
|
284
432
|
* Fixed a test case.
|
285
|
-
* Catch an Iconv::InvalidEncoding exception, that seems to occur on some Sun
|
433
|
+
* Catch an `Iconv::InvalidEncoding` exception, that seems to occur on some Sun
|
286
434
|
boxes with SunOS 5.8, if iconv doesn't support utf16 conversions. This was
|
287
435
|
reported by Andrew R Jackson <andrewj@bcm.tmc.edu>, thanks a bunch!
|
288
|
-
|
436
|
+
|
437
|
+
## 2006-08-25 (0.4.2)
|
289
438
|
* Fixed a bug in handling solidi (/-characters), that was reported by
|
290
439
|
Kevin Gilpin <kevin.gilpin@alum.mit.edu>.
|
291
|
-
|
440
|
+
|
441
|
+
## 2006-02-06 (0.4.1)
|
292
442
|
* Fixed a bug related to escaping with backslashes. Thanks for the report go
|
293
443
|
to Florian Munz <surf@theflow.de>.
|
294
|
-
|
444
|
+
|
445
|
+
## 2005-09-23 (0.4.0)
|
295
446
|
* Initial Rubyforge Version
|