oj 3.10.1 → 3.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/ext/oj/buf.h +2 -30
- data/ext/oj/cache8.h +1 -29
- data/ext/oj/circarray.c +4 -8
- data/ext/oj/circarray.h +1 -4
- data/ext/oj/code.c +3 -6
- data/ext/oj/code.h +1 -4
- data/ext/oj/compat.c +1 -4
- data/ext/oj/custom.c +2 -5
- data/ext/oj/dump.c +24 -14
- data/ext/oj/dump.h +1 -4
- data/ext/oj/dump_compat.c +1 -4
- data/ext/oj/dump_leaf.c +2 -5
- data/ext/oj/dump_object.c +2 -5
- data/ext/oj/dump_strict.c +1 -4
- data/ext/oj/encode.h +1 -29
- data/ext/oj/err.c +1 -4
- data/ext/oj/err.h +1 -29
- data/ext/oj/fast.c +14 -42
- data/ext/oj/hash.c +4 -32
- data/ext/oj/hash.h +1 -29
- data/ext/oj/hash_test.c +1 -29
- data/ext/oj/mimic_json.c +9 -8
- data/ext/oj/object.c +4 -6
- data/ext/oj/odd.c +1 -4
- data/ext/oj/odd.h +1 -4
- data/ext/oj/oj.c +43 -10
- data/ext/oj/oj.h +6 -5
- data/ext/oj/parse.c +124 -49
- data/ext/oj/parse.h +3 -5
- data/ext/oj/rails.c +1 -5
- data/ext/oj/rails.h +1 -4
- data/ext/oj/reader.c +5 -8
- data/ext/oj/reader.h +2 -5
- data/ext/oj/resolve.c +1 -4
- data/ext/oj/resolve.h +1 -4
- data/ext/oj/rxclass.c +3 -6
- data/ext/oj/rxclass.h +1 -4
- data/ext/oj/saj.c +6 -9
- data/ext/oj/scp.c +1 -4
- data/ext/oj/sparse.c +56 -27
- data/ext/oj/stream_writer.c +4 -9
- data/ext/oj/strict.c +3 -6
- data/ext/oj/string_writer.c +1 -4
- data/ext/oj/trace.c +5 -8
- data/ext/oj/trace.h +1 -4
- data/ext/oj/util.c +1 -1
- data/ext/oj/util.h +1 -1
- data/ext/oj/val_stack.c +1 -29
- data/ext/oj/val_stack.h +1 -29
- data/ext/oj/wab.c +1 -4
- data/lib/oj/mimic.rb +45 -1
- data/lib/oj/version.rb +1 -1
- data/lib/oj.rb +0 -8
- data/pages/Modes.md +1 -0
- data/pages/Options.md +23 -11
- data/pages/Rails.md +39 -0
- data/test/bar.rb +21 -8
- data/test/helper.rb +10 -0
- data/test/json_gem/json_common_interface_test.rb +8 -3
- data/test/json_gem/json_generator_test.rb +15 -3
- data/test/json_gem/test_helper.rb +8 -0
- data/test/prec.rb +23 -0
- data/test/sample_json.rb +1 -1
- data/test/test_compat.rb +16 -3
- data/test/test_custom.rb +11 -0
- data/test/test_object.rb +8 -0
- data/test/test_rails.rb +9 -0
- data/test/test_various.rb +2 -2
- metadata +87 -85
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oj
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.11.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Ohler
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake-compiler
|
@@ -79,16 +79,16 @@ extensions:
|
|
79
79
|
- ext/oj/extconf.rb
|
80
80
|
extra_rdoc_files:
|
81
81
|
- README.md
|
82
|
-
- pages/Rails.md
|
83
|
-
- pages/JsonGem.md
|
84
|
-
- pages/Encoding.md
|
85
|
-
- pages/WAB.md
|
86
|
-
- pages/Custom.md
|
87
82
|
- pages/Advanced.md
|
88
|
-
- pages/Options.md
|
89
83
|
- pages/Compatibility.md
|
84
|
+
- pages/Custom.md
|
85
|
+
- pages/Encoding.md
|
86
|
+
- pages/JsonGem.md
|
90
87
|
- pages/Modes.md
|
88
|
+
- pages/Options.md
|
89
|
+
- pages/Rails.md
|
91
90
|
- pages/Security.md
|
91
|
+
- pages/WAB.md
|
92
92
|
files:
|
93
93
|
- LICENSE
|
94
94
|
- README.md
|
@@ -219,6 +219,7 @@ files:
|
|
219
219
|
- test/perf_simple.rb
|
220
220
|
- test/perf_strict.rb
|
221
221
|
- test/perf_wab.rb
|
222
|
+
- test/prec.rb
|
222
223
|
- test/sample.rb
|
223
224
|
- test/sample/change.rb
|
224
225
|
- test/sample/dir.rb
|
@@ -264,7 +265,7 @@ metadata:
|
|
264
265
|
homepage_uri: http://www.ohler.com/oj/
|
265
266
|
source_code_uri: https://github.com/ohler55/oj
|
266
267
|
wiki_uri: https://github.com/ohler55/oj/wiki
|
267
|
-
post_install_message:
|
268
|
+
post_install_message:
|
268
269
|
rdoc_options:
|
269
270
|
- "--title"
|
270
271
|
- Oj
|
@@ -276,104 +277,105 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
276
277
|
requirements:
|
277
278
|
- - ">="
|
278
279
|
- !ruby/object:Gem::Version
|
279
|
-
version: '2.
|
280
|
+
version: '2.4'
|
280
281
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
281
282
|
requirements:
|
282
283
|
- - ">="
|
283
284
|
- !ruby/object:Gem::Version
|
284
285
|
version: '0'
|
285
286
|
requirements: []
|
286
|
-
rubygems_version: 3.
|
287
|
-
signing_key:
|
287
|
+
rubygems_version: 3.2.3
|
288
|
+
signing_key:
|
288
289
|
specification_version: 4
|
289
290
|
summary: A fast JSON parser and serializer.
|
290
291
|
test_files:
|
292
|
+
- test/_test_active.rb
|
293
|
+
- test/_test_active_mimic.rb
|
294
|
+
- test/_test_mimic_rails.rb
|
295
|
+
- test/activerecord/result_test.rb
|
296
|
+
- test/activesupport4/decoding_test.rb
|
297
|
+
- test/activesupport4/encoding_test.rb
|
298
|
+
- test/activesupport4/test_helper.rb
|
299
|
+
- test/activesupport5/abstract_unit.rb
|
300
|
+
- test/activesupport5/decoding_test.rb
|
301
|
+
- test/activesupport5/encoding_test.rb
|
302
|
+
- test/activesupport5/encoding_test_cases.rb
|
303
|
+
- test/activesupport5/test_helper.rb
|
304
|
+
- test/activesupport5/time_zone_test_helpers.rb
|
305
|
+
- test/activesupport6/abstract_unit.rb
|
306
|
+
- test/activesupport6/decoding_test.rb
|
307
|
+
- test/activesupport6/encoding_test.rb
|
308
|
+
- test/activesupport6/encoding_test_cases.rb
|
309
|
+
- test/activesupport6/test_common.rb
|
310
|
+
- test/activesupport6/test_helper.rb
|
311
|
+
- test/activesupport6/time_zone_test_helpers.rb
|
312
|
+
- test/bar.rb
|
313
|
+
- test/baz.rb
|
314
|
+
- test/files.rb
|
291
315
|
- test/foo.rb
|
292
|
-
- test/test_integer_range.rb
|
293
|
-
- test/test_strict.rb
|
294
|
-
- test/perf_strict.rb
|
295
|
-
- test/tests.rb
|
296
|
-
- test/perf_saj.rb
|
297
|
-
- test/test_compat.rb
|
298
316
|
- test/helper.rb
|
299
|
-
- test/
|
300
|
-
- test/
|
301
|
-
- test/
|
302
|
-
- test/
|
317
|
+
- test/isolated/shared.rb
|
318
|
+
- test/isolated/test_mimic_after.rb
|
319
|
+
- test/isolated/test_mimic_alone.rb
|
320
|
+
- test/isolated/test_mimic_as_json.rb
|
321
|
+
- test/isolated/test_mimic_before.rb
|
322
|
+
- test/isolated/test_mimic_define.rb
|
323
|
+
- test/isolated/test_mimic_rails_after.rb
|
324
|
+
- test/isolated/test_mimic_rails_before.rb
|
325
|
+
- test/isolated/test_mimic_redefine.rb
|
303
326
|
- test/json_gem/json_addition_test.rb
|
304
|
-
- test/json_gem/
|
327
|
+
- test/json_gem/json_common_interface_test.rb
|
328
|
+
- test/json_gem/json_encoding_test.rb
|
305
329
|
- test/json_gem/json_ext_parser_test.rb
|
306
|
-
- test/json_gem/
|
307
|
-
- test/json_gem/json_generic_object_test.rb
|
330
|
+
- test/json_gem/json_fixtures_test.rb
|
308
331
|
- test/json_gem/json_generator_test.rb
|
309
|
-
- test/json_gem/
|
310
|
-
- test/json_gem/json_encoding_test.rb
|
332
|
+
- test/json_gem/json_generic_object_test.rb
|
311
333
|
- test/json_gem/json_parser_test.rb
|
312
|
-
- test/
|
313
|
-
- test/
|
314
|
-
- test/
|
315
|
-
- test/
|
334
|
+
- test/json_gem/json_string_matching_test.rb
|
335
|
+
- test/json_gem/test_helper.rb
|
336
|
+
- test/perf.rb
|
337
|
+
- test/perf_compat.rb
|
338
|
+
- test/perf_fast.rb
|
339
|
+
- test/perf_file.rb
|
316
340
|
- test/perf_object.rb
|
317
|
-
- test/
|
318
|
-
- test/test_custom.rb
|
319
|
-
- test/bar.rb
|
320
|
-
- test/activesupport4/encoding_test.rb
|
321
|
-
- test/activesupport4/test_helper.rb
|
322
|
-
- test/activesupport4/decoding_test.rb
|
323
|
-
- test/sample_json.rb
|
324
|
-
- test/activesupport5/encoding_test_cases.rb
|
325
|
-
- test/activesupport5/encoding_test.rb
|
326
|
-
- test/activesupport5/abstract_unit.rb
|
327
|
-
- test/activesupport5/time_zone_test_helpers.rb
|
328
|
-
- test/activesupport5/test_helper.rb
|
329
|
-
- test/activesupport5/decoding_test.rb
|
330
|
-
- test/test_saj.rb
|
341
|
+
- test/perf_saj.rb
|
331
342
|
- test/perf_scp.rb
|
332
|
-
- test/
|
333
|
-
- test/
|
334
|
-
- test/
|
335
|
-
- test/
|
336
|
-
- test/test_fast.rb
|
337
|
-
- test/perf_fast.rb
|
343
|
+
- test/perf_simple.rb
|
344
|
+
- test/perf_strict.rb
|
345
|
+
- test/perf_wab.rb
|
346
|
+
- test/prec.rb
|
338
347
|
- test/sample/change.rb
|
339
|
-
- test/sample/
|
348
|
+
- test/sample/dir.rb
|
340
349
|
- test/sample/doc.rb
|
341
|
-
- test/sample/shape.rb
|
342
|
-
- test/sample/layer.rb
|
343
|
-
- test/sample/group.rb
|
344
350
|
- test/sample/file.rb
|
345
|
-
- test/sample/
|
351
|
+
- test/sample/group.rb
|
346
352
|
- test/sample/hasprops.rb
|
353
|
+
- test/sample/layer.rb
|
347
354
|
- test/sample/line.rb
|
348
|
-
- test/sample/dir.rb
|
349
355
|
- test/sample/oval.rb
|
350
|
-
- test/
|
351
|
-
- test/
|
352
|
-
- test/
|
353
|
-
- test/
|
354
|
-
- test/
|
355
|
-
- test/
|
356
|
-
- test/
|
357
|
-
- test/test_writer.rb
|
358
|
-
- test/test_rails.rb
|
359
|
-
- test/perf.rb
|
360
|
-
- test/isolated/test_mimic_define.rb
|
361
|
-
- test/isolated/test_mimic_after.rb
|
362
|
-
- test/isolated/test_mimic_rails_after.rb
|
363
|
-
- test/isolated/test_mimic_before.rb
|
364
|
-
- test/isolated/test_mimic_rails_before.rb
|
365
|
-
- test/isolated/test_mimic_redefine.rb
|
366
|
-
- test/isolated/shared.rb
|
367
|
-
- test/isolated/test_mimic_alone.rb
|
368
|
-
- test/isolated/test_mimic_as_json.rb
|
356
|
+
- test/sample/rect.rb
|
357
|
+
- test/sample/shape.rb
|
358
|
+
- test/sample/text.rb
|
359
|
+
- test/sample.rb
|
360
|
+
- test/sample_json.rb
|
361
|
+
- test/test_compat.rb
|
362
|
+
- test/test_custom.rb
|
369
363
|
- test/test_debian.rb
|
364
|
+
- test/test_fast.rb
|
365
|
+
- test/test_file.rb
|
370
366
|
- test/test_gc.rb
|
371
|
-
- test/
|
367
|
+
- test/test_hash.rb
|
368
|
+
- test/test_integer_range.rb
|
369
|
+
- test/test_null.rb
|
370
|
+
- test/test_object.rb
|
371
|
+
- test/test_rails.rb
|
372
|
+
- test/test_saj.rb
|
373
|
+
- test/test_scp.rb
|
374
|
+
- test/test_strict.rb
|
372
375
|
- test/test_various.rb
|
373
|
-
- test/
|
374
|
-
- test/
|
375
|
-
- test/
|
376
|
-
- test/
|
377
|
-
- test/
|
378
|
-
- test/
|
379
|
-
- test/activesupport6/decoding_test.rb
|
376
|
+
- test/test_wab.rb
|
377
|
+
- test/test_writer.rb
|
378
|
+
- test/tests.rb
|
379
|
+
- test/tests_mimic.rb
|
380
|
+
- test/tests_mimic_addition.rb
|
381
|
+
- test/zoo.rb
|