oj 1.4.4 → 1.4.5
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 +2 -2
- data/ext/oj/oj.c +6 -0
- data/lib/oj/version.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -32,9 +32,9 @@ 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 1.4.
|
35
|
+
### Release 1.4.5
|
36
36
|
|
37
|
-
-
|
37
|
+
- Adds the old deprecated methods of unparse(), fast_unparse(), and pretty_unparse() to JSON_mimic.
|
38
38
|
|
39
39
|
## <a name="description">Description</a>
|
40
40
|
|
data/ext/oj/oj.c
CHANGED
@@ -829,9 +829,15 @@ define_mimic_json(VALUE self) {
|
|
829
829
|
rb_define_module_function(mimic, "restore", mimic_load, -1);
|
830
830
|
rb_define_module_function(mimic, "recurse_proc", mimic_recurse_proc, 1);
|
831
831
|
rb_define_module_function(mimic, "[]", mimic_dump_load, -1);
|
832
|
+
|
832
833
|
rb_define_module_function(mimic, "generate", mimic_generate, -1);
|
833
834
|
rb_define_module_function(mimic, "fast_generate", mimic_generate, -1);
|
834
835
|
rb_define_module_function(mimic, "pretty_generate", mimic_pretty_generate, -1);
|
836
|
+
/* for older versions of JSON, the deprecated unparse methods */
|
837
|
+
rb_define_module_function(mimic, "unparse", mimic_generate, -1);
|
838
|
+
rb_define_module_function(mimic, "fast_unparse", mimic_generate, -1);
|
839
|
+
rb_define_module_function(mimic, "pretty_unparse", mimic_pretty_generate, -1);
|
840
|
+
|
835
841
|
rb_define_module_function(mimic, "parse", mimic_parse, -1);
|
836
842
|
rb_define_module_function(mimic, "parse!", mimic_parse, -1);
|
837
843
|
|
data/lib/oj/version.rb
CHANGED
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.4.
|
4
|
+
version: 1.4.5
|
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: 2012-11-
|
12
|
+
date: 2012-11-19 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: ! 'The fastest JSON parser and object serializer. '
|
15
15
|
email: peter@ohler.com
|