oj 3.13.6 → 3.13.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/RELEASE_NOTES.md +6 -0
- data/ext/oj/mimic_json.c +4 -5
- data/lib/oj/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44e493d06f06095e80eb1af563739efca81076a8d3cfd89d02e537ada1f00a60
|
4
|
+
data.tar.gz: 9502a2285781a49c8a2cec4937bb92c1b04a4c95e44b8f34fdd9a6295f0f69f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa5e096b0ec018cc964c98e108967e766454d48bbfbd7a0ec55fc86aa2e4cac1d54f2b069613823d183df128ed836c95b2b3851793243985b531bbe41b045132
|
7
|
+
data.tar.gz: 22a9ded2a0442a64f4ac91e3fc5b1d0be86ea6c53dd857039a92ef515a74b6e348b3587899df5e4a78550ec8e1c4c7c06986a0b8912ef90a419e6c8ac2f65450
|
data/CHANGELOG.md
CHANGED
data/RELEASE_NOTES.md
CHANGED
@@ -5,6 +5,12 @@ see the See [{file:CHANGELOG.md}](CHANGELOG.md) file. In this file are
|
|
5
5
|
the steps to take to aid in keeping things rolling after updating to
|
6
6
|
the latest version.
|
7
7
|
|
8
|
+
## 3.13.7
|
9
|
+
|
10
|
+
The default for JSON when mimicked by Oj is now to set
|
11
|
+
`:allow_invalid_unicode`. To change that behavior JSON.load, set that
|
12
|
+
option to false.
|
13
|
+
|
8
14
|
## 3.13.x
|
9
15
|
|
10
16
|
This release included a new cache that performs better than the
|
data/ext/oj/mimic_json.c
CHANGED
@@ -516,7 +516,7 @@ static VALUE mimic_parse_core(int argc, VALUE *argv, VALUE self, bool bang) {
|
|
516
516
|
pi.options = oj_default_options;
|
517
517
|
pi.options.auto_define = No;
|
518
518
|
pi.options.quirks_mode = Yes;
|
519
|
-
pi.options.allow_invalid =
|
519
|
+
pi.options.allow_invalid = Yes;
|
520
520
|
pi.options.empty_string = No;
|
521
521
|
pi.options.create_ok = No;
|
522
522
|
pi.options.allow_nan = (bang ? Yes : No);
|
@@ -573,8 +573,7 @@ static VALUE mimic_parse_core(int argc, VALUE *argv, VALUE self, bool bang) {
|
|
573
573
|
}
|
574
574
|
}
|
575
575
|
if (oj_hash_has_key(ropts, oj_decimal_class_sym)) {
|
576
|
-
pi.options.compat_bigdec = (oj_bigdecimal_class ==
|
577
|
-
rb_hash_lookup(ropts, oj_decimal_class_sym));
|
576
|
+
pi.options.compat_bigdec = (oj_bigdecimal_class == rb_hash_lookup(ropts, oj_decimal_class_sym));
|
578
577
|
}
|
579
578
|
v = rb_hash_lookup(ropts, oj_max_nesting_sym);
|
580
579
|
if (Qtrue == v) {
|
@@ -682,7 +681,7 @@ static VALUE mimic_set_create_id(VALUE self, VALUE id) {
|
|
682
681
|
*/
|
683
682
|
static VALUE mimic_create_id(VALUE self) {
|
684
683
|
if (NULL != oj_default_options.create_id) {
|
685
|
-
return
|
684
|
+
return rb_utf8_str_new(oj_default_options.create_id, oj_default_options.create_id_len);
|
686
685
|
}
|
687
686
|
return rb_str_new_cstr(oj_json_class);
|
688
687
|
}
|
@@ -706,7 +705,7 @@ static struct _options mimic_object_to_json_options = {0, // indent
|
|
706
705
|
No, // empty_string
|
707
706
|
Yes, // allow_gc
|
708
707
|
Yes, // quirks_mode
|
709
|
-
|
708
|
+
Yes, // allow_invalid
|
710
709
|
No, // create_ok
|
711
710
|
No, // allow_nan
|
712
711
|
No, // trace
|
data/lib/oj/version.rb
CHANGED
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.13.
|
4
|
+
version: 3.13.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Ohler
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-09-
|
11
|
+
date: 2021-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake-compiler
|