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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0a5afd2bda72fb22d683e9a6ed9f3064b423e8fa
4
- data.tar.gz: b15ae64080dedd08f70ae05fc9dcaff5212ae3c0
3
+ metadata.gz: 0f8482eb646d2eea0781d023d94e10ea29e10936
4
+ data.tar.gz: 085d5a8ff9fe704c875021496a9a28cdd8c957f0
5
5
  SHA512:
6
- metadata.gz: bbb37aa63c547484e68159b90896357b02af944abefbf391f4cafedf67baddc213f8592f9907be7c59a267008d43c8a3166ccc066ab60f68704daa854c183e0a
7
- data.tar.gz: 9a4833e9d76eb017c5cf7b34c7a28c48c8e7d673c18a4df6839100102099558329e2bbe5173cf02955ab98ddcd049187c692bc49c7a24326df2a72cbf065bba4
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.0
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[:mode] = :compat
78
+ Oj.default_options = {:mode => :compat }
75
79
  ```
76
80
 
77
81
  ## Compatibility
@@ -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(rb_eException, "parser io argument must respond to readpartial() or read().\n");
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
 
@@ -1,5 +1,5 @@
1
1
 
2
2
  module Oj
3
3
  # Current version of the module.
4
- VERSION = '2.10.0'
4
+ VERSION = '2.10.1'
5
5
  end
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.0
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-03 00:00:00.000000000 Z
11
+ date: 2014-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake-compiler