oj 3.1.3 → 3.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/oj/mimic_json.c +2 -2
- data/lib/oj/version.rb +1 -1
- data/test/bug.rb +2 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 168a9b04bcd9b3af98e7d7d8b04058391a900972
|
4
|
+
data.tar.gz: 44c13fcd7056ba300761012eb679817c1b0171a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8efc86da94738b1c30eba69fe98d5b83151ed3a6c41d8d9ef5730160f5baf79ee2f4a2a063673f8da051832a8f472bba765d4f6722f4b3048c4986f895888c89
|
7
|
+
data.tar.gz: e9ccc9ac57b6fc3e772a7399b89c7aff64b1fefeef280a9a43125409e56c58b3a19b8aabbfa1973a1c2e6e51d6d2ba6cf8ebda6ca3034491760235f4d5b382b8
|
data/ext/oj/mimic_json.c
CHANGED
@@ -816,6 +816,8 @@ oj_mimic_json_methods(VALUE json) {
|
|
816
816
|
}
|
817
817
|
// Pull in the JSON::State mimic file.
|
818
818
|
state_class = rb_const_get_at(generator, rb_intern("State"));
|
819
|
+
|
820
|
+
symbolize_names_sym = ID2SYM(rb_intern("symbolize_names")); rb_gc_register_address(&symbolize_names_sym);
|
819
821
|
}
|
820
822
|
|
821
823
|
/* Document-module: JSON
|
@@ -859,8 +861,6 @@ oj_define_mimic_json(int argc, VALUE *argv, VALUE self) {
|
|
859
861
|
|
860
862
|
rb_gv_set("$VERBOSE", verbose);
|
861
863
|
|
862
|
-
symbolize_names_sym = ID2SYM(rb_intern("symbolize_names")); rb_gc_register_address(&symbolize_names_sym);
|
863
|
-
|
864
864
|
oj_default_options = mimic_object_to_json_options;
|
865
865
|
oj_default_options.to_json = Yes;
|
866
866
|
|
data/lib/oj/version.rb
CHANGED
data/test/bug.rb
CHANGED
@@ -9,11 +9,8 @@ require 'rails'
|
|
9
9
|
require 'active_support/json'
|
10
10
|
require 'oj'
|
11
11
|
|
12
|
-
puts Oj.default_options[:mode]
|
13
|
-
puts Oj.dump({1=>'a',2=>'b'})
|
14
|
-
|
15
12
|
Oj.optimize_rails
|
16
13
|
|
17
|
-
puts JSON.
|
18
|
-
|
14
|
+
puts JSON.parse('{"a":1}', symbolize_names: true)
|
15
|
+
|
19
16
|
|
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.1.
|
4
|
+
version: 3.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Ohler
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-06-
|
11
|
+
date: 2017-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake-compiler
|