oj 1.0.1 → 1.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
@@ -24,9 +24,9 @@ A fast JSON parser and Object marshaller as a Ruby gem.
24
24
 
25
25
  ## <a name="release">Release Notes</a>
26
26
 
27
- ### Release 1.0.1
27
+ ### Release 1.0.2
28
28
 
29
- - Fixed compatibility problems with Ruby 1.8.7.
29
+ - Added RSTRING_NOT_MODIFIED for Rubinius optimization.
30
30
 
31
31
  ## <a name="description">Description</a>
32
32
 
@@ -31,6 +31,8 @@
31
31
  #ifndef __OJ_CACHE_H__
32
32
  #define __OJ_CACHE_H__
33
33
 
34
+ #define RSTRING_NOT_MODIFIED
35
+
34
36
  #include "ruby.h"
35
37
 
36
38
  typedef struct _Cache *Cache;
@@ -34,7 +34,6 @@
34
34
  #include <string.h>
35
35
  #include <stdarg.h>
36
36
 
37
- #include "ruby.h"
38
37
  #include "cache8.h"
39
38
 
40
39
  #define BITS 4
@@ -31,6 +31,8 @@
31
31
  #ifndef __OJ_CACHE8_H__
32
32
  #define __OJ_CACHE8_H__
33
33
 
34
+ #define RSTRING_NOT_MODIFIED
35
+
34
36
  #include "ruby.h"
35
37
 
36
38
  typedef struct _Cache8 *Cache8;
@@ -34,7 +34,6 @@
34
34
  #include <math.h>
35
35
  #include <errno.h>
36
36
 
37
- #include "ruby.h"
38
37
  #include "oj.h"
39
38
 
40
39
  #define MAX_STACK 100
@@ -33,7 +33,6 @@
33
33
  #include <string.h>
34
34
  #include <math.h>
35
35
 
36
- #include "ruby.h"
37
36
  #include "oj.h"
38
37
 
39
38
  enum {
@@ -34,7 +34,6 @@
34
34
  #include <stdio.h>
35
35
  #include <string.h>
36
36
 
37
- #include "ruby.h"
38
37
  #include "oj.h"
39
38
 
40
39
  typedef struct _YesNoOpt {
@@ -38,6 +38,8 @@ extern "C" {
38
38
  #endif
39
39
  #endif
40
40
 
41
+ #define RSTRING_NOT_MODIFIED
42
+
41
43
  #include "ruby.h"
42
44
  #ifdef HAVE_RUBY_ENCODING_H
43
45
  // HAVE_RUBY_ENCODING_H defined for Ruby 1.9
@@ -1,5 +1,5 @@
1
1
 
2
2
  module Oj
3
3
  # Current version of the module.
4
- VERSION = '1.0.1'
4
+ VERSION = '1.0.2'
5
5
  end
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: 1.0.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: