json 2.7.1-java → 2.7.3-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/BSDL +22 -0
- data/CHANGES.md +523 -0
- data/LEGAL +60 -0
- data/README.md +264 -0
- data/json.gemspec +61 -0
- data/lib/json/add/bigdecimal.rb +1 -1
- data/lib/json/add/complex.rb +1 -1
- data/lib/json/add/core.rb +1 -1
- 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 +6 -3
- data/lib/json/add/range.rb +1 -1
- data/lib/json/add/rational.rb +1 -1
- data/lib/json/add/regexp.rb +1 -1
- data/lib/json/add/struct.rb +1 -1
- data/lib/json/add/symbol.rb +1 -2
- data/lib/json/add/time.rb +3 -10
- data/lib/json/common.rb +76 -44
- data/lib/json/ext/generator/state.rb +135 -0
- data/lib/json/ext.rb +18 -5
- data/lib/json/generic_object.rb +7 -3
- data/lib/json/pure/generator.rb +89 -22
- data/lib/json/pure/parser.rb +13 -19
- data/lib/json/pure.rb +1 -0
- data/lib/json/version.rb +3 -7
- data/lib/json.rb +1 -1
- metadata +23 -14
- data/lib/json/ext/generator.jar +0 -0
- data/lib/json/ext/parser.jar +0 -0
- /data/{LICENSE → COPYING} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c8fe928aafb46cad16de5658fa5d7b26fd17d8aba321cdaad20890317fbe91f8
|
4
|
+
data.tar.gz: 74f783d3d23b8b8f1ad66f42f41f8f59f98a85ab809b08954975c4abd9f622fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02c11c64ff4a7ccabdbd86150a90e2528f7c47715eeec844a85f68a8576632845b5527b7dc9ca834751a5dd016bf12b45bac52b00844c76c44aec296e96373fa
|
7
|
+
data.tar.gz: 9dd119a077eb1dd8848ccdeb415ce1098e916001b54e2f7f30cba706a9f88b10afcc20e6f172d19f35c97f23888c77fbdac85cc4260defecda9e8814d319154b
|
data/BSDL
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (C) 1993-2013 Yukihiro Matsumoto. All rights reserved.
|
2
|
+
|
3
|
+
Redistribution and use in source and binary forms, with or without
|
4
|
+
modification, are permitted provided that the following conditions
|
5
|
+
are met:
|
6
|
+
1. Redistributions of source code must retain the above copyright
|
7
|
+
notice, this list of conditions and the following disclaimer.
|
8
|
+
2. Redistributions in binary form must reproduce the above copyright
|
9
|
+
notice, this list of conditions and the following disclaimer in the
|
10
|
+
documentation and/or other materials provided with the distribution.
|
11
|
+
|
12
|
+
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
13
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
14
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
15
|
+
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
16
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
17
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
18
|
+
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
19
|
+
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
20
|
+
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
21
|
+
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
22
|
+
SUCH DAMAGE.
|
data/CHANGES.md
ADDED
@@ -0,0 +1,523 @@
|
|
1
|
+
# Changes
|
2
|
+
|
3
|
+
### 2024-10-24 (2.7.3)
|
4
|
+
|
5
|
+
* Numerous performance optimizations in `JSON.generate` and `JSON.dump` (up to 2 times faster).
|
6
|
+
* Limit the size of ParserError exception messages, only include up to 32 bytes of the unparseable source.
|
7
|
+
* Fix json-pure's `Object#to_json` to accept non state arguments
|
8
|
+
* Fix multiline comment support in `json-pure`.
|
9
|
+
* Fix `JSON.parse` to no longer mutate the argument encoding when passed an ASCII-8BIT string.
|
10
|
+
* Fix `String#to_json` to raise on invalid encoding in `json-pure`.
|
11
|
+
* Delete code that was based on CVTUTF.
|
12
|
+
* Use the pure-Ruby generator on TruffleRuby.
|
13
|
+
* Fix `strict` mode in `json-pure` to not break on Integer.
|
14
|
+
|
15
|
+
### 2024-04-04 (2.7.2)
|
16
|
+
|
17
|
+
* Use rb_sym2str instead of SYM2ID #561
|
18
|
+
* Fix memory leak when exception is raised during JSON generation #574
|
19
|
+
* Remove references to "19" methods in JRuby #576
|
20
|
+
* Make OpenStruct support as optional by @hsbt in #565
|
21
|
+
* Autoload JSON::GenericObject to avoid require ostruct warning in Ruby 3.4 #577
|
22
|
+
* Warn to install ostruct if json couldn't load it by @hsbt #578
|
23
|
+
|
24
|
+
### 2023-12-05 (2.7.1)
|
25
|
+
|
26
|
+
* JSON.dump: handle unenclosed hashes regression #554
|
27
|
+
* Overload kwargs in JSON.dump #556
|
28
|
+
* [DOC] RDoc for additions #557
|
29
|
+
* Fix JSON.dump overload combination #558
|
30
|
+
|
31
|
+
### 2023-12-01 (2.7.0)
|
32
|
+
|
33
|
+
* Add a strict option to Generator #519
|
34
|
+
* `escape_slash` option was renamed as `script_safe` and now also escape U+2028 and U+2029. `escape_slash` is now an alias of `script_safe` #525
|
35
|
+
* Remove unnecessary initialization of create_id in JSON.parse() #454
|
36
|
+
* Improvements to Hash#to_json in pure implementation generator #203
|
37
|
+
* Use ruby_xfree to free buffers #518
|
38
|
+
* Fix "unexpected token" offset for Infinity #507
|
39
|
+
* Avoid using deprecated BigDecimal.new on JRuby #546
|
40
|
+
* Removed code for Ruby 1.8 #540
|
41
|
+
* Rename JSON::ParseError to JSON:ParserError #530
|
42
|
+
* Call super in included hook #486
|
43
|
+
* JRuby requires a minimum of Java 8 #516
|
44
|
+
* Always indent even if empty #517
|
45
|
+
|
46
|
+
### 2022-11-30 (2.6.3)
|
47
|
+
|
48
|
+
* bugfix json/pure mixing escaped with literal unicode raises Encoding::CompatibilityError #483
|
49
|
+
* Stop including the parser source __LINE__ in exceptions #470
|
50
|
+
|
51
|
+
### 2022-11-17 (2.6.2)
|
52
|
+
|
53
|
+
* Remove unknown keyword arg from DateTime.parse #488
|
54
|
+
* Ignore java artifacts by @hsbt #489
|
55
|
+
* Fix parser bug for empty string allocation #496
|
56
|
+
|
57
|
+
### 2021-10-24 (2.6.1)
|
58
|
+
|
59
|
+
* Restore version.rb with 2.6.1
|
60
|
+
|
61
|
+
### 2021-10-14 (2.6.0)
|
62
|
+
|
63
|
+
* Use `rb_enc_interned_str` if available to reduce allocations in `freeze: true` mode. #451.
|
64
|
+
* Bump required_ruby_version to 2.3.
|
65
|
+
* Fix compatibility with `GC.compact`.
|
66
|
+
* Fix some compilation warnings. #469
|
67
|
+
|
68
|
+
## 2020-12-22 (2.5.1)
|
69
|
+
|
70
|
+
* Restore the compatibility for constants of JSON class.
|
71
|
+
|
72
|
+
## 2020-12-22 (2.5.0)
|
73
|
+
|
74
|
+
* Ready to Ractor-safe at Ruby 3.0.
|
75
|
+
|
76
|
+
## 2020-12-17 (2.4.1)
|
77
|
+
|
78
|
+
* Restore version.rb with 2.4.1
|
79
|
+
|
80
|
+
## 2020-12-15 (2.4.0)
|
81
|
+
|
82
|
+
* Implement a freeze: parser option #447
|
83
|
+
* Fix an issue with generate_pretty and empty objects in the Ruby and Java implementations #449
|
84
|
+
* Fix JSON.load_file doc #448
|
85
|
+
* Fix pure parser with unclosed arrays / objects #425
|
86
|
+
* bundle the LICENSE file in the gem #444
|
87
|
+
* Add an option to escape forward slash character #405
|
88
|
+
* RDoc for JSON #439 #446 #442 #434 #433 #430
|
89
|
+
|
90
|
+
## 2020-06-30 (2.3.1)
|
91
|
+
|
92
|
+
* Spelling and grammar fixes for comments. Pull request #191 by Josh
|
93
|
+
Kline.
|
94
|
+
* Enhance generic JSON and #generate docs. Pull request #347 by Victor
|
95
|
+
Shepelev.
|
96
|
+
* Add :nodoc: for GeneratorMethods. Pull request #349 by Victor Shepelev.
|
97
|
+
* Baseline changes to help (JRuby) development. Pull request #371 by Karol
|
98
|
+
Bucek.
|
99
|
+
* Add metadata for rubygems.org. Pull request #379 by Alexandre ZANNI.
|
100
|
+
* Remove invalid JSON.generate description from JSON module rdoc. Pull
|
101
|
+
request #384 by Jeremy Evans.
|
102
|
+
* Test with TruffleRuby in CI. Pull request #402 by Benoit Daloze.
|
103
|
+
* Rdoc enhancements. Pull request #413 by Burdette Lamar.
|
104
|
+
* Fixtures/ are not being tested... Pull request #416 by Marc-André
|
105
|
+
Lafortune.
|
106
|
+
* Use frozen string for hash key. Pull request #420 by Marc-André
|
107
|
+
Lafortune.
|
108
|
+
* Added :call-seq: to RDoc for some methods. Pull request #422 by Burdette
|
109
|
+
Lamar.
|
110
|
+
* Small typo fix. Pull request #423 by Marc-André Lafortune.
|
111
|
+
|
112
|
+
## 2019-12-11 (2.3.0)
|
113
|
+
* Fix default of `create_additions` to always be `false` for `JSON(user_input)`
|
114
|
+
and `JSON.parse(user_input, nil)`.
|
115
|
+
Note that `JSON.load` remains with default `true` and is meant for internal
|
116
|
+
serialization of trusted data. [CVE-2020-10663]
|
117
|
+
* Fix passing args all #to_json in json/add/*.
|
118
|
+
* Fix encoding issues
|
119
|
+
* Fix issues of keyword vs positional parameter
|
120
|
+
* Fix JSON::Parser against bigdecimal updates
|
121
|
+
* Bug fixes to JRuby port
|
122
|
+
|
123
|
+
## 2019-02-21 (2.2.0)
|
124
|
+
* Adds support for 2.6 BigDecimal and ruby standard library Set datetype.
|
125
|
+
|
126
|
+
## 2017-04-18 (2.1.0)
|
127
|
+
* Allow passing of `decimal_class` option to specify a class as which to parse
|
128
|
+
JSON float numbers.
|
129
|
+
## 2017-03-23 (2.0.4)
|
130
|
+
* Raise exception for incomplete unicode surrogates/character escape
|
131
|
+
sequences. This problem was reported by Daniel Gollahon (dgollahon).
|
132
|
+
* Fix arbitrary heap exposure problem. This problem was reported by Ahmad
|
133
|
+
Sherif (ahmadsherif).
|
134
|
+
|
135
|
+
## 2017-01-12 (2.0.3)
|
136
|
+
* Set `required_ruby_version` to 1.9
|
137
|
+
* Some small fixes
|
138
|
+
|
139
|
+
## 2016-07-26 (2.0.2)
|
140
|
+
* Specify `required_ruby_version` for json\_pure.
|
141
|
+
* Fix issue #295 failure when parsing frozen strings.
|
142
|
+
|
143
|
+
## 2016-07-01 (2.0.1)
|
144
|
+
* Fix problem when requiring json\_pure and Parser constant was defined top
|
145
|
+
level.
|
146
|
+
* Add `RB_GC_GUARD` to avoid possible GC problem via Pete Johns.
|
147
|
+
* Store `current_nesting` on stack by Aaron Patterson.
|
148
|
+
|
149
|
+
## 2015-09-11 (2.0.0)
|
150
|
+
* Now complies to newest JSON RFC 7159.
|
151
|
+
* Implements compatibility to ruby 2.4 integer unification.
|
152
|
+
* Drops support for old rubies whose life has ended, that is rubies < 2.0.
|
153
|
+
Also see https://www.ruby-lang.org/en/news/2014/07/01/eol-for-1-8-7-and-1-9-2/
|
154
|
+
* There were still some mentions of dual GPL licensing in the source, but JSON
|
155
|
+
has just the Ruby license that itself includes an explicit dual-licensing
|
156
|
+
clause that allows covered software to be distributed under the terms of
|
157
|
+
the Simplified BSD License instead for all ruby versions >= 1.9.3. This is
|
158
|
+
however a GPL compatible license according to the Free Software Foundation.
|
159
|
+
I changed these mentions to be consistent with the Ruby license setting in
|
160
|
+
the gemspec files which were already correct now.
|
161
|
+
|
162
|
+
## 2017-01-13 (1.8.6)
|
163
|
+
* Be compatible with ancient ruby 1.8 (maybe?)
|
164
|
+
|
165
|
+
## 2015-09-11 (1.8.5)
|
166
|
+
* Be compatible with ruby 2.4.0
|
167
|
+
* There were still some mentions of dual GPL licensing in the source, but JSON
|
168
|
+
has just the Ruby license that itself includes an explicit dual-licensing
|
169
|
+
clause that allows covered software to be distributed under the terms of
|
170
|
+
the Simplified BSD License instead for all ruby versions >= 1.9.3. This is
|
171
|
+
however a GPL compatible license according to the Free Software Foundation.
|
172
|
+
I changed these mentions to be consistent with the Ruby license setting in
|
173
|
+
the gemspec files which were already correct now.
|
174
|
+
|
175
|
+
## 2015-06-01 (1.8.3)
|
176
|
+
* Fix potential memory leak, thx to nobu.
|
177
|
+
|
178
|
+
## 2015-01-08 (1.8.2)
|
179
|
+
* Some performance improvements by Vipul A M <vipulnsward@gmail.com>.
|
180
|
+
* Fix by Jason R. Clark <jclark@newrelic.com> to avoid mutation of
|
181
|
+
`JSON.dump_default_options`.
|
182
|
+
* More tests by Michael Mac-Vicar <mmacvicar@gmail.com> and fixing
|
183
|
+
`space_before` accessor in generator.
|
184
|
+
* Performance on Jruby improved by Ben Browning <bbrownin@redhat.com>.
|
185
|
+
* Some fixes to be compatible with the new Ruby 2.2 by Zachary Scott <e@zzak.io>
|
186
|
+
and SHIBATA Hiroshi <hsbt@ruby-lang.org>.
|
187
|
+
|
188
|
+
## 2013-05-13 (1.8.1)
|
189
|
+
* Remove Rubinius exception since transcoding should be working now.
|
190
|
+
|
191
|
+
## 2013-05-13 (1.8.0)
|
192
|
+
* Fix https://github.com/ruby/json/issues/162 reported by Marc-Andre
|
193
|
+
Lafortune <github_rocks@marc-andre.ca>. Thanks!
|
194
|
+
* Applied patches by Yui NARUSE <naruse@airemix.jp> to suppress warning with
|
195
|
+
-Wchar-subscripts and better validate UTF-8 strings.
|
196
|
+
* Applied patch by ginriki@github to remove unnecessary if.
|
197
|
+
* Add load/dump interface to `JSON::GenericObject` to make
|
198
|
+
serialize :some_attribute, `JSON::GenericObject`
|
199
|
+
work in Rails active models for convenient `SomeModel#some_attribute.foo.bar`
|
200
|
+
access to serialised JSON data.
|
201
|
+
|
202
|
+
## 2013-02-04 (1.7.7)
|
203
|
+
* Security fix for JSON create_additions default value and
|
204
|
+
`JSON::GenericObject`. It should not be possible to create additions unless
|
205
|
+
explicitly requested by setting the create_additions argument to true or
|
206
|
+
using the JSON.load/dump interface. If `JSON::GenericObject` is supposed to
|
207
|
+
be automatically deserialised, this has to be explicitly enabled by
|
208
|
+
setting
|
209
|
+
JSON::GenericObject.json_creatable = true
|
210
|
+
as well.
|
211
|
+
* Remove useless assert in fbuffer implementation.
|
212
|
+
* Apply patch attached to https://github.com/ruby/json/issues#issue/155
|
213
|
+
provided by John Shahid <jvshahid@gmail.com>, Thx!
|
214
|
+
* Add license information to rubygems spec data, reported by Jordi Massaguer Pla <jmassaguerpla@suse.de>.
|
215
|
+
* Improve documentation, thx to Zachary Scott <zachary@zacharyscott.net>.
|
216
|
+
|
217
|
+
## 2012-11-29 (1.7.6)
|
218
|
+
* Add `GeneratorState#merge` alias for JRuby, fix state accessor methods. Thx to
|
219
|
+
jvshahid@github.
|
220
|
+
* Increase hash likeness of state objects.
|
221
|
+
|
222
|
+
## 2012-08-17 (1.7.5)
|
223
|
+
* Fix compilation of extension on older rubies.
|
224
|
+
|
225
|
+
## 2012-07-26 (1.7.4)
|
226
|
+
* Fix compilation problem on AIX, see https://github.com/ruby/json/issues/142
|
227
|
+
|
228
|
+
## 2012-05-12 (1.7.3)
|
229
|
+
* Work around Rubinius encoding issues using iconv for conversion instead.
|
230
|
+
|
231
|
+
## 2012-05-11 (1.7.2)
|
232
|
+
* Fix some encoding issues, that cause problems for the pure and the
|
233
|
+
extension variant in jruby 1.9 mode.
|
234
|
+
|
235
|
+
## 2012-04-28 (1.7.1)
|
236
|
+
* Some small fixes for building
|
237
|
+
|
238
|
+
## 2012-04-28 (1.7.0)
|
239
|
+
* Add `JSON::GenericObject` for method access to objects transmitted via JSON.
|
240
|
+
|
241
|
+
## 2012-04-27 (1.6.7)
|
242
|
+
* Fix possible crash when trying to parse nil value.
|
243
|
+
|
244
|
+
## 2012-02-11 (1.6.6)
|
245
|
+
* Propagate src encoding to values made from it (fixes 1.9 mode converting
|
246
|
+
everything to ascii-8bit; harmless for 1.8 mode too) (Thomas E. Enebo
|
247
|
+
<tom.enebo@gmail.com>), should fix
|
248
|
+
https://github.com/ruby/json/issues#issue/119.
|
249
|
+
* Fix https://github.com/ruby/json/issues#issue/124 Thx to Jason Hutchens.
|
250
|
+
* Fix https://github.com/ruby/json/issues#issue/117
|
251
|
+
|
252
|
+
## 2012-01-15 (1.6.5)
|
253
|
+
* Vit Ondruch <v.ondruch@tiscali.cz> reported a bug that shows up when using
|
254
|
+
optimisation under GCC 4.7. Thx to him, Bohuslav Kabrda
|
255
|
+
<bkabrda@redhat.com> and Yui NARUSE <naruse@airemix.jp> for debugging and
|
256
|
+
developing a patch fix.
|
257
|
+
|
258
|
+
## 2011-12-24 (1.6.4)
|
259
|
+
* Patches that improve speed on JRuby contributed by Charles Oliver Nutter
|
260
|
+
<headius@headius.com>.
|
261
|
+
* Support `object_class`/`array_class` with duck typed hash/array.
|
262
|
+
|
263
|
+
## 2011-12-01 (1.6.3)
|
264
|
+
* Let `JSON.load('')` return nil as well to make mysql text columns (default to
|
265
|
+
`''`) work better for serialization.
|
266
|
+
|
267
|
+
## 2011-11-21 (1.6.2)
|
268
|
+
* Add support for OpenStruct and BigDecimal.
|
269
|
+
* Fix bug when parsing nil in `quirks_mode`.
|
270
|
+
* Make JSON.dump and JSON.load methods better cooperate with Rails' serialize
|
271
|
+
method. Just use:
|
272
|
+
serialize :value, JSON
|
273
|
+
* Fix bug with time serialization concerning nanoseconds. Thanks for the
|
274
|
+
patch go to Josh Partlow (jpartlow@github).
|
275
|
+
* Improve parsing speed for JSON numbers (integers and floats) in a similar way to
|
276
|
+
what Evan Phoenix <evan@phx.io> suggested in:
|
277
|
+
https://github.com/ruby/json/pull/103
|
278
|
+
|
279
|
+
## 2011-09-18 (1.6.1)
|
280
|
+
* Using -target 1.5 to force Java bits to compile with 1.5.
|
281
|
+
|
282
|
+
## 2011-09-12 (1.6.0)
|
283
|
+
* Extract utilities (prettifier and GUI-editor) in its own gem json-utils.
|
284
|
+
* Split json/add/core into different files for classes to be serialised.
|
285
|
+
|
286
|
+
## 2011-08-31 (1.5.4)
|
287
|
+
* Fix memory leak when used from multiple JRuby. (Patch by
|
288
|
+
jfirebaugh@github).
|
289
|
+
* Apply patch by Eric Wong <nocode@yhbt.net> that fixes garbage collection problem
|
290
|
+
reported in https://github.com/ruby/json/issues/46.
|
291
|
+
* Add :quirks_mode option to parser and generator.
|
292
|
+
* Add support for Rational and Complex number additions via json/add/complex
|
293
|
+
and json/add/rational requires.
|
294
|
+
|
295
|
+
## 2011-06-20 (1.5.3)
|
296
|
+
* Alias State#configure method as State#merge to increase duck type synonymy with Hash.
|
297
|
+
* Add `as_json` methods in json/add/core, so rails can create its json objects the new way.
|
298
|
+
|
299
|
+
## 2011-05-11 (1.5.2)
|
300
|
+
* Apply documentation patch by Cory Monty <cory.monty@gmail.com>.
|
301
|
+
* Add gemspecs for json and json\_pure.
|
302
|
+
* Fix bug in jruby pretty printing.
|
303
|
+
* Fix bug in `object_class` and `array_class` when inheriting from Hash or
|
304
|
+
Array.
|
305
|
+
|
306
|
+
## 2011-01-24 (1.5.1)
|
307
|
+
* Made rake-compiler build a fat binary gem. This should fix issue
|
308
|
+
https://github.com/ruby/json/issues#issue/54.
|
309
|
+
|
310
|
+
## 2011-01-22 (1.5.0)
|
311
|
+
* Included Java source codes for the Jruby extension made by Daniel Luz
|
312
|
+
<dev@mernen.com>.
|
313
|
+
* Output full exception message of `deep_const_get` to aid debugging.
|
314
|
+
* Fixed an issue with ruby 1.9 `Module#const_defined?` method, that was
|
315
|
+
reported by Riley Goodside.
|
316
|
+
|
317
|
+
## 2010-08-09 (1.4.6)
|
318
|
+
* Fixed oversight reported in http://github.com/ruby/json/issues/closed#issue/23,
|
319
|
+
always create a new object from the state prototype.
|
320
|
+
* Made pure and ext api more similar again.
|
321
|
+
|
322
|
+
## 2010-08-07 (1.4.5)
|
323
|
+
* Manage data structure nesting depth in state object during generation. This
|
324
|
+
should reduce problems with `to_json` method definіtions that only have one
|
325
|
+
argument.
|
326
|
+
* Some fixes in the state objects and additional tests.
|
327
|
+
## 2010-08-06 (1.4.4)
|
328
|
+
* Fixes build problem for rubinius under OS X, http://github.com/ruby/json/issues/closed#issue/25
|
329
|
+
* Fixes crashes described in http://github.com/ruby/json/issues/closed#issue/21 and
|
330
|
+
http://github.com/ruby/json/issues/closed#issue/23
|
331
|
+
## 2010-05-05 (1.4.3)
|
332
|
+
* Fixed some test assertions, from Ruby r27587 and r27590, patch by nobu.
|
333
|
+
* Fixed issue http://github.com/ruby/json/issues/#issue/20 reported by
|
334
|
+
electronicwhisper@github. Thx!
|
335
|
+
|
336
|
+
## 2010-04-26 (1.4.2)
|
337
|
+
* Applied patch from naruse Yui NARUSE <naruse@airemix.com> to make building with
|
338
|
+
Microsoft Visual C possible again.
|
339
|
+
* Applied patch from devrandom <c1.github@niftybox.net> in order to allow building of
|
340
|
+
json_pure if extensiontask is not present.
|
341
|
+
* Thanks to Dustin Schneider <dustin@stocktwits.com>, who reported a memory
|
342
|
+
leak, which is fixed in this release.
|
343
|
+
* Applied 993f261ccb8f911d2ae57e9db48ec7acd0187283 patch from josh@github.
|
344
|
+
|
345
|
+
## 2010-04-25 (1.4.1)
|
346
|
+
* Fix for a bug reported by Dan DeLeo <dan@kallistec.com>, caused by T_FIXNUM
|
347
|
+
being different on 32bit/64bit architectures.
|
348
|
+
|
349
|
+
## 2010-04-23 (1.4.0)
|
350
|
+
* Major speed improvements and building with simplified
|
351
|
+
directory/file-structure.
|
352
|
+
* Extension should at least be compatible with MRI, YARV and Rubinius.
|
353
|
+
|
354
|
+
## 2010-04-07 (1.2.4)
|
355
|
+
* Trigger const_missing callback to make Rails' dynamic class loading work.
|
356
|
+
|
357
|
+
## 2010-03-11 (1.2.3)
|
358
|
+
* Added a `State#[]` method which returns an attribute's value in order to
|
359
|
+
increase duck type compatibility to Hash.
|
360
|
+
|
361
|
+
## 2010-02-27 (1.2.2)
|
362
|
+
* Made some changes to make the building of the parser/generator compatible
|
363
|
+
to Rubinius.
|
364
|
+
|
365
|
+
## 2009-11-25 (1.2.1)
|
366
|
+
* Added `:symbolize_names` option to Parser, which returns symbols instead of
|
367
|
+
strings in object names/keys.
|
368
|
+
|
369
|
+
## 2009-10-01 (1.2.0)
|
370
|
+
* `fast_generate` now raises an exception for nan and infinite floats.
|
371
|
+
* On Ruby 1.8 json supports parsing of UTF-8, UTF-16BE, UTF-16LE, UTF-32BE,
|
372
|
+
and UTF-32LE JSON documents now. Under Ruby 1.9 the M17n conversion
|
373
|
+
functions are used to convert from all supported encodings. ASCII-8BIT
|
374
|
+
encoded strings are handled like all strings under Ruby 1.8 were.
|
375
|
+
* Better documentation
|
376
|
+
|
377
|
+
## 2009-08-23 (1.1.9)
|
378
|
+
* Added forgotten main doc file `extra_rdoc_files`.
|
379
|
+
|
380
|
+
## 2009-08-23 (1.1.8)
|
381
|
+
* Applied a patch by OZAWA Sakuro <sakuro@2238club.org> to make json/pure
|
382
|
+
work in environments that don't provide iconv.
|
383
|
+
* Applied patch by okkez_ in order to fix Ruby Bug #1768:
|
384
|
+
http://redmine.ruby-lang.org/issues/show/1768.
|
385
|
+
* Finally got around to avoid the rather paranoid escaping of ?/ characters
|
386
|
+
in the generator's output. The parsers aren't affected by this change.
|
387
|
+
Thanks to Rich Apodaca <rapodaca@metamolecular.com> for the suggestion.
|
388
|
+
|
389
|
+
## 2009-06-29 (1.1.7)
|
390
|
+
* Security Fix for JSON::Pure::Parser. A specially designed string could
|
391
|
+
cause catastrophic backtracking in one of the parser's regular expressions
|
392
|
+
in earlier 1.1.x versions. JSON::Ext::Parser isn't affected by this issue.
|
393
|
+
Thanks to Bartosz Blimke <bartosz@new-bamboo.co.uk> for reporting this
|
394
|
+
problem.
|
395
|
+
* This release also uses a less strict ruby version requirement for the
|
396
|
+
creation of the mswin32 native gem.
|
397
|
+
|
398
|
+
## 2009-05-10 (1.1.6)
|
399
|
+
* No changes. І tested native linux gems in the last release and they don't
|
400
|
+
play well with different ruby versions other than the one the gem was built
|
401
|
+
with. This release is just to bump the version number in order to skip the
|
402
|
+
native gem on rubyforge.
|
403
|
+
|
404
|
+
## 2009-05-10 (1.1.5)
|
405
|
+
* Started to build gems with rake-compiler gem.
|
406
|
+
* Applied patch object/array class patch from Brian Candler
|
407
|
+
<B.Candler@pobox.com> and fixes.
|
408
|
+
|
409
|
+
## 2009-04-01 (1.1.4)
|
410
|
+
* Fixed a bug in the creation of serialized generic rails objects reported by
|
411
|
+
Friedrich Graeter <graeter@hydrixos.org>.
|
412
|
+
* Deleted tests/runner.rb, we're using testrb instead.
|
413
|
+
* Editor supports Infinity in numbers now.
|
414
|
+
* Made some changes in order to get the library to compile/run under Ruby
|
415
|
+
1.9.
|
416
|
+
* Improved speed of the code path for the fast_generate method in the pure
|
417
|
+
variant.
|
418
|
+
|
419
|
+
## 2008-07-10 (1.1.3)
|
420
|
+
* Wesley Beary <monki@geemus.com> reported a bug in json/add/core's DateTime
|
421
|
+
handling: If the nominator and denominator of the offset were divisible by
|
422
|
+
each other Ruby's Rational#to_s returns them as an integer not a fraction
|
423
|
+
with '/'. This caused a ZeroDivisionError during parsing.
|
424
|
+
* Use Date#start and DateTime#start instead of sg method, while
|
425
|
+
remaining backwards compatible.
|
426
|
+
* Supports ragel >= 6.0 now.
|
427
|
+
* Corrected some tests.
|
428
|
+
* Some minor changes.
|
429
|
+
|
430
|
+
## 2007-11-27 (1.1.2)
|
431
|
+
* Remember default dir (last used directory) in editor.
|
432
|
+
* JSON::Editor.edit method added, the editor can now receive json texts from
|
433
|
+
the clipboard via C-v.
|
434
|
+
* Load json texts from an URL pasted via middle button press.
|
435
|
+
* Added :create_additions option to Parser. This makes it possible to disable
|
436
|
+
the creation of additions by force, in order to treat json texts as data
|
437
|
+
while having additions loaded.
|
438
|
+
* Jacob Maine <jmaine@blurb.com> reported, that JSON(:foo) outputs a JSON
|
439
|
+
object if the rails addition is enabled, which is wrong. It now outputs a
|
440
|
+
JSON string "foo" instead, like suggested by Jacob Maine.
|
441
|
+
* Discovered a bug in the Ruby Bugs Tracker on rubyforge, that was reported
|
442
|
+
by John Evans lgastako@gmail.com. He could produce a crash in the JSON
|
443
|
+
generator by returning something other than a String instance from a
|
444
|
+
to_json method. I now guard against this by doing a rather crude type
|
445
|
+
check, which raises an exception instead of crashing.
|
446
|
+
|
447
|
+
## 2007-07-06 (1.1.1)
|
448
|
+
* Yui NARUSE <naruse@airemix.com> sent some patches to fix tests for Ruby
|
449
|
+
1.9. I applied them and adapted some of them a bit to run both on 1.8 and
|
450
|
+
1.9.
|
451
|
+
* Introduced a `JSON.parse!` method without depth checking for people who
|
452
|
+
like danger.
|
453
|
+
* Made generate and `pretty_generate` methods configurable by an options hash.
|
454
|
+
* Added :allow_nan option to parser and generator in order to handle NaN,
|
455
|
+
Infinity, and -Infinity correctly - if requested. Floats, which aren't numbers,
|
456
|
+
aren't valid JSON according to RFC4627, so by default an exception will be
|
457
|
+
raised if any of these symbols are encountered. Thanks to Andrea Censi
|
458
|
+
<andrea.censi@dis.uniroma1.it> for his hint about this.
|
459
|
+
* Fixed some more tests for Ruby 1.9.
|
460
|
+
* Implemented dump/load interface of Marshal as suggested in ruby-core:11405
|
461
|
+
by murphy <murphy@rubychan.de>.
|
462
|
+
* Implemented the `max_nesting` feature for generate methods, too.
|
463
|
+
* Added some implementations for ruby core's custom objects for
|
464
|
+
serialisation/deserialisation purposes.
|
465
|
+
|
466
|
+
## 2007-05-21 (1.1.0)
|
467
|
+
* Implemented max_nesting feature for parser to avoid stack overflows for
|
468
|
+
data from untrusted sources. If you trust the source, you can disable it
|
469
|
+
with the option max_nesting => false.
|
470
|
+
* Piers Cawley <pdcawley@bofh.org.uk> reported a bug, that not every
|
471
|
+
character can be escaped by `\` as required by RFC4627. There's a
|
472
|
+
contradiction between David Crockford's JSON checker test vectors (in
|
473
|
+
tests/fixtures) and RFC4627, though. I decided to stick to the RFC, because
|
474
|
+
the JSON checker seems to be a bit older than the RFC.
|
475
|
+
* Extended license to Ruby License, which includes the GPL.
|
476
|
+
* Added keyboard shortcuts, and 'Open location' menu item to edit_json.rb.
|
477
|
+
|
478
|
+
## 2007-05-09 (1.0.4)
|
479
|
+
* Applied a patch from Yui NARUSE <naruse@airemix.com> to make JSON compile
|
480
|
+
under Ruby 1.9. Thank you very much for mailing it to me!
|
481
|
+
* Made binary variants of JSON fail early, instead of falling back to the
|
482
|
+
pure version. This should avoid overshadowing of eventual problems while
|
483
|
+
loading of the binary.
|
484
|
+
|
485
|
+
## 2007-03-24 (1.0.3)
|
486
|
+
* Improved performance of pure variant a bit.
|
487
|
+
* The ext variant of this release supports the mswin32 platform. Ugh!
|
488
|
+
|
489
|
+
## 2007-03-24 (1.0.2)
|
490
|
+
* Ext Parser didn't parse 0e0 correctly into 0.0: Fixed!
|
491
|
+
|
492
|
+
## 2007-03-24 (1.0.1)
|
493
|
+
* Forgot some object files in the build dir. I really like that - not!
|
494
|
+
|
495
|
+
## 2007-03-24 (1.0.0)
|
496
|
+
* Added C implementations for the JSON generator and a ragel based JSON
|
497
|
+
parser in C.
|
498
|
+
* Much more tests, especially fixtures from json.org.
|
499
|
+
* Further improved conformance to RFC4627.
|
500
|
+
|
501
|
+
## 2007-02-09 (0.4.3)
|
502
|
+
* Conform more to RFC4627 for JSON: This means JSON strings
|
503
|
+
now always must contain exactly one object `"{ ... }"` or array `"[ ... ]"` in
|
504
|
+
order to be parsed without raising an exception. The definition of what
|
505
|
+
constitutes a whitespace is narrower in JSON than in Ruby ([ \t\r\n]), and
|
506
|
+
there are differences in floats and integers (no octals or hexadecimals) as
|
507
|
+
well.
|
508
|
+
* Added aliases generate and `pretty_generate` of unparse and `pretty_unparse`.
|
509
|
+
* Fixed a test case.
|
510
|
+
* Catch an `Iconv::InvalidEncoding` exception, that seems to occur on some Sun
|
511
|
+
boxes with SunOS 5.8, if iconv doesn't support utf16 conversions. This was
|
512
|
+
reported by Andrew R Jackson <andrewj@bcm.tmc.edu>, thanks a bunch!
|
513
|
+
|
514
|
+
## 2006-08-25 (0.4.2)
|
515
|
+
* Fixed a bug in handling solidi (/-characters), that was reported by
|
516
|
+
Kevin Gilpin <kevin.gilpin@alum.mit.edu>.
|
517
|
+
|
518
|
+
## 2006-02-06 (0.4.1)
|
519
|
+
* Fixed a bug related to escaping with backslashes. Thanks for the report go
|
520
|
+
to Florian Munz <surf@theflow.de>.
|
521
|
+
|
522
|
+
## 2005-09-23 (0.4.0)
|
523
|
+
* Initial Rubyforge Version
|
data/LEGAL
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
# -*- rdoc -*-
|
2
|
+
|
3
|
+
= LEGAL NOTICE INFORMATION
|
4
|
+
--------------------------
|
5
|
+
|
6
|
+
All the files in this distribution are covered under either the Ruby's
|
7
|
+
license (see the file COPYING) or public-domain except some files
|
8
|
+
mentioned below.
|
9
|
+
|
10
|
+
== MIT License
|
11
|
+
>>>
|
12
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
13
|
+
a copy of this software and associated documentation files (the
|
14
|
+
"Software"), to deal in the Software without restriction, including
|
15
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
16
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
17
|
+
permit persons to whom the Software is furnished to do so, subject to
|
18
|
+
the following conditions:
|
19
|
+
|
20
|
+
The above copyright notice and this permission notice shall be
|
21
|
+
included in all copies or substantial portions of the Software.
|
22
|
+
|
23
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
24
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
25
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
26
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
27
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
28
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
29
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
30
|
+
|
31
|
+
== Old-style BSD license
|
32
|
+
>>>
|
33
|
+
Redistribution and use in source and binary forms, with or without
|
34
|
+
modification, are permitted provided that the following conditions
|
35
|
+
are met:
|
36
|
+
1. Redistributions of source code must retain the above copyright
|
37
|
+
notice, this list of conditions and the following disclaimer.
|
38
|
+
2. Redistributions in binary form must reproduce the above copyright
|
39
|
+
notice, this list of conditions and the following disclaimer in the
|
40
|
+
documentation and/or other materials provided with the distribution.
|
41
|
+
3. Neither the name of the University nor the names of its contributors
|
42
|
+
may be used to endorse or promote products derived from this software
|
43
|
+
without specific prior written permission.
|
44
|
+
|
45
|
+
THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
46
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
47
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
48
|
+
ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
49
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
50
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
51
|
+
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
52
|
+
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
53
|
+
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
54
|
+
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
55
|
+
SUCH DAMAGE.
|
56
|
+
|
57
|
+
IMPORTANT NOTE::
|
58
|
+
|
59
|
+
From ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
|
60
|
+
paragraph 3 above is now null and void.
|