oj 2.12.7 → 2.12.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -2
  3. data/ext/oj/oj.c +1 -0
  4. data/lib/oj/version.rb +1 -1
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 15538c1d495bbdd9e77ce6d9ba88c2065964d6b7
4
- data.tar.gz: fb757de05ecbcf3418c332145ec499a365a5c303
3
+ metadata.gz: 211f8618f0580f088dc0d3726d8bd16c8441376c
4
+ data.tar.gz: 3083392af9c79d40c3ad31630499bd635eac9403
5
5
  SHA512:
6
- metadata.gz: 8c80ff5c0f7b1bbd26ceab79a4b249c8b1aca756f4b35105c12580cae9c5d05e88bed1fb99acbfa52ed22aaf3e5c6d57026c62ad224f660d3337f2acb3cdc080
7
- data.tar.gz: 59e6e10c84b91e8310e35ff8a8c3b54149dc63dbfe4f1b35c5189794966ff4bc96a82186c47a6f4249d9ccb57c8946dd75a7763a28c26abe6d0b989e0dc02c84
6
+ metadata.gz: fad430685dd17c59116ab48c83c859220414c82ea88e8d9e08c843fa7e5bb454cb3b34c2e3e4a4ad853a8bdbaffaae4a4cfb1700d6a1c572ab4d3f72e0498ce2
7
+ data.tar.gz: 534fc7da1361141266dbda73621c0524068c73b584803e4d26265a16b096489ee52d96a657f04854f71f74ef86a831707eb53b3d59aaf0cbad9e305f2bd31d97
data/README.md CHANGED
@@ -26,9 +26,10 @@ 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
- ## Release 2.12.7
29
+ ## Release 2.12.8
30
30
 
31
- - Fixed compile error with 32 bit HAS_NANO_TIME extra paren bug.
31
+ - mimic_JSON now supports the global/kernel JSON function that will either
32
+ parse a string argument or dump an array or object argument.
32
33
 
33
34
  [Older release notes](http://www.ohler.com/dev/oj_misc/release_notes.html).
34
35
 
@@ -1859,6 +1859,7 @@ define_mimic_json(int argc, VALUE *argv, VALUE self) {
1859
1859
  mimic = rb_const_get_at(rb_cObject, rb_intern("JSON"));
1860
1860
  } else {
1861
1861
  mimic = rb_define_module("JSON");
1862
+ rb_define_module_function(rb_cObject, "JSON", mimic_dump_load, -1);
1862
1863
  }
1863
1864
  if (rb_const_defined_at(mimic, rb_intern("Ext"))) {
1864
1865
  ext = rb_const_get_at(mimic, rb_intern("Ext"));
@@ -1,5 +1,5 @@
1
1
 
2
2
  module Oj
3
3
  # Current version of the module.
4
- VERSION = '2.12.7'
4
+ VERSION = '2.12.8'
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.12.7
4
+ version: 2.12.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Ohler
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-07 00:00:00.000000000 Z
11
+ date: 2015-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake-compiler