oj 2.10.0 → 2.10.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of oj might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +6 -2
- data/ext/oj/reader.c +1 -1
- data/lib/oj/version.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: 0f8482eb646d2eea0781d023d94e10ea29e10936
|
4
|
+
data.tar.gz: 085d5a8ff9fe704c875021496a9a28cdd8c957f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04f67e449e524a7ac7a883ab20e305fe2bd75fed02f85c8a3ca3b16ee7c9ce17df7b23a1133f375d6088621210fca5f55eec01e8764a7a2d8a7cd37977d53f19
|
7
|
+
data.tar.gz: 88a657bdbe9063946d24e0de22447bee76bff728e660d86ccecf81853fe2044e333166e1013343fccb022ed977656d083234d916aed1ea9baa1254ff59c82142
|
data/README.md
CHANGED
@@ -26,7 +26,11 @@ Follow [@peterohler on Twitter](http://twitter.com/#!/peterohler) for announceme
|
|
26
26
|
|
27
27
|
[![Build Status](https://secure.travis-ci.org/ohler55/oj.png?branch=master)](http://travis-ci.org/ohler55/oj)
|
28
28
|
|
29
|
-
### Current Release 2.10.
|
29
|
+
### Current Release 2.10.1
|
30
|
+
|
31
|
+
- Changed parse argument error to be a Ruby ArgError instead of a general Exception.
|
32
|
+
|
33
|
+
### Release 2.10.0
|
30
34
|
|
31
35
|
- Using an indent of less than zero will not place newline characters between
|
32
36
|
JSON elements when using the string or stream writer.
|
@@ -71,7 +75,7 @@ is the `:object` mode.
|
|
71
75
|
|
72
76
|
To change default serialization mode:
|
73
77
|
```ruby
|
74
|
-
Oj.default_options
|
78
|
+
Oj.default_options = {:mode => :compat }
|
75
79
|
```
|
76
80
|
|
77
81
|
## Compatibility
|
data/ext/oj/reader.c
CHANGED
@@ -101,7 +101,7 @@ oj_reader_init(Reader reader, VALUE io, int fd) {
|
|
101
101
|
reader->read_func = read_from_io;
|
102
102
|
reader->io = io;
|
103
103
|
} else {
|
104
|
-
rb_raise(
|
104
|
+
rb_raise(rb_eArgError, "parser io argument must be a String or respond to readpartial() or read().\n");
|
105
105
|
}
|
106
106
|
}
|
107
107
|
|
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: 2.10.
|
4
|
+
version: 2.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Ohler
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
11
|
+
date: 2014-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake-compiler
|