json 2.7.1-java → 2.7.3.rc1-java

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