oj 2.0.1 → 2.0.2

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.

data/README.md CHANGED
@@ -32,6 +32,10 @@ A fast JSON parser and Object marshaller as a Ruby gem.
32
32
 
33
33
  ## <a name="release">Release Notes</a>
34
34
 
35
+ ### Release 2.0.2
36
+
37
+ - Fixed bug in Oj.load where loading a hash with symbold keys and also turning on symbolize keys would try to symbolize a symbol.
38
+
35
39
  ### Release 2.0.1
36
40
 
37
41
  - BigDecimals now dump to a string in compat mode thanks to cgriego.
@@ -536,7 +536,7 @@ read_obj(ParseInfo pi) {
536
536
  rb_ivar_set(obj, var_id, val);
537
537
  #endif
538
538
  } else if (T_HASH == obj_type) {
539
- if (Yes == pi->options->sym_key) {
539
+ if (Yes == pi->options->sym_key && T_STRING == rb_type(key)) {
540
540
  rb_hash_aset(obj, rb_str_intern(key), val);
541
541
  } else {
542
542
  rb_hash_aset(obj, key, val);
@@ -1,5 +1,5 @@
1
1
 
2
2
  module Oj
3
3
  # Current version of the module.
4
- VERSION = '2.0.1'
4
+ VERSION = '2.0.2'
5
5
  end
@@ -0,0 +1 @@
1
+ Oj.load('{":s": 1}', :symbol_keys => true)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oj
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-15 00:00:00.000000000 Z
12
+ date: 2013-01-23 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: ! 'The fastest JSON parser and object serializer. '
15
15
  email: peter@ohler.com
@@ -38,6 +38,7 @@ files:
38
38
  - ext/oj/oj.c
39
39
  - ext/oj/saj.c
40
40
  - test/a.rb
41
+ - test/bug.rb
41
42
  - test/files.rb
42
43
  - test/perf.rb
43
44
  - test/perf1.rb
@@ -96,4 +97,3 @@ signing_key:
96
97
  specification_version: 3
97
98
  summary: A fast JSON parser and serializer.
98
99
  test_files: []
99
- has_rdoc: true