oj 3.0.9 → 3.0.10

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: 12393f7e80f652ce9474b8ef98704a943a3dbb7e
4
- data.tar.gz: 97f4f982b38b117b27736018df3050ea40da2388
3
+ metadata.gz: 480e8d68bf5d70f51afeaaf27513e75d5c035b22
4
+ data.tar.gz: 4325e7d94beb26b75cadf14b5f167df78bdd1e5a
5
5
  SHA512:
6
- metadata.gz: 981d90bd2dd8bf6e6f1d5893d0bb25ba1429fe4399c9ea1b3574a6b2d137dc0be411c4a645fc387381e305e6e5b4daad9ae4e73b4aa896090ab79ceb790b9fd9
7
- data.tar.gz: 4db2afa9967ce0a6ff2bd35392b377f156d06d5f4faea907ec750265f6f9ddb3336c8caf47165cfb3954290cea6629c890d58c5276149fb946b359f79987ceca
6
+ metadata.gz: c48a73e6ee72bfea2be0744705d81114089455f6eb822f575daa60a3b58346aa194eb051ab744c34fc4a4555d2f768334db8de7dcc4a12118afb41e622e2fe78
7
+ data.tar.gz: c6dd31f00e395990f84c19a0d71b5c1ac07d822b24efd772d74e484dc2bd0f045dcee1f44ca251b60fdc938cfa99c7bde0617c06d303acaa2b67f0ec974ff4ac
@@ -475,6 +475,10 @@ optimize(int argc, VALUE *argv, ROptTable rot, bool on) {
475
475
  if (0 == argc) {
476
476
  int i;
477
477
 
478
+ oj_rails_hash_opt = on;
479
+ oj_rails_array_opt = on;
480
+ oj_rails_float_opt = on;
481
+
478
482
  for (i = 0; i < rot->len; i++) {
479
483
  rot->table[i].on = on;
480
484
  }
@@ -1,5 +1,5 @@
1
1
 
2
2
  module Oj
3
3
  # Current version of the module.
4
- VERSION = '3.0.9'
4
+ VERSION = '3.0.10'
5
5
  end
@@ -8,7 +8,7 @@ require 'activesupport5/encoding_test_cases'
8
8
 
9
9
  require 'oj'
10
10
 
11
- # Sets the ActiveSupport emcoder to be Oj and also wraps the setting of
11
+ # Sets the ActiveSupport encoder to be Oj and also wraps the setting of
12
12
  # globals.
13
13
  Oj::Rails.set_encoder()
14
14
  Oj::Rails.optimize(Hash, Array, BigDecimal, Time, Range, Regexp, ActiveSupport::TimeWithZone)
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.0.9
4
+ version: 3.0.10
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-05-18 00:00:00.000000000 Z
11
+ date: 2017-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake-compiler