json 2.7.3 → 2.7.4.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/json/ext/generator/generator.c +9 -0
- data/lib/json/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 27cf15ad00d1ffed9976b2eed0909f7cbe50cae439b11ade6d27216f73fd2dd0
|
4
|
+
data.tar.gz: c8ceceea663fd34bbb83c497fd6e08edb7a011b67d020ae403726c9ecc58d4ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6892054d8eca1a624f2693d6c17f3d2cff4a2ee65d3440bc9d3828007a7481df1e2e3785de112e957106a94c51f93bbf31ba756fcc8a0b84154c6ee916178805
|
7
|
+
data.tar.gz: 168cb81803e37dc6b9fdcc97ed816690100798840294aeca954e044d29cd827a4b15c310bf61096482143412992f7e8863a33b5264631a828fdce381d5648cdc
|
@@ -963,6 +963,12 @@ static VALUE cState_generate(VALUE self, VALUE obj)
|
|
963
963
|
return result;
|
964
964
|
}
|
965
965
|
|
966
|
+
static VALUE cState_initialize(int argc, VALUE *argv, VALUE self)
|
967
|
+
{
|
968
|
+
rb_warn("The json gem extension was loaded with the stdlib ruby code. You should upgrade rubygems with `gem update --system`");
|
969
|
+
return self;
|
970
|
+
}
|
971
|
+
|
966
972
|
/*
|
967
973
|
* call-seq: initialize_copy(orig)
|
968
974
|
*
|
@@ -1408,6 +1414,9 @@ void Init_generator(void)
|
|
1408
1414
|
cState = rb_define_class_under(mGenerator, "State", rb_cObject);
|
1409
1415
|
rb_define_alloc_func(cState, cState_s_allocate);
|
1410
1416
|
rb_define_singleton_method(cState, "from_state", cState_from_state_s, 1);
|
1417
|
+
rb_define_method(cState, "initialize", cState_initialize, -1);
|
1418
|
+
rb_define_alias(cState, "initialize", "initialize"); // avoid method redefinition warnings
|
1419
|
+
|
1411
1420
|
rb_define_method(cState, "initialize_copy", cState_init_copy, 1);
|
1412
1421
|
rb_define_method(cState, "indent", cState_indent, 0);
|
1413
1422
|
rb_define_method(cState, "indent=", cState_indent_set, 1);
|
data/lib/json/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: json
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.7.
|
4
|
+
version: 2.7.4.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Florian Frank
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-10-
|
11
|
+
date: 2024-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: This is a JSON implementation as a Ruby extension in C.
|
14
14
|
email: flori@ping.de
|
@@ -85,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
85
85
|
- !ruby/object:Gem::Version
|
86
86
|
version: '0'
|
87
87
|
requirements: []
|
88
|
-
rubygems_version: 3.5.
|
88
|
+
rubygems_version: 3.5.17
|
89
89
|
signing_key:
|
90
90
|
specification_version: 4
|
91
91
|
summary: JSON Implementation for Ruby
|