oj 3.10.5 → 3.10.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/oj/dump_object.c +1 -1
- data/ext/oj/oj.c +5 -5
- data/lib/oj/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6c2164398794345431cbf21fe2598c7a68498dc21a49868103f9227470c5cdc
|
4
|
+
data.tar.gz: 81ddcee2018723c2ca4a9c668d78043d60647a83ab99057cdce3bd92ebad56fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 546bcdf0ee93a8b170970ac0a9e26497ee4b903f606f1fc2640e77093765ea9d63d58501c4472fb742d810ac1adddbb31caaaa19b2cf984af1b0345b529a4aa3
|
7
|
+
data.tar.gz: 51745a18bc008d4ba5bac4a459ec2231997998efdf56de1e56b3bdd2b5e972733ed12a43be7ff10f54827825ae7e9a5c3532629c044f4c71ebe0934a05e2d334
|
data/ext/oj/dump_object.c
CHANGED
@@ -618,7 +618,7 @@ dump_obj_attrs(VALUE obj, VALUE clas, slot_t id, int depth, Out out) {
|
|
618
618
|
vid = rb_to_id(*np);
|
619
619
|
attr = rb_id2name(vid);
|
620
620
|
if (Yes == out->opts->ignore_under && '@' == *attr && '_' == attr[1]) {
|
621
|
-
|
621
|
+
continue;
|
622
622
|
}
|
623
623
|
value = rb_ivar_get(obj, vid);
|
624
624
|
|
data/ext/oj/oj.c
CHANGED
@@ -803,7 +803,7 @@ oj_parse_opt_match_string(RxClass rc, VALUE ropts) {
|
|
803
803
|
}
|
804
804
|
|
805
805
|
/* Document-method: load
|
806
|
-
* call-seq: load(json, options) { _|_obj, start, len_|_ }
|
806
|
+
* call-seq: load(json, options={}) { _|_obj, start, len_|_ }
|
807
807
|
*
|
808
808
|
* Parses a JSON document String into a Object, Hash, Array, String, Fixnum,
|
809
809
|
* Float, true, false, or nil according to the default mode or the mode
|
@@ -887,7 +887,7 @@ load(int argc, VALUE *argv, VALUE self) {
|
|
887
887
|
}
|
888
888
|
|
889
889
|
/* Document-method: load_file
|
890
|
-
* call-seq: load_file(path, options) { _|_obj, start, len_|_ }
|
890
|
+
* call-seq: load_file(path, options={}) { _|_obj, start, len_|_ }
|
891
891
|
*
|
892
892
|
* Parses a JSON document String into a Object, Hash, Array, String, Fixnum,
|
893
893
|
* Float, true, false, or nil according to the default mode or the mode
|
@@ -1045,7 +1045,7 @@ safe_load(VALUE self, VALUE doc) {
|
|
1045
1045
|
*/
|
1046
1046
|
|
1047
1047
|
/* Document-method: dump
|
1048
|
-
* call-seq: dump(obj, options)
|
1048
|
+
* call-seq: dump(obj, options={})
|
1049
1049
|
*
|
1050
1050
|
* Dumps an Object (obj) to a string.
|
1051
1051
|
* - *obj* [_Object_] Object to serialize as an JSON document String
|
@@ -1143,7 +1143,7 @@ to_json(int argc, VALUE *argv, VALUE self) {
|
|
1143
1143
|
}
|
1144
1144
|
|
1145
1145
|
/* Document-method: to_file
|
1146
|
-
* call-seq: to_file(file_path, obj, options)
|
1146
|
+
* call-seq: to_file(file_path, obj, options={})
|
1147
1147
|
*
|
1148
1148
|
* Dumps an Object to the specified file.
|
1149
1149
|
* - *file* [_String_] _path file path to write the JSON document to
|
@@ -1166,7 +1166,7 @@ to_file(int argc, VALUE *argv, VALUE self) {
|
|
1166
1166
|
}
|
1167
1167
|
|
1168
1168
|
/* Document-method: to_stream
|
1169
|
-
* call-seq: to_stream(io, obj, options)
|
1169
|
+
* call-seq: to_stream(io, obj, options={})
|
1170
1170
|
*
|
1171
1171
|
* Dumps an Object to the specified IO stream.
|
1172
1172
|
* - *io* [_IO_] IO stream to write the JSON document to
|
data/lib/oj/version.rb
CHANGED
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: 3.10.
|
4
|
+
version: 3.10.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Ohler
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake-compiler
|