json 1.8.0 → 2.6.0
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 +5 -5
- data/{CHANGES → CHANGES.md} +251 -87
- data/{COPYING-json-jruby → LICENSE} +5 -6
- data/README.md +425 -0
- data/VERSION +1 -1
- data/ext/json/ext/fbuffer/fbuffer.h +10 -4
- data/ext/json/ext/generator/extconf.rb +0 -10
- data/ext/json/ext/generator/generator.c +308 -135
- data/ext/json/ext/generator/generator.h +35 -9
- data/ext/json/ext/parser/extconf.rb +25 -6
- data/ext/json/ext/parser/parser.c +3035 -1901
- data/ext/json/ext/parser/parser.h +29 -10
- data/ext/json/ext/parser/parser.rl +261 -211
- data/ext/json/extconf.rb +3 -0
- data/json.gemspec +57 -27
- data/lib/json/add/bigdecimal.rb +3 -2
- data/lib/json/add/complex.rb +9 -3
- 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 +8 -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 +2 -2
- data/lib/json/common.rb +383 -167
- data/lib/json/ext.rb +0 -6
- data/lib/json/generic_object.rb +5 -4
- data/lib/json/pure/generator.rb +83 -126
- data/lib/json/pure/parser.rb +63 -85
- data/lib/json/pure.rb +2 -8
- data/lib/json/version.rb +2 -1
- data/lib/json.rb +550 -29
- metadata +29 -136
- data/.gitignore +0 -12
- data/.travis.yml +0 -20
- data/COPYING +0 -58
- data/GPL +0 -340
- data/Gemfile +0 -11
- data/README-json-jruby.markdown +0 -33
- data/README.rdoc +0 -358
- 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 -2644
- data/java/src/json/ext/Parser.rl +0 -968
- 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 -39
- data/lib/json/ext/.keep +0 -0
- data/tests/fixtures/fail1.json +0 -1
- data/tests/fixtures/fail10.json +0 -1
- data/tests/fixtures/fail11.json +0 -1
- data/tests/fixtures/fail12.json +0 -1
- data/tests/fixtures/fail13.json +0 -1
- data/tests/fixtures/fail14.json +0 -1
- data/tests/fixtures/fail18.json +0 -1
- data/tests/fixtures/fail19.json +0 -1
- data/tests/fixtures/fail2.json +0 -1
- data/tests/fixtures/fail20.json +0 -1
- data/tests/fixtures/fail21.json +0 -1
- data/tests/fixtures/fail22.json +0 -1
- data/tests/fixtures/fail23.json +0 -1
- data/tests/fixtures/fail24.json +0 -1
- data/tests/fixtures/fail25.json +0 -1
- data/tests/fixtures/fail27.json +0 -2
- data/tests/fixtures/fail28.json +0 -2
- data/tests/fixtures/fail3.json +0 -1
- data/tests/fixtures/fail4.json +0 -1
- data/tests/fixtures/fail5.json +0 -1
- data/tests/fixtures/fail6.json +0 -1
- data/tests/fixtures/fail7.json +0 -1
- data/tests/fixtures/fail8.json +0 -1
- data/tests/fixtures/fail9.json +0 -1
- data/tests/fixtures/pass1.json +0 -56
- data/tests/fixtures/pass15.json +0 -1
- data/tests/fixtures/pass16.json +0 -1
- data/tests/fixtures/pass17.json +0 -1
- data/tests/fixtures/pass2.json +0 -1
- data/tests/fixtures/pass26.json +0 -1
- data/tests/fixtures/pass3.json +0 -6
- data/tests/setup_variant.rb +0 -11
- data/tests/test_json.rb +0 -545
- data/tests/test_json_addition.rb +0 -196
- data/tests/test_json_encoding.rb +0 -65
- data/tests/test_json_fixtures.rb +0 -35
- data/tests/test_json_generate.rb +0 -322
- data/tests/test_json_generic_object.rb +0 -75
- 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: dcc1346522e82980a0a5891f93738a33d0d367b0013e22440a85282b6d56721e
|
|
4
|
+
data.tar.gz: a7d4a06c398e9a550664e29096f85eaab0f7007bac945e69d3b869b24df2017b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 91235d83102ee7de2a1263a6b4d351fa61a3fa9440a31dc00cd391995721e333e609ab569f93ec9b2ad9e6b68a721d96a18af8e515d77d11c81d7626b82ab0f3
|
|
7
|
+
data.tar.gz: f2dcfe70be72b2df3567ee35bc3f4ecbf170ed6022362bc31cab151609ec3e3a0ef7aa339e81c0816987b25c7132fa222e1a51bc19af8cf4bf8143d66d5ed157
|
data/{CHANGES → CHANGES.md}
RENAMED
|
@@ -1,81 +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 compatibility 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)
|
|
98
|
+
* Fix potential memory leak, thx to nobu.
|
|
99
|
+
|
|
100
|
+
## 2015-01-08 (1.8.2)
|
|
101
|
+
* Some performance improvements by Vipul A M <vipulnsward@gmail.com>.
|
|
102
|
+
* Fix by Jason R. Clark <jclark@newrelic.com> to avoid mutation of
|
|
103
|
+
`JSON.dump_default_options`.
|
|
104
|
+
* More tests by Michael Mac-Vicar <mmacvicar@gmail.com> and fixing
|
|
105
|
+
`space_before` accessor in generator.
|
|
106
|
+
* Performance on Jruby improved by Ben Browning <bbrownin@redhat.com>.
|
|
107
|
+
* Some fixes to be compatible with the new Ruby 2.2 by Zachary Scott <e@zzak.io>
|
|
108
|
+
and SHIBATA Hiroshi <hsbt@ruby-lang.org>.
|
|
109
|
+
|
|
110
|
+
## 2013-05-13 (1.8.1)
|
|
111
|
+
* Remove Rubinius exception since transcoding should be working now.
|
|
112
|
+
|
|
113
|
+
## 2013-05-13 (1.8.0)
|
|
2
114
|
* Fix https://github.com/flori/json/issues/162 reported by Marc-Andre
|
|
3
115
|
Lafortune <github_rocks@marc-andre.ca>. Thanks!
|
|
4
116
|
* Applied patches by Yui NARUSE <naruse@airemix.jp> to suppress warning with
|
|
5
117
|
-Wchar-subscripts and better validate UTF-8 strings.
|
|
6
118
|
* Applied patch by ginriki@github to remove unnecessary if.
|
|
7
|
-
* Add load/dump interface to JSON::GenericObject to make
|
|
8
|
-
serialize :some_attribute, JSON::GenericObject
|
|
9
|
-
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`
|
|
10
122
|
access to serialised JSON data.
|
|
11
|
-
|
|
123
|
+
|
|
124
|
+
## 2013-02-04 (1.7.7)
|
|
12
125
|
* Security fix for JSON create_additions default value and
|
|
13
|
-
JSON::GenericObject
|
|
14
|
-
|
|
15
|
-
using the JSON.load/dump interface. If JSON::GenericObject is supposed to
|
|
16
|
-
be automatically deserialised, this has to be
|
|
126
|
+
`JSON::GenericObject`. It should not be possible to create additions unless
|
|
127
|
+
explicitly requested by setting the create_additions argument to true or
|
|
128
|
+
using the JSON.load/dump interface. If `JSON::GenericObject` is supposed to
|
|
129
|
+
be automatically deserialised, this has to be explicitly enabled by
|
|
17
130
|
setting
|
|
18
|
-
|
|
131
|
+
JSON::GenericObject.json_creatable = true
|
|
19
132
|
as well.
|
|
20
133
|
* Remove useless assert in fbuffer implementation.
|
|
21
134
|
* Apply patch attached to https://github.com/flori/json/issues#issue/155
|
|
22
135
|
provided by John Shahid <jvshahid@gmail.com>, Thx!
|
|
23
136
|
* Add license information to rubygems spec data, reported by Jordi Massaguer Pla <jmassaguerpla@suse.de>.
|
|
24
137
|
* Improve documentation, thx to Zachary Scott <zachary@zacharyscott.net>.
|
|
25
|
-
|
|
26
|
-
|
|
138
|
+
|
|
139
|
+
## 2012-11-29 (1.7.6)
|
|
140
|
+
* Add `GeneratorState#merge` alias for JRuby, fix state accessor methods. Thx to
|
|
27
141
|
jvshahid@github.
|
|
28
142
|
* Increase hash likeness of state objects.
|
|
29
|
-
|
|
143
|
+
|
|
144
|
+
## 2012-08-17 (1.7.5)
|
|
30
145
|
* Fix compilation of extension on older rubies.
|
|
31
|
-
|
|
146
|
+
|
|
147
|
+
## 2012-07-26 (1.7.4)
|
|
32
148
|
* Fix compilation problem on AIX, see https://github.com/flori/json/issues/142
|
|
33
|
-
|
|
149
|
+
|
|
150
|
+
## 2012-05-12 (1.7.3)
|
|
34
151
|
* Work around Rubinius encoding issues using iconv for conversion instead.
|
|
35
|
-
|
|
152
|
+
|
|
153
|
+
## 2012-05-11 (1.7.2)
|
|
36
154
|
* Fix some encoding issues, that cause problems for the pure and the
|
|
37
155
|
extension variant in jruby 1.9 mode.
|
|
38
|
-
|
|
156
|
+
|
|
157
|
+
## 2012-04-28 (1.7.1)
|
|
39
158
|
* Some small fixes for building
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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)
|
|
43
164
|
* Fix possible crash when trying to parse nil value.
|
|
44
|
-
|
|
165
|
+
|
|
166
|
+
## 2012-02-11 (1.6.6)
|
|
45
167
|
* Propagate src encoding to values made from it (fixes 1.9 mode converting
|
|
46
168
|
everything to ascii-8bit; harmless for 1.8 mode too) (Thomas E. Enebo
|
|
47
169
|
<tom.enebo@gmail.com>), should fix
|
|
48
170
|
https://github.com/flori/json/issues#issue/119.
|
|
49
171
|
* Fix https://github.com/flori/json/issues#issue/124 Thx to Jason Hutchens.
|
|
50
172
|
* Fix https://github.com/flori/json/issues#issue/117
|
|
51
|
-
|
|
173
|
+
|
|
174
|
+
## 2012-01-15 (1.6.5)
|
|
52
175
|
* Vit Ondruch <v.ondruch@tiscali.cz> reported a bug that shows up when using
|
|
53
176
|
optimisation under GCC 4.7. Thx to him, Bohuslav Kabrda
|
|
54
177
|
<bkabrda@redhat.com> and Yui NARUSE <naruse@airemix.jp> for debugging and
|
|
55
178
|
developing a patch fix.
|
|
56
|
-
|
|
179
|
+
|
|
180
|
+
## 2011-12-24 (1.6.4)
|
|
57
181
|
* Patches that improve speed on JRuby contributed by Charles Oliver Nutter
|
|
58
182
|
<headius@headius.com>.
|
|
59
|
-
* Support object_class
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
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)
|
|
64
190
|
* Add support for OpenStruct and BigDecimal.
|
|
65
|
-
* Fix bug when parsing nil in quirks_mode
|
|
191
|
+
* Fix bug when parsing nil in `quirks_mode`.
|
|
66
192
|
* Make JSON.dump and JSON.load methods better cooperate with Rails' serialize
|
|
67
|
-
method. Just use:
|
|
193
|
+
method. Just use:
|
|
194
|
+
serialize :value, JSON
|
|
68
195
|
* Fix bug with time serialization concerning nanoseconds. Thanks for the
|
|
69
196
|
patch go to Josh Partlow (jpartlow@github).
|
|
70
197
|
* Improve parsing speed for JSON numbers (integers and floats) in a similar way to
|
|
71
198
|
what Evan Phoenix <evan@phx.io> suggested in:
|
|
72
199
|
https://github.com/flori/json/pull/103
|
|
73
|
-
|
|
200
|
+
|
|
201
|
+
## 2011-09-18 (1.6.1)
|
|
74
202
|
* Using -target 1.5 to force Java bits to compile with 1.5.
|
|
75
|
-
|
|
203
|
+
|
|
204
|
+
## 2011-09-12 (1.6.0)
|
|
76
205
|
* Extract utilities (prettifier and GUI-editor) in its own gem json-utils.
|
|
77
206
|
* Split json/add/core into different files for classes to be serialised.
|
|
78
|
-
|
|
207
|
+
|
|
208
|
+
## 2011-08-31 (1.5.4)
|
|
79
209
|
* Fix memory leak when used from multiple JRuby. (Patch by
|
|
80
210
|
jfirebaugh@github).
|
|
81
211
|
* Apply patch by Eric Wong <nocode@yhbt.net> that fixes garbage collection problem
|
|
@@ -83,42 +213,50 @@
|
|
|
83
213
|
* Add :quirks_mode option to parser and generator.
|
|
84
214
|
* Add support for Rational and Complex number additions via json/add/complex
|
|
85
215
|
and json/add/rational requires.
|
|
86
|
-
|
|
216
|
+
|
|
217
|
+
## 2011-06-20 (1.5.3)
|
|
87
218
|
* Alias State#configure method as State#merge to increase duck type synonymy with Hash.
|
|
88
|
-
* 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
|
|
89
220
|
the new way.
|
|
90
|
-
|
|
221
|
+
|
|
222
|
+
## 2011-05-11 (1.5.2)
|
|
91
223
|
* Apply documentation patch by Cory Monty <cory.monty@gmail.com>.
|
|
92
|
-
* Add gemspecs for json and
|
|
224
|
+
* Add gemspecs for json and json\_pure.
|
|
93
225
|
* Fix bug in jruby pretty printing.
|
|
94
|
-
* Fix bug in object_class and array_class when inheriting from Hash or
|
|
95
|
-
|
|
226
|
+
* Fix bug in `object_class` and `array_class` when inheriting from Hash or
|
|
227
|
+
Array.
|
|
228
|
+
|
|
229
|
+
## 2011-01-24 (1.5.1)
|
|
96
230
|
* Made rake-compiler build a fat binary gem. This should fix issue
|
|
97
231
|
https://github.com/flori/json/issues#issue/54.
|
|
98
|
-
|
|
232
|
+
|
|
233
|
+
## 2011-01-22 (1.5.0)
|
|
99
234
|
* Included Java source codes for the Jruby extension made by Daniel Luz
|
|
100
235
|
<dev@mernen.com>.
|
|
101
|
-
* Output full exception message of deep_const_get to aid debugging.
|
|
102
|
-
* 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
|
|
103
238
|
reported by Riley Goodside.
|
|
104
|
-
|
|
239
|
+
|
|
240
|
+
## 2010-08-09 (1.4.6)
|
|
105
241
|
* Fixed oversight reported in http://github.com/flori/json/issues/closed#issue/23,
|
|
106
242
|
always create a new object from the state prototype.
|
|
107
243
|
* Made pure and ext api more similar again.
|
|
108
|
-
|
|
244
|
+
|
|
245
|
+
## 2010-08-07 (1.4.5)
|
|
109
246
|
* Manage data structure nesting depth in state object during generation. This
|
|
110
|
-
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
|
|
111
248
|
argument.
|
|
112
249
|
* Some fixes in the state objects and additional tests.
|
|
113
|
-
2010-08-06 (1.4.4)
|
|
250
|
+
## 2010-08-06 (1.4.4)
|
|
114
251
|
* Fixes build problem for rubinius under OS X, http://github.com/flori/json/issues/closed#issue/25
|
|
115
252
|
* Fixes crashes described in http://github.com/flori/json/issues/closed#issue/21 and
|
|
116
253
|
http://github.com/flori/json/issues/closed#issue/23
|
|
117
|
-
2010-05-05 (1.4.3)
|
|
254
|
+
## 2010-05-05 (1.4.3)
|
|
118
255
|
* Fixed some test assertions, from Ruby r27587 and r27590, patch by nobu.
|
|
119
256
|
* Fixed issue http://github.com/flori/json/issues/#issue/20 reported by
|
|
120
257
|
electronicwhisper@github. Thx!
|
|
121
|
-
|
|
258
|
+
|
|
259
|
+
## 2010-04-26 (1.4.2)
|
|
122
260
|
* Applied patch from naruse Yui NARUSE <naruse@airemix.com> to make building with
|
|
123
261
|
Microsoft Visual C possible again.
|
|
124
262
|
* Applied patch from devrandom <c1.github@niftybox.net> in order to allow building of
|
|
@@ -126,34 +264,43 @@
|
|
|
126
264
|
* Thanks to Dustin Schneider <dustin@stocktwits.com>, who reported a memory
|
|
127
265
|
leak, which is fixed in this release.
|
|
128
266
|
* Applied 993f261ccb8f911d2ae57e9db48ec7acd0187283 patch from josh@github.
|
|
129
|
-
|
|
267
|
+
|
|
268
|
+
## 2010-04-25 (1.4.1)
|
|
130
269
|
* Fix for a bug reported by Dan DeLeo <dan@kallistec.com>, caused by T_FIXNUM
|
|
131
270
|
being different on 32bit/64bit architectures.
|
|
132
|
-
|
|
271
|
+
|
|
272
|
+
## 2010-04-23 (1.4.0)
|
|
133
273
|
* Major speed improvements and building with simplified
|
|
134
274
|
directory/file-structure.
|
|
135
|
-
* Extension should at least be
|
|
136
|
-
|
|
275
|
+
* Extension should at least be compatible with MRI, YARV and Rubinius.
|
|
276
|
+
|
|
277
|
+
## 2010-04-07 (1.2.4)
|
|
137
278
|
* Triger const_missing callback to make Rails' dynamic class loading work.
|
|
138
|
-
|
|
139
|
-
|
|
279
|
+
|
|
280
|
+
## 2010-03-11 (1.2.3)
|
|
281
|
+
* Added a `State#[]` method which returns an attribute's value in order to
|
|
140
282
|
increase duck type compatibility to Hash.
|
|
141
|
-
|
|
283
|
+
|
|
284
|
+
## 2010-02-27 (1.2.2)
|
|
142
285
|
* Made some changes to make the building of the parser/generator compatible
|
|
143
286
|
to Rubinius.
|
|
144
|
-
|
|
145
|
-
|
|
287
|
+
|
|
288
|
+
## 2009-11-25 (1.2.1)
|
|
289
|
+
* Added `:symbolize_names` option to Parser, which returns symbols instead of
|
|
146
290
|
strings in object names/keys.
|
|
147
|
-
|
|
148
|
-
|
|
291
|
+
|
|
292
|
+
## 2009-10-01 (1.2.0)
|
|
293
|
+
* `fast_generate` now raises an exception for nan and infinite floats.
|
|
149
294
|
* On Ruby 1.8 json supports parsing of UTF-8, UTF-16BE, UTF-16LE, UTF-32BE,
|
|
150
295
|
and UTF-32LE JSON documents now. Under Ruby 1.9 the M17n conversion
|
|
151
296
|
functions are used to convert from all supported encodings. ASCII-8BIT
|
|
152
297
|
encoded strings are handled like all strings under Ruby 1.8 were.
|
|
153
298
|
* Better documentation
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
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)
|
|
157
304
|
* Applied a patch by OZAWA Sakuro <sakuro@2238club.org> to make json/pure
|
|
158
305
|
work in environments that don't provide iconv.
|
|
159
306
|
* Applied patch by okkez_ in order to fix Ruby Bug #1768:
|
|
@@ -161,7 +308,8 @@
|
|
|
161
308
|
* Finally got around to avoid the rather paranoid escaping of ?/ characters
|
|
162
309
|
in the generator's output. The parsers aren't affected by this change.
|
|
163
310
|
Thanks to Rich Apodaca <rapodaca@metamolecular.com> for the suggestion.
|
|
164
|
-
|
|
311
|
+
|
|
312
|
+
## 2009-06-29 (1.1.7)
|
|
165
313
|
* Security Fix for JSON::Pure::Parser. A specially designed string could
|
|
166
314
|
cause catastrophic backtracking in one of the parser's regular expressions
|
|
167
315
|
in earlier 1.1.x versions. JSON::Ext::Parser isn't affected by this issue.
|
|
@@ -169,16 +317,19 @@
|
|
|
169
317
|
problem.
|
|
170
318
|
* This release also uses a less strict ruby version requirement for the
|
|
171
319
|
creation of the mswin32 native gem.
|
|
172
|
-
|
|
320
|
+
|
|
321
|
+
## 2009-05-10 (1.1.6)
|
|
173
322
|
* No changes. І tested native linux gems in the last release and they don't
|
|
174
323
|
play well with different ruby versions other than the one the gem was built
|
|
175
324
|
with. This release is just to bump the version number in order to skip the
|
|
176
325
|
native gem on rubyforge.
|
|
177
|
-
|
|
326
|
+
|
|
327
|
+
## 2009-05-10 (1.1.5)
|
|
178
328
|
* Started to build gems with rake-compiler gem.
|
|
179
329
|
* Applied patch object/array class patch from Brian Candler
|
|
180
330
|
<B.Candler@pobox.com> and fixes.
|
|
181
|
-
|
|
331
|
+
|
|
332
|
+
## 2009-04-01 (1.1.4)
|
|
182
333
|
* Fixed a bug in the creation of serialized generic rails objects reported by
|
|
183
334
|
Friedrich Graeter <graeter@hydrixos.org>.
|
|
184
335
|
* Deleted tests/runner.rb, we're using testrb instead.
|
|
@@ -187,7 +338,8 @@
|
|
|
187
338
|
1.9.
|
|
188
339
|
* Improved speed of the code path for the fast_generate method in the pure
|
|
189
340
|
variant.
|
|
190
|
-
|
|
341
|
+
|
|
342
|
+
## 2008-07-10 (1.1.3)
|
|
191
343
|
* Wesley Beary <monki@geemus.com> reported a bug in json/add/core's DateTime
|
|
192
344
|
handling: If the nominator and denominator of the offset were divisible by
|
|
193
345
|
each other Ruby's Rational#to_s returns them as an integer not a fraction
|
|
@@ -197,7 +349,8 @@
|
|
|
197
349
|
* Supports ragel >= 6.0 now.
|
|
198
350
|
* Corrected some tests.
|
|
199
351
|
* Some minor changes.
|
|
200
|
-
|
|
352
|
+
|
|
353
|
+
## 2007-11-27 (1.1.2)
|
|
201
354
|
* Remember default dir (last used directory) in editor.
|
|
202
355
|
* JSON::Editor.edit method added, the editor can now receive json texts from
|
|
203
356
|
the clipboard via C-v.
|
|
@@ -213,13 +366,14 @@
|
|
|
213
366
|
generator by returning something other than a String instance from a
|
|
214
367
|
to_json method. I now guard against this by doing a rather crude type
|
|
215
368
|
check, which raises an exception instead of crashing.
|
|
216
|
-
|
|
369
|
+
|
|
370
|
+
## 2007-07-06 (1.1.1)
|
|
217
371
|
* Yui NARUSE <naruse@airemix.com> sent some patches to fix tests for Ruby
|
|
218
372
|
1.9. I applied them and adapted some of them a bit to run both on 1.8 and
|
|
219
373
|
1.9.
|
|
220
|
-
* Introduced a JSON.parse
|
|
221
|
-
danger.
|
|
222
|
-
* 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.
|
|
223
377
|
* Added :allow_nan option to parser and generator in order to handle NaN,
|
|
224
378
|
Infinity, and -Infinity correctly - if requested. Floats, which aren't numbers,
|
|
225
379
|
aren't valid JSON according to RFC4627, so by default an exception will be
|
|
@@ -228,55 +382,65 @@
|
|
|
228
382
|
* Fixed some more tests for Ruby 1.9.
|
|
229
383
|
* Implemented dump/load interface of Marshal as suggested in ruby-core:11405
|
|
230
384
|
by murphy <murphy@rubychan.de>.
|
|
231
|
-
* Implemented the max_nesting feature for generate methods, too.
|
|
385
|
+
* Implemented the `max_nesting` feature for generate methods, too.
|
|
232
386
|
* Added some implementations for ruby core's custom objects for
|
|
233
387
|
serialisation/deserialisation purposes.
|
|
234
|
-
|
|
388
|
+
|
|
389
|
+
## 2007-05-21 (1.1.0)
|
|
235
390
|
* Implemented max_nesting feature for parser to avoid stack overflows for
|
|
236
391
|
data from untrusted sources. If you trust the source, you can disable it
|
|
237
392
|
with the option max_nesting => false.
|
|
238
393
|
* Piers Cawley <pdcawley@bofh.org.uk> reported a bug, that not every
|
|
239
|
-
character can be escaped by
|
|
394
|
+
character can be escaped by `\` as required by RFC4627. There's a
|
|
240
395
|
contradiction between David Crockford's JSON checker test vectors (in
|
|
241
396
|
tests/fixtures) and RFC4627, though. I decided to stick to the RFC, because
|
|
242
397
|
the JSON checker seems to be a bit older than the RFC.
|
|
243
398
|
* Extended license to Ruby License, which includes the GPL.
|
|
244
399
|
* Added keyboard shortcuts, and 'Open location' menu item to edit_json.rb.
|
|
245
|
-
|
|
400
|
+
|
|
401
|
+
## 2007-05-09 (1.0.4)
|
|
246
402
|
* Applied a patch from Yui NARUSE <naruse@airemix.com> to make JSON compile
|
|
247
403
|
under Ruby 1.9. Thank you very much for mailing it to me!
|
|
248
404
|
* Made binary variants of JSON fail early, instead of falling back to the
|
|
249
405
|
pure version. This should avoid overshadowing of eventual problems while
|
|
250
406
|
loading of the binary.
|
|
251
|
-
|
|
407
|
+
|
|
408
|
+
## 2007-03-24 (1.0.3)
|
|
252
409
|
* Improved performance of pure variant a bit.
|
|
253
410
|
* The ext variant of this release supports the mswin32 platform. Ugh!
|
|
254
|
-
|
|
411
|
+
|
|
412
|
+
## 2007-03-24 (1.0.2)
|
|
255
413
|
* Ext Parser didn't parse 0e0 correctly into 0.0: Fixed!
|
|
256
|
-
|
|
414
|
+
|
|
415
|
+
## 2007-03-24 (1.0.1)
|
|
257
416
|
* Forgot some object files in the build dir. I really like that - not!
|
|
258
|
-
|
|
417
|
+
|
|
418
|
+
## 2007-03-24 (1.0.0)
|
|
259
419
|
* Added C implementations for the JSON generator and a ragel based JSON
|
|
260
420
|
parser in C.
|
|
261
421
|
* Much more tests, especially fixtures from json.org.
|
|
262
422
|
* Further improved conformance to RFC4627.
|
|
263
|
-
|
|
423
|
+
|
|
424
|
+
## 2007-02-09 (0.4.3)
|
|
264
425
|
* Conform more to RFC4627 for JSON: This means JSON strings
|
|
265
|
-
now always must contain exactly one object "{ ... }" or array "[ ... ]" in
|
|
426
|
+
now always must contain exactly one object `"{ ... }"` or array `"[ ... ]"` in
|
|
266
427
|
order to be parsed without raising an exception. The definition of what
|
|
267
428
|
constitutes a whitespace is narrower in JSON than in Ruby ([ \t\r\n]), and
|
|
268
429
|
there are differences in floats and integers (no octals or hexadecimals) as
|
|
269
430
|
well.
|
|
270
|
-
* Added aliases generate and pretty_generate of unparse and pretty_unparse
|
|
431
|
+
* Added aliases generate and `pretty_generate` of unparse and `pretty_unparse`.
|
|
271
432
|
* Fixed a test case.
|
|
272
|
-
* 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
|
|
273
434
|
boxes with SunOS 5.8, if iconv doesn't support utf16 conversions. This was
|
|
274
435
|
reported by Andrew R Jackson <andrewj@bcm.tmc.edu>, thanks a bunch!
|
|
275
|
-
|
|
436
|
+
|
|
437
|
+
## 2006-08-25 (0.4.2)
|
|
276
438
|
* Fixed a bug in handling solidi (/-characters), that was reported by
|
|
277
439
|
Kevin Gilpin <kevin.gilpin@alum.mit.edu>.
|
|
278
|
-
|
|
440
|
+
|
|
441
|
+
## 2006-02-06 (0.4.1)
|
|
279
442
|
* Fixed a bug related to escaping with backslashes. Thanks for the report go
|
|
280
443
|
to Florian Munz <surf@theflow.de>.
|
|
281
|
-
|
|
444
|
+
|
|
445
|
+
## 2005-09-23 (0.4.0)
|
|
282
446
|
* Initial Rubyforge Version
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
version 2 (see the file GPL), or the conditions below:
|
|
1
|
+
Ruby is copyrighted free software by Yukihiro Matsumoto <matz@netlab.jp>.
|
|
2
|
+
You can redistribute it and/or modify it under either the terms of the
|
|
3
|
+
2-clause BSDL (see the file BSDL), or the conditions below:
|
|
5
4
|
|
|
6
5
|
1. You may make and give away verbatim copies of the source form of the
|
|
7
6
|
software without restriction, provided that you duplicate all of the
|
|
@@ -45,9 +44,9 @@ version 2 (see the file GPL), or the conditions below:
|
|
|
45
44
|
For the list of those files and their copying conditions, see the
|
|
46
45
|
file LEGAL.
|
|
47
46
|
|
|
48
|
-
5. The scripts and library files supplied as input to or produced as
|
|
47
|
+
5. The scripts and library files supplied as input to or produced as
|
|
49
48
|
output from the software do not automatically fall under the
|
|
50
|
-
copyright of the software, but belong to whomever generated them,
|
|
49
|
+
copyright of the software, but belong to whomever generated them,
|
|
51
50
|
and may be sold commercially, and may be aggregated with this
|
|
52
51
|
software.
|
|
53
52
|
|