oj 3.13.1 → 3.13.5

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: a72c9edbd99e2e73392b5f0f5d19bee2e00187e7b999822c5c9a9086c25cc8a3
4
- data.tar.gz: 7be23afd3d15f172d845ab1f852a134fe2c9d3700a197fc14ba75dd7423a4a59
3
+ metadata.gz: 0a287ba77407aab722c31cfa700b92a173015345bc619f4a95ef7baaeff4be93
4
+ data.tar.gz: b0286ae29d7dff1f71e5691feae47761ad6203f6bdbcf457486443c29b40c6c9
5
5
  SHA512:
6
- metadata.gz: e6d92e4bff747161aa6da5619d5ece4faad452d7fd737f4c973e52808641973cbc6d56c684395f99947f222bcfc4797524d93e4f35ef55748770a32ba73d9c44
7
- data.tar.gz: 9780a00f4baef37702a0ddda2e9b8c56475c69286295fdaafad6643e70825cfe8f8a69bb3dfb74791e5cc9685b6bacccb48ec23dfc250c698a19dadea19c9b71
6
+ metadata.gz: bd679fe51f8564ab17a24a842a7d7c31c097e6cd20b7f46c5949d19717aa24901750314426d2930752f78160bb25c157728b3ec8b1247376816b5dc2857ced27
7
+ data.tar.gz: 278065333f209b2ef3d10a94dc770f78ff50d9ca2090e39b522083deb1548902f81b8f9493d689401cc4106b21cf5e6d93f17f5cc8da383f86dc1a4d0418ae43
data/CHANGELOG.md ADDED
@@ -0,0 +1,1270 @@
1
+ # CHANGELOG
2
+
3
+ ## 3.13.5 - 2021-09-08
4
+
5
+ - Assure value strings of zero length are not always cached.
6
+
7
+ ## 3.13.4 - 2021-09-04
8
+
9
+ - Fixed concurrent GC issue in the cache.
10
+
11
+ ## 3.13.3 - 2021-08-30
12
+
13
+ - Caches are now self adjusting and clearing so less used entries are
14
+ expunged to avoid memory growth.
15
+
16
+ - When mimicking the JSON gem the JSON::State now handles all Hash
17
+ methods. While this is different than the actually JSON gem it
18
+ avoids failing due to errors in Rails code and other gems.
19
+
20
+ ## 3.13.2 - 2021-08-11
21
+
22
+ - Fixed C99 compiler errors.
23
+
24
+ ## 3.13.1 - 2021-08-09
25
+
26
+ - Fixed failing build on Windows.
27
+
28
+ ## 3.13.0 - 2021-08-08
29
+
30
+ - Added `Oj::Parser`, a faster parser with better option management.
31
+
32
+ - Watson1978 increasd dump performance ever more and is now a collaborator on Oj!
33
+
34
+ ## 3.12.3 - 2021-08-02
35
+
36
+ - Update documents for the `:cache_keys` and `:cache_strings`.
37
+
38
+ - Watson1978 increased dump performance for rails mode.
39
+
40
+ ## 3.12.2 - 2021-07-25
41
+
42
+ - Thanks to Watson1978 for the dump performance for time values.
43
+
44
+ ## 3.12.1 - 2021-07-09
45
+
46
+ - Fixed `:cache_keys` not being honored in compat mode.
47
+ - Increased the cache size.
48
+
49
+ ## 3.12.0 - 2021-07-05
50
+
51
+ - Added string and symbol caching options that give Oj about a 20% parse performance boost.
52
+
53
+ ## 3.11.8 - 2021-07-03
54
+
55
+ - Fixed or reverted change that set the default mode when optimize_Rails was called.
56
+
57
+ ## 3.11.7 - 2021-06-22
58
+
59
+ - Fixed exception type when parsing after `Oj::Rails.mimic_JSON` is called.
60
+
61
+ ## 3.11.6 - 2021-06-14
62
+
63
+ - Fixed bug where `Oj::Doc#fetch` on an empty Hash or Array did not return `nil`.
64
+
65
+ - Added an `Oj::Doc#exists?` method.
66
+
67
+ - Deprecated `Oj::Doc#where?` in favor `Oj::Doc#where` or the alias, `Oj::Doc#path`.
68
+
69
+ ## 3.11.5 - 2021-04-15
70
+
71
+ - Oj.generate fix introduced in previous bug fix. Oj.mimic_JSON is forced if Oj.generate is called.
72
+
73
+ ## 3.11.4 - 2021-04-14
74
+
75
+ - Code re-formatted with clang-format. Thanks goes to BuonOmo for
76
+ suggesting and encouraging the use of a formatter and getting the
77
+ effort started.
78
+
79
+ - Added support for `GC.compact` on `Oj::Doc`
80
+
81
+ - Fixed compatibility issue with Rails and the JSON gem that requires
82
+ a special case when using JSON.generate versus call `to_json` on an
83
+ object.
84
+
85
+ ## 3.11.3 - 2021-03-09
86
+
87
+ - Fixed `respond_to?` method on `Oj::EasyHash`.
88
+
89
+ ## 3.11.2 - 2021-01-27
90
+
91
+ - Fixed JSON gem `:decimal_class` option.
92
+
93
+ ## 3.11.1 - 2021-01-24
94
+
95
+ - XrXr fixed Ruby 3.0.0 object movement issue.
96
+
97
+ ## 3.11.0 - 2021-01-12
98
+
99
+ - Added `:compat_bigdecimal` to support the JSON gem `:decimal_class` undocumented option.
100
+
101
+ - Reverted the use of `:bigdecimal_load` for `:compat` mode.
102
+
103
+ ## 3.10.18 - 2020-12-25
104
+
105
+ - Fix modes table by marking compat mode `:bigdecimal_load` instead of `:bigdecimal_as_decimal`.
106
+
107
+ - Added `:custom` mode setting that are the same as `:compat` mode. There are some minor differences between the two setting.
108
+
109
+ ## 3.10.17 - 2020-12-15
110
+
111
+ - The undocumented JSON gem option of `:decimal_class` is now
112
+ supported and the default option of `:bigdecimal_load` is also
113
+ honored in JSON.parse() and in compat mode.
114
+
115
+ - Invalid encoding detection bug fixed for rails.
116
+
117
+ ## 3.10.16 - 2020-11-10
118
+
119
+ - Allow escaping any character in :compat mode to match the json gem behavior.
120
+
121
+ ## 3.10.15 - 2020-10-16
122
+
123
+ Remove license from code.
124
+
125
+ ## 3.10.14 - 2020-09-05
126
+
127
+ - Updated float test to check a range.
128
+
129
+ ## 3.10.13 - 2020-08-28
130
+
131
+ - Removed explicit dependency on bigdecimal.
132
+
133
+ ## 3.10.12 - 2020-08-20
134
+
135
+ - Another try at bracketing bigdecimal versions to 1.0 and 3.
136
+
137
+ ## 3.10.11 - 2020-08-20
138
+
139
+ - Bracketed bigdecimal dependency to 1.0 and 3.
140
+
141
+ ## 3.10.10 - 2020-08-20
142
+
143
+ - Backed off bigdecimal dependency to 1.0.
144
+
145
+ ## 3.10.9 - 2020-08-17
146
+
147
+ - Add bigdecimal dependency to gemfile.
148
+
149
+ ## 3.10.8 - 2020-07-24
150
+
151
+ - New fast option for float parsing.
152
+
153
+ - Fixes a float parse error.
154
+
155
+ ## 3.10.7 - 2020-07-13
156
+
157
+ - Faster float parsing and an adjust to more closely match Ruby.
158
+
159
+ ## 3.10.6 - 2020-04-04
160
+
161
+ - Correct object dump code to continue instead of return on an _ attribnute.
162
+
163
+ ## 3.10.5 - 2020-03-03
164
+
165
+ - Fix test
166
+
167
+ ## 3.10.4 - 2020-03-03
168
+
169
+ - Another adjustment to get Ruby floats to match Oj thanks to klaxit.
170
+
171
+ ## 3.10.3 - 2020-03-01
172
+
173
+ - Fixed difference between some unicode character encoding in Rails mode.
174
+
175
+ ## 3.10.2 - 2020-01-30
176
+
177
+ - Fixed circular array reference load.
178
+
179
+ ## 3.10.1 - 2020-01-14
180
+
181
+ - Fixed bug where setting `ActiveSupport::JSON::Encoding.use_standard_json_time_format` before calling `Oj.optimize_rails` did not have an effect on the time format.
182
+
183
+ - Worked around the Active Support hack that branched in `to_json` depending on the class of the option argument.
184
+
185
+ - Updated for Ruby 2.7.0
186
+
187
+ ## 3.10.0 - 2019-11-28
188
+
189
+ - Fixed custom mode load_file to use custom mode.
190
+
191
+ - Fixed rails mode output of IO objects
192
+
193
+ - Fixed issue #567. Second precision is forced if set to the correct number of decimals even if zero nanoseconds.
194
+
195
+ - Fixed issue #568. Dumping bigdecimal in `:rails' mode made more consistent.
196
+
197
+ - Fixed issue #569. `:compat` mode not restricts the escape mode as indicated in the documentation.
198
+
199
+ - Fixed issue #570. In `:strict` mode number parsing follows the JSON specification more closely as intended.
200
+
201
+ - Added `:ignore_under` which when true will ignore attributes that begin with a `_` when dumping in `:object` or `:custom` mode.
202
+
203
+ ## 3.9.2 - 2019-10-01
204
+
205
+ - Fixed wrong exception type when mimicking the JSON gem.
206
+
207
+ ## 3.9.1 - 2019-08-31
208
+
209
+ - Raise an exception on an invalid time represented as a decimal in `:object` mode.
210
+
211
+ ## 3.9.0 - 2019-08-18
212
+
213
+ - Changed custom behavior when `:create_additions` is true and `:create_id` is
214
+ set to nil. Now Range, Regexp, Rational, and Complex are output as strings
215
+ instead of a JSON object with members. Setting any other value for
216
+ `:create_id`, even an empty string will result in an object being dumped.
217
+
218
+ - Detection of pthread mutex support was changed.
219
+
220
+ ## 3.8.1 - 2019-07-22
221
+
222
+ - Fix replacement of JSON::Parse thanks to paracycle.
223
+
224
+ ## 3.8.0 - 2019-07-17
225
+
226
+ - Fixed a buffer allocation bug for `JSON.pretty_generate`.
227
+
228
+ - Added mimic `safe` option to not include the complete JSON in a parse error message.
229
+
230
+ - Added `use_raw_json` option for `:compat` and `:rails` mode to allow better
231
+ performance on dump. StringWriter in particular has been optimized for this option.
232
+
233
+ ## 3.7.12 - 2019-04-14
234
+
235
+ - The `:omit_nil` option did not work in `:rails` mode. That has been fixed.
236
+
237
+ ## 3.7.11 - 2019-03-19
238
+
239
+ - Fix to Rails optimize that missed initializing the mimic JSON `:symbolize_names` value.
240
+
241
+ ## 3.7.10 - 2019-03-14
242
+
243
+ - Corrected time dump so that the none-leap years after a 400 year period are correct.
244
+
245
+ ## 3.7.9 - 2019-02-18
246
+
247
+ - Return correct value in `create_opt` C function.
248
+
249
+ - Return `Oj::ParseError` if an invalid big decimal string is encountered instead of an argument error
250
+
251
+ ## 3.7.8 - 2019-01-21
252
+
253
+ - Replace `gmtime` with a custom function.
254
+
255
+ - Oj::Doc crash fix.
256
+
257
+ - Mark odd args to avoid GC.
258
+
259
+ ## 3.7.7 - 2019-01-14
260
+
261
+ - Exception with other than a single argument initializer can now be decoded.
262
+
263
+ - StreamWriter bug fixed that forces UTF-8 when appending to a stream. Ruby likes to convert to ASCII-8BIT but forcing the append to be UTF-8 avoids that issue.
264
+
265
+ ## 3.7.6 - 2018-12-30
266
+
267
+ - Changed time encoding for 32 bit to work around a Ruby bug in `rb_time_timespec()` that fails for times before 1970.
268
+
269
+ - Addressed issue #514 by changing reserved identifiers.
270
+
271
+ - Addressed issue #515 by adding return value checks on `strdup()` and `pthread_mutex_init()`.
272
+
273
+ ## 3.7.5 - 2018-12-27
274
+
275
+ - Address issue #517 with a special escape table for mimicking the JSON gem.
276
+
277
+ ## 3.7.4 - 2018-11-29
278
+
279
+ - Allow `+` in front of numbers in parse as well as stream parse **EXCEPT** when mimicking the JSON gem.
280
+
281
+ ## 3.7.3 - 2018-11-29
282
+
283
+ - Allow `+` in front of numbers in parse as well as stream parse.
284
+
285
+ ## 3.7.2 - 2018-11-29
286
+
287
+ - More tolerant float parsing to allow `123.`.
288
+
289
+ - Parse exceptions raised by user code now preserve the message content of the exception.
290
+
291
+ ## 3.7.1 - 2018-11-09
292
+
293
+ - Updated to support TruffleRuby.
294
+
295
+ ## 3.7.0 - 2018-10-29
296
+
297
+ - Thanks to Ziaw for adding a integer range where integers outside that range are written as strings.
298
+
299
+ ## 3.6.13 - 2018-10-25
300
+
301
+ - Fixed issue where exceptions were not being cleared on parsing.
302
+
303
+ - Added addition unicode dump error information.
304
+
305
+ ## 3.6.12 - 2018-10-16
306
+
307
+ - Fixed random `:omit_nil` setting with StringWriter and StreamWriter.
308
+
309
+ ## 3.6.11 - 2018-09-26
310
+
311
+ - Added the JSON path to parse error messages.
312
+
313
+ - BigDecimal parse errors now return Oj::ParseError instead of ArgumentError.
314
+
315
+ ## 3.6.10 - 2018-09-13
316
+
317
+ - Additional occurrences of `SYM2ID(sym)` replaced.
318
+
319
+ ## 3.6.9 - 2018-09-12
320
+
321
+ - `SYM2ID(sym)` causes a memory leak. A work around is now used.
322
+
323
+ ## 3.6.8 - 2018-09-08
324
+
325
+ - Stopped setting the default options when optimize rails is called as the documentation has indicated.
326
+
327
+ - In custom mode `Date` and `DateTime` instances default to use the `:time_format` option is the `:create_additions` option is false.
328
+
329
+ ## 3.6.7 - 2018-08-26
330
+
331
+ - Fixed incorrect check in StreamWriter when adding raw JSON.
332
+
333
+ ## 3.6.6 - 2018-08-16
334
+
335
+ - Fixed Debian build issues on several platforms.
336
+
337
+ - `oj_slash_string` is now frozen.
338
+
339
+ ## 3.6.5 - 2018-07-26
340
+
341
+ - Fixed GC issue with Oj::Doc.
342
+
343
+ - Fixed issue with time encoding with Windows.
344
+
345
+ ## 3.6.4 - 2018-07-10
346
+
347
+ - JSON.generate() now sets the `to_json` option as expected.
348
+
349
+ - Show `:create_additions` in the default options. It did not appear before.
350
+
351
+ ## 3.6.3 - 2018-06-21
352
+
353
+ - Fixed compat dump compilation error on Windows.
354
+
355
+ ## 3.6.2 - 2018-05-30
356
+
357
+ - Regex encoded correctly for rails when using `to_json`.
358
+
359
+ - ActiveSupport::TimeWithZone optimization fixed.
360
+
361
+ ## 3.6.1 - 2018-05-16
362
+
363
+ - Fixed realloc bug in rails dump.
364
+
365
+ ## 3.6.0 - 2018-05-01
366
+
367
+ - Add optimization for Rails ActiveRecord::Result encoding.
368
+
369
+ ## 3.5.1 - 2018-04-14
370
+
371
+ - Fixed issue with \u0000 terminating keys early.
372
+
373
+ - Add trace for calls to `to_json` and 'as_json`.
374
+
375
+ ## 3.5.0 - 2018-03-04
376
+
377
+ - A trace option is now available in all modes. The format roughly follows the Ruby trace format.
378
+
379
+ ## 3.4.0 - 2018-01-24
380
+
381
+ - Option to ignore specific classes in :object and :custom mode added.
382
+
383
+ ## 3.3.10 - 2017-12-30
384
+
385
+ - Re-activated the bigdecimal_as_decimal option in custom mode and made the selection active for Rails mode.
386
+
387
+ - Fixed bug in optimize_rails that did not optimize all classes as expected.
388
+
389
+ - Fixed warnings for Ruby 2.5.0.
390
+
391
+ ## 3.3.9 - 2017-10-27
392
+
393
+ - Fixed bug where empty strings were sometimes marked as invalid.
394
+
395
+ ## 3.3.8 - 2017-10-04
396
+
397
+ - Fixed Rail mimic precision bug.
398
+
399
+ ## 3.3.7 - 2017-10-02
400
+
401
+ - Handle invalid unicode characters better for single byte strings.
402
+
403
+ - Parsers for empty strings handle errors more consistently.
404
+
405
+ ## 3.3.6 - 2017-09-22
406
+
407
+ - Numerous fixes and cleanup to support Ruby 2.4.2.
408
+
409
+ ## 3.3.5 - 2017-08-11
410
+
411
+ - Fixed a memory error when using rails string encoding of certain unicode characters.
412
+
413
+ ## 3.3.4 - 2017-08-03
414
+
415
+ - Oj::Rails.mimic_JSON now uses Float for JSON.parse for large decimals instead of BigDecimal.
416
+
417
+ ## 3.3.3 - 2017-08-01
418
+
419
+ - Allow nil as a second argument to parse when mimicking the json gem. This is
420
+ a special case where the gem does not raise an exception on a non-Hash
421
+ second argument.
422
+
423
+ ## 3.3.2 - 2017-07-11
424
+
425
+ - Fixed Windows compile issue regarding timegm().
426
+
427
+ ## 3.3.1 - 2017-07-06
428
+
429
+ - Some exceptions such as NoMethodError have an invisible attribute where the
430
+ key name is NULL. Not an empty string but NULL. That is now detected and
431
+ dealt with.
432
+
433
+ ## 3.3.0 - 2017-07-05
434
+
435
+ - Added the :wab mode to support the [WABuR](https://github.com/ohler55/wabur)
436
+ project. The :wab mode only allows the indent option and is faster due to
437
+ not having to check the multitude of options the other modes support.
438
+
439
+ ## 3.2.1 - 2017-07-04
440
+
441
+ - Made json gem NaN dumping more consistent.
442
+
443
+ - Fixed :null mode to not revert to strict mode.
444
+
445
+ ## 3.2.0 - 2017-06-20
446
+
447
+ - A buffer_size option was added to StringWriter and StreamWriter. That option
448
+ also sets the suggested flush limit for StreamWriter.
449
+
450
+ ## 3.1.4 - 2017-06-16
451
+
452
+ - :symbolize_names now works with Oj::Rails.mimic_JSON.
453
+
454
+ ## 3.1.3 - 2017-06-13
455
+
456
+ - JSON.dump used the default mode instead of :compat mode. That has been fixed.
457
+
458
+ - Updated docs on Oj.mimic_JSON to note the :encoding is set to :unicode_xss and not :ascii.
459
+
460
+ ## 3.1.2 - 2017-06-10
461
+
462
+ - StringWriter was passing incorrect arguments to to_json and as_json. Fixed.
463
+
464
+ - StringWriter now accepts the mode option. This means it also defaults to the
465
+ default_options mode instead of the custom mode.
466
+
467
+ - JSON.pretty_generate when in rails mode now loads the JSON::State class correctly.
468
+
469
+ ## 3.1.1 - 2017-06-09
470
+
471
+ - Custom mode now honors the :create_additions option for time.
472
+
473
+ ## 3.1.0 - 2017-06-04
474
+
475
+ - Added Oj::Rails.mimic_JSON which mimics the json gem when used with
476
+ ActiveSupport which monkey patches the same to_json methods does. Basically
477
+ this changes the JSON.parse and other JSON entry points for encoding and
478
+ decoding.
479
+
480
+ - Oj.optimize_rails now calls Oj::Rails.mimic_JSON.
481
+
482
+ ## 3.0.11 - 2017-06-02
483
+
484
+ - If rails in required and Oj.mimic_JSON is called without calling
485
+ Oj.optimize_rails nil.to_json failed. That has been fixed.
486
+
487
+ - Fixed crash on setting create_id to nil after mimic_JSON.
488
+
489
+ ## 3.0.10 - 2017-05-22
490
+
491
+ - Oj.optimize_rails failed to include Hash and Array in the optimization. It does now.
492
+
493
+ ## 3.0.9 - 2017-05-17
494
+
495
+ - Missed catching invalid unicodes beginning with \xE2. Fixed.
496
+
497
+ - In :compat mode a non-string and non IO value is converted to a string with a call to to_s.
498
+
499
+ ## 3.0.8 - 2017-05-16
500
+
501
+ - Float significant digits now match Ruby's unless optimized and then significant digits are set to 16.
502
+
503
+ - Rails Hash post merging of identical keys after calling as_json is preserved only for un-optimized Hashes.
504
+
505
+ - Raise an exception to match json gem behavior on invalid unicode.
506
+
507
+ ## 3.0.7 - 2017-05-10
508
+
509
+ - Changed JSON.pretty_generate options to a State instead of a Hash to get the
510
+ json gen to_json method to accept formatting options.
511
+
512
+ - Added optimization for ActionController::Parameters
513
+
514
+ ## 3.0.6 - 2017-05-07
515
+
516
+ - Added Oj.optimize_rails().
517
+
518
+ - Fixed argument passing bug on calls to to_json().
519
+
520
+ ## 3.0.5 - 2017-05-02
521
+
522
+ - No change in the Oj::Rails.optimize() API but additional classes are now supported.
523
+
524
+ - Added ActiveSupport::TimeWithZone optimization to rails mode.
525
+
526
+ - Added ActiveRecord::Base optimization to rails mode which allows optimization of any class inheriting from ActiveRecord::Base.
527
+
528
+ ## 3.0.4 - 2017-05-01
529
+
530
+ - Fixed compile problem on Windows again.
531
+
532
+ - Fixed issue with TimeWithZone not being encoded correctly when a member of an object.
533
+
534
+ ## 3.0.3 - 2017-04-28
535
+
536
+ - Improved compatibility with a json gem and Rails combination when json adds are used.
537
+
538
+ - Fixed compile problem on Windows.
539
+
540
+ ## 3.0.2 - 2017-04-27
541
+
542
+ - Fixed crash due to unset var with dump to Rails mode.
543
+
544
+ ## 3.0.1 - 2017-04-25
545
+
546
+ - Fixed compile error with help from Dylan Johnson.
547
+
548
+ ## 3.0.0 - 2017-04-24
549
+
550
+ - Major changes focused on json gem and Rails compatibility. A new :custom
551
+ mode was added as well. Starting with this release the json gem tests are
552
+ being used to test the :compat mode and the ActiveSupport 5 tests are being
553
+ used to test the :rails mode.
554
+
555
+ - Please give stereobooster a thank you for getting the tests set up and
556
+ helping out with json gem and Rails understanding. He also has some
557
+ benchmarks of Oj versus other options
558
+ [here](https://github.com/stereobooster/ruby-json-benchmark).
559
+
560
+ ## 2.18.3 - 2017-03-14
561
+
562
+ - Changed to use long doubles for parsing to minimize round off errors. So PI will be accurate to more places for PI day.
563
+
564
+ ## 2.18.2 - 2017-03-01
565
+
566
+ - Strict mode now allows symbol keys in hashes.
567
+
568
+ - Fixed omit_nil bug discovered by ysmazda.
569
+
570
+ ## 2.18.1 - 2017-01-09
571
+
572
+ - Missing argument to dump now raises the correct arg exception and with mimic does not crash on missing argument.
573
+ - Oj::Doc paths can now contain escaped path separators so "a\/b" can match an lement name with a slash in it.
574
+
575
+ ## 2.18.0 - 2016-11-26
576
+
577
+ - Rubinius compilation fixes.
578
+ - Added a separate option for as_json instead of piggy backing on the use_to_json. This changes the API slightly.
579
+ - Ready for Ruby 2.4.
580
+ - Thanks to faucct for fixing mimic to not redefine JSON::ParserError.
581
+
582
+ ## 2.17.5 - 2016-10-19
583
+
584
+ - Added additional code to check for as_json arguments and recursive calls.
585
+
586
+ ## 2.17.4 - 2016-09-04
587
+
588
+ - Added the ascii_only option to JSON.generate when in mimic_JSON mode so that it is consistent with the undocumented feature in the json gem.
589
+
590
+ ## 2.17.3 - 2016-08-16
591
+
592
+ - Updated mimic_JSON to monkey patch OpenStruct, Range, Rational, Regexp, Struct, Symbol, and Time like the JSON gem does. Also added the JSON.create_id accessor.
593
+
594
+ ## 2.17.2 - 2016-08-13
595
+
596
+ - Worked around a problem with DateTime and ActiveSupport that causes a hang when hour, minute, second, and some other methods are called from C.
597
+
598
+ ## 2.17.1 - 2016-07-08
599
+
600
+ - Added an option provide an alternative Hash class for loading.
601
+ - Added the Oj::EasyHash class.
602
+ - Fixed test failures on 32 bit machines.
603
+ - Sped up mimic_JSON.
604
+ - Added an option to omit Hash and Object attributes with nil values.
605
+
606
+ ## 2.16.1 - 2016-06-21
607
+
608
+ - Thanks to hsbt for fixing a compile issue with Ruby 2.4.0-preview1.
609
+
610
+ ## 2.16.0 - 2016-06-19
611
+
612
+ - Added option to allow invalid unicode characters. This is not a suggested option in a majority of the cases.
613
+ - Fixed float parsing for 32 bit systems so that it does not roll over to BigDecimal until more than 15 significant digits.
614
+
615
+ ## 2.15.1 - 2016-05-26
616
+
617
+ - Fixed bug with activerecord when to_json returns an array instead of a string.
618
+
619
+ ## 2.15.0 - 2016-03-28
620
+
621
+ - Fixed bug where encoded strings could be GCed.
622
+ - :nan option added for dumping Infinity, -Infinity, and NaN. This is an edition to the API. The default value for the :non option is :auto which uses the previous NaN handling on dumping of non-object modes.
623
+
624
+ ## 2.14.7 - 2016-03-20
625
+
626
+ - Fixed bug where a comment before another JSON element caused an error. Comments are not part of the spec but this keep support consistent.
627
+
628
+ ## 2.14.6 - 2016-02-26
629
+
630
+ - Changed JSON::ParserError to inherit from JSON::JSONError which inherits from StandardError.
631
+
632
+ ## 2.14.5 - 2016-02-19
633
+
634
+ - Parse errors in mimic mode are not a separate class than Oj.ParseError so the displayed name is JSON::ParserError instead.
635
+
636
+ ## 2.14.4 - 2016-02-04
637
+
638
+ - When not in quirks mode strings are now raise an exception if they are the top level JSON value.
639
+
640
+ ## 2.14.3 - 2015-12-31
641
+
642
+ - Updated to support Ruby 2.3.0.
643
+
644
+ ## 2.14.2 - 2015-12-19
645
+
646
+ - Non-UTF-8 string input is now converted to UTF-8.
647
+
648
+ ## 2.14.1 - 2015-12-15
649
+
650
+ - Fixed bug that reverted to BigDecimal when a decimal had preceding zeros after the decimal point.
651
+
652
+ ## 2.14.0 - 2015-12-04
653
+
654
+ - More tweaking on decimal rounding.
655
+ - Made dump options available in the default options and not only in the mimic generate calls.
656
+
657
+ ## 2.13.1 - 2015-11-16
658
+
659
+ - Thanks to Comboy for the fix to a large number rounding bug.
660
+
661
+ ## 2.13.0 - 2015-10-19
662
+
663
+ - Oj no longer raises an exception if the to_hash method of an object does not return a Hash. ActiveRecord has decided that to_hash should return an Array instead so Oj now encodes what ever is returned.
664
+ - Added a register_odd_raw function that allows odd marshal functions to return raw JSON as a string to be included in the dumped JSON.
665
+ - The register_odd function now supports modules in additions to classes.
666
+
667
+ ## 2.12.14 - 2015-09-14
668
+
669
+ - Change the failure mode for objects that can not be serialized such as a socket. Now in compat mode the to_s of the object is placed in the output instead of raising an exception.
670
+
671
+ ## 2.12.13 - 2015-09-02
672
+
673
+ - Added a check for the second argument to load() is a Hash.
674
+ - Yet another attempt to make floating point numbers display better.
675
+ - Thanks to mkillianey for getting the extconf.rb and gemspec file updated.
676
+
677
+ ## 2.12.12 - 2015-08-09
678
+
679
+ - Thanks to asurin for adding support for arguments to to_json() that rails uses.
680
+
681
+ ## 2.12.11 - 2015-08-02
682
+
683
+ - Oj::ParseError is now thrown instead of SyntaxError when there are multiple JSON documents in a string or file and there is no proc or block associated with the parse call.
684
+
685
+ ## 2.12.10 - 2015-07-12
686
+
687
+ - An exception is now raised if there are multiple JSON documents in a string or file if there is no proc or block associated with the parse call.
688
+
689
+ ## 2.12.9 - 2015-05-30
690
+
691
+ - Fixed failing test when using Rubinius.
692
+ - Changed mimic_JSON to support the global/kernel function JSON even when the json gem is loaded first.
693
+
694
+ ## 2.12.8 - 2015-05-16
695
+
696
+ - mimic_JSON now supports the global/kernel JSON function that will either parse a string argument or dump an array or object argument.
697
+
698
+ ## 2.12.7 - 2015-05-07
699
+
700
+ - Fixed compile error with 32 bit HAS_NANO_TIME extra paren bug.
701
+
702
+ ## 2.12.6 - 2015-05-05
703
+
704
+ - Fixed a number of 32bit related bugs.
705
+
706
+ ## 2.12.5 - 2015-04-27
707
+
708
+ - In :null mode Oj now dumps Infinity and NaN as null.
709
+
710
+ ## 2.12.4 - 2015-04-20
711
+
712
+ - Fixed memory leak in Oj::Doc when not using a given proc.
713
+
714
+ ## 2.12.3 - 2015-04-16
715
+
716
+ - Fixed bug when trying to resolve an invalid class path in object mode load.
717
+
718
+ ## 2.12.2 - 2015-04-13
719
+
720
+ - Fixed Oj::Doc bug that causes a crash on local name lookups.
721
+ - Fixed Oj::Doc unicode parsing.
722
+
723
+ ## 2.12.1 - 2015-03-12
724
+
725
+ - Changed the unix_zone encoded format to be the utc epoch.
726
+
727
+ ## 2.12.0 - 2015-03-06
728
+
729
+ - String formats for UTC time are now explicitly UTC instead of offset of zero. This fixes a problem with pre-2.2.0 Rubies that automatically convert zero offset times to local times.
730
+ - Added :unix_zone time_format option for formatting numeric time. This option is the same as the :unix time option but the UTC offset is included as an exponent to the number time value. A value of 86400 is an indication of UTC time.
731
+
732
+ ## 2.11.5 - 2015-02-25
733
+
734
+ - Fixed issue with rails as_json not being called for Structs.
735
+ - Added support for anonymous Structs with object mode encoding. Note that this will result in a new anonymous Struct for each instance.
736
+
737
+ ## 2.11.4 - 2015-01-20
738
+
739
+ - DateTime second encoding is now always a Rational to preserve accuracy.
740
+ - Fixed buf in the Oj.load() callback feature that caused an endless loop when a StringIO was used with a JSON that was a number.
741
+
742
+ ## 2.11.3 - 2015-01-18
743
+
744
+ - DateTime encoding now includes nanoseconds.
745
+
746
+ ## 2.11.2 - 2015-01-10
747
+
748
+ - Changed the defaults for mimic_JSON to use 16 significant digits instead of the default 15.
749
+ - Fixed bug where a subclass of Array would be serialized as if in object mode instead of compat when in compat mode.
750
+
751
+ ## 2.11.1 - 2014-11-09
752
+
753
+ - Changed the use_to_json option to still allow as_json even when set to false.
754
+
755
+ ## 2.11.0 - 2014-11-02
756
+
757
+ - Restricted strict dump to not dump NaN nor Infinity but instead raise an exception.
758
+ - Changed compat mode so that the :bigdecimal_as_decimal option over-rides the to_json method if the option is true. The default for mimic_JSON is to leave the option off.
759
+ - Added support for Module encoding in compat mode.
760
+ - Added ActiveSupportHelper so that require 'active_support_helper' will added a helper for serializing ActiveSupport::TimeWithZone.
761
+ - Added float_precision option to control the number of digits used for floats when dumping.
762
+
763
+ ## 2.10.4 - 2014-10-22
764
+
765
+ - Fixed Range encoding in compat mode to not use the object mode encoding.
766
+ - Fixed serialization problem with timestamps.
767
+ - Fixed compat parser to accept NaN and Infinity.
768
+
769
+ ## 2.10.3 - 2014-10-04
770
+
771
+ - Using the xmlschema option with :object mode now saves time as a string and preserves the timezone.
772
+ - Rational recursive loop caused by active support fixed.
773
+ - Time in mimic_JSON mode are now the ruby string representation of a date.
774
+
775
+ ## 2.10.2 - 2014-08-20
776
+
777
+ - Fixed string corruption bug due to an uncommented assignment used for debugging.
778
+
779
+ ## 2.10.1 - 2014-08-17
780
+
781
+ - Changed parse argument error to be a Ruby ArgError instead of a general Exception.
782
+
783
+ ## 2.10.0 - 2014-08-03
784
+
785
+ - Using an indent of less than zero will not place newline characters between JSON elements when using the string or stream writer.
786
+ - A new options callback method was added to the Simple Callback Parser. If defined the prepare_key() method will be called when an JSON object ket is first encountered. The return value is then used as the key in the key-value pair.
787
+ - Increased significants digits to 16 from 15. On occasion there may be unexpected round off results. Tou avoid those use the bigdecimal options.
788
+
789
+ ## 2.9.9 - 2014-07-07
790
+
791
+ - Missed a character map entry. / in ascii mode is now output as / and not \/
792
+ - Fixed SC parser to not treat all IO that respond to fileno as a file. It not checks stat and asks if it is a file.
793
+ - Tightened object parsing of non-string hash keys so that just "^#x" is parsed as a hash pair and not "~#x".
794
+ - Using echo to STDIN as an IO input works around the exception raised when asking the IO for it's position (IO.pos).
795
+ - Simple Callback Parser now uses the new stream parser for handling files and IO so that larger files are handled more efficiently and streams are read as data arrives instead of on close.
796
+ - Handles file FIFO pipes correctly now.
797
+
798
+ ## 2.9.8 - 2014-06-25
799
+
800
+ - Changed escaping back to previous release and added a new escape mode.
801
+ - Strict mode and compat mode no longer parse Infinity or NaN as a valid number. Both are valid in object mode still.
802
+
803
+ ## 2.9.7 - 2014-06-24
804
+
805
+ - Changed dump to use raw / and raw \n in output instead of escaping.
806
+ - Changed the writer to always put a new line at the end of a top level JSON object. It makes output easier to view and edit with minimal impact on size.
807
+ - Worked around the file.gets look ahead caching as long as it is not called while parsing (of course).
808
+ - Thanks to lautis for a new parse option. quirks_mode allows Oj to behave quirky like the JSON gem. Actually the JSON gem has it backwards with quirky mode supporting the JSON spec and non-quirky limiting parsing to objects and arrays. Oj stays consistent with the JSON gem to avoid confusion.
809
+ - Fixed problem with sc_parse not terminating the string when loaded from a file.
810
+ - Thanks go to dchelimsky for expanding the code sample for the ScHandler.
811
+
812
+ ## 2.9.6 - 2014-06-15
813
+
814
+ - Fixed bug using StringIO with SCParser.
815
+ - Tightened up JSON mimic to raise an exception if JSON.parse is called on a JSON documents that returns a primitive type.
816
+
817
+ ## 2.9.5 - 2014-06-07
818
+
819
+ - Mimic mode now monkey patches Object like JSON.
820
+ - A big thanks to krasnoukhov for reorganizing test and helping get Oj more rails compatible.
821
+ - Another thanks goes out to lautis for a pull request that provided some optimization and fixed the return exception for an embedded null in a string.
822
+ - Fixed a bug with zip reader streams where EOF was not handled nicely.
823
+
824
+ ## 2.9.4 - 2014-05-28
825
+
826
+ - In mimic mode parse errors now match the JSON::ParserError.
827
+
828
+ ## 2.9.3 - 2014-05-15
829
+
830
+ - Fixed IO read error that showed up in IO objects that return nil instead of raising an EOF error when read is done.
831
+
832
+ ## 2.9.2 - 2014-05-14
833
+
834
+ - Fixed link error with Windows.
835
+
836
+ ## 2.9.1 - 2014-05-14
837
+
838
+ - Fixed mimic load when given a block to evalate. It conflicted with the new load option.
839
+ - Added a true stream that is used when the input argument to load is an IO object such as a stream or file. This is slightly slower for smaller files but allows reading of huge files that will not fit in memory and is more efficient on even larger files that would fit into memory. The load_file() method uses the new stream parser so multiple GB files can be processed without used execessive memory.
840
+
841
+ ## 2.9.0 - 2014-05-01
842
+
843
+ - Added support for detection and handling of String, Array, and Hash subclasses.
844
+ - Oj.load() can now take a block which will be yielded to on every object parsed when used with a file or string with multiple JSON entries.
845
+
846
+ ## 2.8.1 - 2014-04-21
847
+
848
+ - Added additional argument to the register_odd function.
849
+ - Fixed bug that failed to load on some uses of STDIN.
850
+
851
+ ## 2.8.0 - 2014-04-20
852
+
853
+ - Added support for registering special encoding and decoding rules for specific classes. This the ActiveSupport subclass of the String class for safe strings. For an example look at the `test_object.rb` file, `test_odd_string` test.
854
+
855
+ ## 2.7.3 - 2014-04-11
856
+
857
+ - Fixed bug where load and dump of Structs in modules did not work correctly.
858
+
859
+ ## 2.7.2 - 2014-04-06
860
+
861
+ - Added option return nil if nil is provided as input to load.
862
+
863
+ ## 2.7.1 - 2014-03-30
864
+
865
+ - Fixed bug in new push_key which caused duplicate characters.
866
+
867
+ ## 2.7.0 - 2014-03-29
868
+
869
+ - Added the push_key() method to the StringWriter and StreamWriter classes.
870
+
871
+ ## 2.6.1 - 2014-03-21
872
+
873
+ - Set a limit on the maximum nesting depth to 1000. An exception is raised instead of a segfault unless a reduced stack is used which could trigger the segfault due to an out of memory condition.
874
+
875
+ ## 2.6.0 - 2014-03-11
876
+
877
+ - Added the :use_to_json option for Oj.dump(). If this option is set to false the to_json() method on objects will not be called when dumping. This is the default behavior. The reason behind the option and change is to better support Rails and ActiveSupport. Previous works arounds have been removed.
878
+
879
+ ## 2.5.5 - 2014-02-18
880
+
881
+ - Worked around the Rubinius failure to load bigdecimal from a require within the C code.
882
+
883
+ ## 2.5.4 - 2014-01-14
884
+
885
+ - Fixed bug where unterminated JSON did not raise an exception.
886
+
887
+ ## 2.5.3 - 2014-01-03
888
+
889
+ - Added support for blocks with StringWriter.
890
+
891
+ ## 2.5.2 - 2014-01-02
892
+
893
+ - Fixed indent problem with StringWriter so it now indents properly.
894
+
895
+ ## 2.5.1 - 2013-12-18
896
+
897
+ - Added push_json() to the StringWriter and StreamWriter to allow raw JSON to be added to a JSON document being constructed.
898
+
899
+ ## 2.4.3 - 2013-12-16
900
+
901
+ - Made include pthread.h conditional for Windows.
902
+
903
+ ## 2.4.2 - 2013-12-14
904
+
905
+ - Thanks to Patrik Rak for a fix to a buffer short copy when dumping with 0 indent.
906
+
907
+ ## 2.4.1 - 2013-12-10
908
+
909
+ - Fixed Windows version by removing class cache test.
910
+
911
+ ## 2.4.0 - 2013-12-08
912
+
913
+ - Merged in a PR to again allow strings with embedded nulls.
914
+ - Implemented StreamWriter to compliment the StringWriter.
915
+ - Fixed bug in the class cache hash function that showed up with the sparc compiler.
916
+
917
+ ## 2.3.0 - 2013-12-01
918
+
919
+ - JRuby is no longer supported.
920
+ - Thanks to Stefan Kaes the support for structs has been optimized.
921
+ - Better support for Rubinous.
922
+ - Added option to disable GG during parsing.
923
+ - Added StringWriter that allows building a JSON document one element at a time.
924
+
925
+ ## 2.2.3 - 2013-11-19
926
+
927
+ - Fixed struct segfault on load.
928
+ - Added option to force float on load if a decimal number.
929
+
930
+ ## 2.2.2 - 2013-11-17
931
+
932
+ - Added mutex support for Windows.
933
+ - Protected SCP parser for GC.
934
+
935
+ ## 2.2.1 - 2013-11-15
936
+
937
+ - Made all VALUEs in parse volatile to avoid garbage collection while in use.
938
+
939
+ ## 2.2.0 - 2013-11-11
940
+
941
+ - All 1.8.x versions of Ruby now have require 'rational' called.
942
+ - Removed the temporary GC disable and implemented mark strategy instead.
943
+ - Added new character encoding mode to support the Rails 4 escape characters of &, as xss_safe mode. The :encoding option replaces the :ascii_only option.
944
+ - Change parsing of NaN to not use math.h which on older systems does not define NAN.
945
+
946
+ ## 2.1.8 - 2013-10-28
947
+
948
+ - All 1.8.x versions of Ruby now have require 'rational' called.
949
+ - Removed the temporary GC disable and implemented mark strategy instead.
950
+
951
+ ## 2.1.7 - 2013-10-19
952
+
953
+ - Added support for NaN and -NaN to address issue #102. This is not according to the JSON spec but seems to be expected.
954
+ - Added require for rational if the Ruby version is 1.8.7 to address issue #104.
955
+ - Added Rails re-call of Oj.dump in the to_json() method which caused loops with Rational objects to fix issue #108 and #105.
956
+
957
+ ## 2.1.6 - 2013-10-07
958
+
959
+ - Added Oj.to_stream() for dumping JSON to an IO object.
960
+
961
+ ## 2.1.5 - 2013-07-21
962
+
963
+ - Allow exception dumping magic with Windows.
964
+
965
+ ## 2.1.4 - 2013-07-04
966
+
967
+ - Fixed Linux 32 bit rounding bug.
968
+
969
+ ## 2.1.3 - 2013-06-30
970
+
971
+ - Fixed bug that did not deserialize all attributes in an Exception subclass.
972
+ - Added a sample to demonstrate how to write Exception subclasses that will automatically serialize and deserialize.
973
+
974
+ ## 2.1.2 - 2013-06-19
975
+
976
+ - Fixed support for Windows.
977
+
978
+ ## 2.1.1 - 2013-06-17
979
+
980
+ - Fixed off by 1 error in buffer for escaped strings.
981
+
982
+ ## 2.1.0 - 2013-06-16
983
+
984
+ - This version is a major rewrite of the parser. The parser now uses a constant stack size no matter how deeply nested the JSON document is. The parser is also slightly faster for larger documents and 30% faster for object parsing.
985
+ - Oj.strict_load() was renamed to Oj.safe_load() to better represent its functionality. A new Oj.strict_load() is simply Oj.load() with :mode set to :strict.
986
+ - Oj.compat_load() and Oj.object_load() added.
987
+ - A new Simple Callback Parser was added invoked by Oj.sc_parse().
988
+ - Eliminated :max_stack option as it is no longer needed.
989
+ - Handle cleanup after exceptions better.
990
+
991
+ ## 2.0.14 - 2013-05-26
992
+
993
+ - Fixed bug in Oj::Doc.each_leaf that caused an incorrect where path to be created and also added a check for where path maximum length.
994
+ - Updated the documentation to note that invalid JSON documents, which includes an empty string or file, will cause an exception to be raised.
995
+
996
+ ## 2.0.13 - 2013-05-17
997
+
998
+ - Changed dump to put closing array brackets and closing object curlies on the line following the last element if :indent is set to greater than zero.
999
+
1000
+ ## 2.0.12 - 2013-04-28
1001
+
1002
+ - Another fix for mimic.
1003
+ - mimic_JSON now can now be called after loading the json gem. This will replace the json gem methods after loading. This may be more compatible in many cases.
1004
+
1005
+ ## 2.0.11 - 2013-04-23
1006
+
1007
+ - Fixed mimic issue with Debian
1008
+ - Added option to not cache classes when loading. This should be used when classes are dynamically unloaded and the redefined.
1009
+ - Float rounding improved by limiting decimal places to 15 places.
1010
+ - Fixed xml time dumping test.
1011
+
1012
+ ## 2.0.10 - 2013-03-10
1013
+
1014
+ - Tweaked dump calls by reducing preallocation. Speeds are now several times faster for smaller objects.
1015
+ - Fixed Windows compile error with Ruby 2.0.0.
1016
+
1017
+ ## 2.0.9 - 2013-03-04
1018
+
1019
+ - Fixed problem with INFINITY with CentOS and Ruby 2.0.0. There are some header file conflicts so a different INFINITY was used.
1020
+
1021
+ ## 2.0.8 - 2013-03-01
1022
+
1023
+ - Added :bigdecimal_load option that forces all decimals in a JSON string to be read as BigDecimals instead of as Floats. This is useful if precision is important.
1024
+ - Worked around bug in active_support 2.3.x where BigDecimal.as_json() returned self instead of a JSON primitive. Of course that creates a loop and blows the stack. Oj ignores the as_json() for any object that returns itself and instead encodes the object as it sees fit which is usually what is expected.
1025
+ - All tests pass with Ruby 2.0.0-p0. Had to modify Exception encoding slightly.
1026
+
1027
+ ## 2.0.7 - 2013-02-18
1028
+
1029
+ - Fixed bug where undefined classes specified in a JSON document would freeze Ruby instead of raising an exception when the auto_define option was not set. (It seems that Ruby freezes on trying to add variables to nil.)
1030
+
1031
+ ## 2.0.6 - 2013-02-18
1032
+
1033
+ - Worked around an undocumented feature in linux when using make that misreports the stack limits.
1034
+
1035
+ ## 2.0.5 - 2013-02-16
1036
+
1037
+ - DateTimes are now output the same in compat mode for both 1.8.7 and 1.9.3 even though they are implemented differently in each Ruby.
1038
+ - Objects implemented as data structs can now change the encoding by implemented either to_json(), as_json(), or to_hash().
1039
+ - Added an option to allow BigDecimals to be dumped as either a string or as a number. There was no agreement on which was the best or correct so both are possible with the correct option setting.
1040
+
1041
+ ## 2.0.4 - 2013-02-11
1042
+
1043
+ - Fixed bug related to long class names.
1044
+ - Change the default for the auto_define option.
1045
+ - Added Oj.strict_load() method that sets the options to public safe options. This should be safe for loading JSON documents from a public unverified source. It does not eleviate to need for reasonable programming practices of course. See the section on the proper use of Oj in a public exposure.
1046
+
1047
+ ## 2.0.3 - 2013-02-03
1048
+
1049
+ - Fixed round off error in time format when rounding up to the next second.
1050
+
1051
+ ## 2.0.2 - 2013-01-23
1052
+
1053
+ - Fixed bug in Oj.load where loading a hash with symbold keys and also turning on symbolize keys would try to symbolize a symbol.
1054
+
1055
+ ## 2.0.1 - 2013-01-15
1056
+
1057
+ - BigDecimals now dump to a string in compat mode thanks to cgriego.
1058
+ - High precision time (nano time) can be turned off for better compatibility with other JSON parsers.
1059
+ - Times before 1970 now encode correctly.
1060
+
1061
+ ## 2.0.0 - 2012-12-18
1062
+
1063
+ - Thanks to yuki24 Floats are now output with a decimal even if they are an integer value.
1064
+ - The Simple API for JSON (SAJ) API has been added. Read more about it on the Oj::Saj page.
1065
+
1066
+ ## 1.4.7 - 2012-12-09
1067
+
1068
+ - In compat mode non-String keys are converted to Strings instead of raising and error. (issue #52)
1069
+
1070
+ ## 1.4.6 - 2012-12-03
1071
+
1072
+ - Silently ignores BOM on files and Strings.
1073
+ - Now works with JRuby 1.7.0 to the extent possible with the unsupported C extension in JRuby.
1074
+
1075
+ ## 1.4.5 - 2012-11-19
1076
+
1077
+ - Adds the old deprecated methods of unparse(), fast_unparse(), and pretty_unparse() to JSON_mimic.
1078
+
1079
+ ## 1.4.4 - 2012-11-07
1080
+
1081
+ - Fixed bug in mimic that missed mimicking json_pure.
1082
+
1083
+ ## 1.4.3 - 2012-10-19
1084
+
1085
+ - Fixed Exception encoding in Windows version.
1086
+
1087
+ ## 1.4.2 - 2012-10-17
1088
+
1089
+ - Fixed dump and load of BigDecimals in :object mode.
1090
+ - BigDecimals are now dumped and loaded in all modes.
1091
+
1092
+ ## 1.4.1 - 2012-10-17
1093
+
1094
+ - Windows RubyInstaller and TCS-Ruby now supported thanks to Jarmo Pertman. Thanks Jarmo.
1095
+
1096
+ ## 1.4.0 - 2012-10-11
1097
+
1098
+ - Parse errors now raise an Exception that inherites form Oj::Error which inherits from StandardError. Some other Exceptions were changed as well to make it easier to rescue errors.
1099
+
1100
+ ## 1.3.7 - 2012-10-05
1101
+
1102
+ - Added header file for linux builds.
1103
+
1104
+ ## 1.3.6 - 2012-10-04
1105
+
1106
+ - Oj.load() now raises a SystemStackError if a JSON is too deeply nested. The loading is allowed to use on 75% of the stack.
1107
+ - Oj::Doc.open() now raises a SystemStackError if a JSON is too deeply nested. The loading is allowed to use on 75% of the stack. Oj::Doc.open will allow much deeper nesting than Oj.load().
1108
+
1109
+ ## 1.3.5 - 2012-09-25
1110
+
1111
+ - Fixed mimic_JSON so it convinces Ruby that the ALL versions of the json gem are already loaded.
1112
+
1113
+ ## 1.3.4 - 2012-08-12
1114
+
1115
+ - Fixed mimic_JSON so it convinces Ruby that the json gem is already loaded.
1116
+
1117
+ ## 1.3.2 - 2012-07-28
1118
+
1119
+ - Fixed compile problems with native Ruby on OS X 10.8 (Mountain Lion)
1120
+
1121
+ ## 1.3.1 - 2012-07-01
1122
+
1123
+ - Fixed time zone issue with :xmlschema date format.
1124
+
1125
+ ## 1.3.0 - 2012-07-09
1126
+
1127
+ - extconf.rb fixed to not pause on some OSs when checking CentOS special case.
1128
+ - Added an option to control the time format output when in :compat mode.
1129
+
1130
+ ## 1.2.13 - 2012-07-08
1131
+
1132
+ - Fixed double free bug in Oj::Doc that showed up for larger documents.
1133
+
1134
+ ## 1.2.12 - 2012-07-06
1135
+
1136
+ - Fixed GC bug in Oj::Doc, the fast parser.
1137
+ - Serialization of Exceptions in Ruby 1.8.7 now includes message and backtrace.
1138
+
1139
+ ## 1.2.11 - 2012-06-21
1140
+
1141
+ - Added :max_stack option to limit the size of string allocated on the stack.
1142
+
1143
+ ## 1.2.10 - 2012-06-20
1144
+
1145
+ - Added check for circular on loading of circular dumped JSON.
1146
+ - Added support for direct serialization of BigDecimal, Rational, Date, and DateTime.
1147
+ - Added json.rb to $" in mimic mode to avoid pulling in the real JSON by accident.
1148
+ - Oj is now thread safe for all functions.
1149
+ - The / (solidus) character is now placed in strings without being escaped.
1150
+
1151
+ ## 1.2.9 - 2012-05-29
1152
+
1153
+
1154
+ ## 1.2.8 - 2012-05-03
1155
+
1156
+ - Included a contribution by nevans to fix a math.h issue with an old fedora linux machine.
1157
+ - Included a fix to the documentation found by mat.
1158
+
1159
+ ## 1.2.7 - 2012-04-22
1160
+
1161
+ - Fixed bug where a float with too many characters would generate an error. It is not parsed as accuractly as Ruby will support.
1162
+ - Cleaned up documentation errors.
1163
+ - Added support for OS X Ruby 1.8.7.
1164
+
1165
+ ## 1.2.6 - 2012-04-22
1166
+
1167
+ - Cleaned up documentation errors.
1168
+ - Added support for OS X Ruby 1.8.7.
1169
+
1170
+ ## 1.2.5 - 2012-04-18
1171
+
1172
+ - Added support for create_id in Oj and in mimic_JSON mode
1173
+
1174
+ ## 1.2.4 - 2012-04-13
1175
+
1176
+ - Removed all use of math.h to get around CentOS 5.4 compile problem.
1177
+
1178
+ ## 1.2.3 - 2012-04-09
1179
+
1180
+ - Fixed compile error for the latest RBX on Travis.
1181
+
1182
+ ## 1.2.2 - 2012-04-02
1183
+
1184
+ - minor bug fixes for different rubies along with test updates
1185
+ - Oj::Doc will now automatically close on GC.
1186
+
1187
+ ## 1.2.1 - 2012-03-30
1188
+
1189
+ - Organized compile configuration better.
1190
+ - as_json() support now more flexible thanks to a contribution by sauliusg.
1191
+
1192
+ ## 1.2.0 - 2012-03-30
1193
+
1194
+ - Removed the encoding option and fixed a misunderstanding of the string encoding. Unicode code points are now used instead of byte codes. This is not compatible with previous releases but is compliant with RFC4627.
1195
+ - Time encoding in :object mode is faster and higher nanosecond precision.
1196
+
1197
+ ## 1.1.1 - 2012-03-27
1198
+
1199
+ - The encoding option can now be an Encoding Object or a String.
1200
+ - Fixed Rubinius errors.
1201
+
1202
+ ## 1.1.0 - 2012-03-27
1203
+
1204
+ - Errors are not longer raised when comments are encountered in JSON documents.
1205
+ - Oj can now mimic JSON. With some exceptions calling JSON.mimic_JSON will allow all JSON calls to use OJ instead of JSON. This gives a speedup of more than 2x on parsing and 5x for generating over the JSON::Ext module.
1206
+ - Oj::Doc now allows a document to be left open and then closed with the Oj::Doc.close() class.
1207
+ - Changed the default encoding to UTF-8 instead of the Ruby default String encoding.
1208
+
1209
+ ## 1.0.6 - 2012-03-20
1210
+
1211
+ - Gave Oj::Doc a speed increase. It is now 8 times fast than JSON::Ext.
1212
+
1213
+ ## 1.0.5 - 2012-03-17
1214
+
1215
+ - Added :ascii_only options for dumping JSON where all high-bit characters are encoded as escaped sequences.
1216
+
1217
+ ## 1.0.4 - 2012-03-16
1218
+
1219
+ - Fixed bug that did not allow symbols as keys in :compat mode.
1220
+
1221
+ ## 1.0.3 - 2012-03-15
1222
+
1223
+ - Added :symbol_keys option to convert String hash keys into Symbols.
1224
+ - The load() method now supports IO Objects as input as well as Strings.
1225
+
1226
+ ## 1.0.2 - 2012-03-15
1227
+
1228
+ - Added RSTRING_NOT_MODIFIED for Rubinius optimization.
1229
+
1230
+ ## 1.0.1 - 2012-03-15
1231
+
1232
+ - Fixed compatibility problems with Ruby 1.8.7.
1233
+
1234
+ ## 1.0.0 - 2012-03-13
1235
+
1236
+ - The screaming fast Oj::Doc parser added.
1237
+
1238
+ ## 0.9.0 - 2012-03-05
1239
+
1240
+ - Added support for circular references.
1241
+
1242
+ ## 0.8.0 - 2012-02-27
1243
+
1244
+ - Auto creation of data classes when unmarshalling Objects if the Class is not defined
1245
+
1246
+ ## 0.7.0 - 2012-02-26
1247
+
1248
+ - changed the object JSON format
1249
+ - serialized Ruby Objects can now be deserialized
1250
+ - improved performance testing
1251
+
1252
+ ## 0.6.0 - 2012-02-22
1253
+
1254
+ - supports arbitrary Object dumping/serialization
1255
+ - to_hash() method called if the Object responds to to_hash and the result is converted to JSON
1256
+ - to_json() method called if the Object responds to to_json
1257
+ - almost any Object can be dumped, including Exceptions (not including Thread, Mutex and Objects that only make sense within a process)
1258
+ - default options have been added
1259
+
1260
+ ## 0.5.2 - 2012-02-19
1261
+
1262
+ - Release 0.5.2 fixes encoding and float encoding.
1263
+ - This is the first release sith a version of 0.5 indicating it is only half done. Basic load() and dump() is supported for Hash, Array, NilClass, TrueClass, FalseClass, Fixnum, Float, Symbol, and String Objects.
1264
+
1265
+ ## 0.5.1 - 2012-02-19
1266
+
1267
+
1268
+ ## 0.5 - 2012-02-19
1269
+
1270
+ - This is the first release with a version of 0.5 indicating it is only half done. Basic load() and dump() is supported for Hash, Array, NilClass, TrueClass, FalseClass, Fixnum, Float, Symbol, and String Objects.