oj 3.0.9 → 3.0.10
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/ext/oj/rails.c +4 -0
- data/lib/oj/version.rb +1 -1
- data/test/activesupport5/encoding_test.rb +1 -1
- 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: 480e8d68bf5d70f51afeaaf27513e75d5c035b22
|
4
|
+
data.tar.gz: 4325e7d94beb26b75cadf14b5f167df78bdd1e5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c48a73e6ee72bfea2be0744705d81114089455f6eb822f575daa60a3b58346aa194eb051ab744c34fc4a4555d2f768334db8de7dcc4a12118afb41e622e2fe78
|
7
|
+
data.tar.gz: c6dd31f00e395990f84c19a0d71b5c1ac07d822b24efd772d74e484dc2bd0f045dcee1f44ca251b60fdc938cfa99c7bde0617c06d303acaa2b67f0ec974ff4ac
|
data/ext/oj/rails.c
CHANGED
@@ -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
|
}
|
data/lib/oj/version.rb
CHANGED
@@ -8,7 +8,7 @@ require 'activesupport5/encoding_test_cases'
|
|
8
8
|
|
9
9
|
require 'oj'
|
10
10
|
|
11
|
-
# Sets the ActiveSupport
|
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.
|
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-
|
11
|
+
date: 2017-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake-compiler
|