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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ae9a5959e58d7693a350810b42cfc2f48237f9db
4
- data.tar.gz: 71a1069996f76bdbffeb6f32100ae51c420f43ef
3
+ metadata.gz: 168a9b04bcd9b3af98e7d7d8b04058391a900972
4
+ data.tar.gz: 44c13fcd7056ba300761012eb679817c1b0171a4
5
5
  SHA512:
6
- metadata.gz: 3aefcc5d370f348159091358e9728e5fff4e5c7a03bb6500bfd57e1e8f9033f66420a69f1750043e0bc1a3cdecb44e40593cb75aed1021d8799371934b1cea83
7
- data.tar.gz: 04fd575199bdd4d23edf3cc3d473e2b970917728b55598f61cedf2d1d213b33fd8a324d93de7360490d29234b53f79784bdedc4b659612784a1b5bfa96cefb6f
6
+ metadata.gz: 8efc86da94738b1c30eba69fe98d5b83151ed3a6c41d8d9ef5730160f5baf79ee2f4a2a063673f8da051832a8f472bba765d4f6722f4b3048c4986f895888c89
7
+ data.tar.gz: e9ccc9ac57b6fc3e772a7399b89c7aff64b1fefeef280a9a43125409e56c58b3a19b8aabbfa1973a1c2e6e51d6d2ba6cf8ebda6ca3034491760235f4d5b382b8
@@ -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
 
@@ -1,5 +1,5 @@
1
1
 
2
2
  module Oj
3
3
  # Current version of the module.
4
- VERSION = '3.1.3'
4
+ VERSION = '3.1.4'
5
5
  end
@@ -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.pretty_generate({'a'=>1,'b'=>[true,false]})
18
- puts JSON.dump({1=>'a',2=>'b'})
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.3
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-13 00:00:00.000000000 Z
11
+ date: 2017-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake-compiler