json 2.15.1-java → 2.15.2-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGES.md +5 -0
- data/lib/json/ext/generator.jar +0 -0
- data/lib/json/ext/parser.jar +0 -0
- data/lib/json/truffle_ruby/generator.rb +5 -1
- data/lib/json/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: 48d22171870875f79dc860de151f8ad1ca9b3658d70ba4b12b8eb303221108fa
|
|
4
|
+
data.tar.gz: f2a4754a3852a4791e3a62fce1966f613fe0167f0cb8748491922e4ddeab170f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: efe4e79202ce017a55d516b2c7f473e63d58c536986130cf68c3f473c9ae8ca819e13d590b79f04b7e845c83425a29b22062bfdeaecd227577b9c56ed94f4e3b
|
|
7
|
+
data.tar.gz: 96da2d6068270a844bd6015ac0e67196c19b6c208f49e7adb71ad610662cce066d5d0dc294582a01153853f2186a03e06d20abbd16d7b6faf83dab05c097d84b
|
data/CHANGES.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
### Unreleased
|
|
4
4
|
|
|
5
|
+
### 2025-10-25 (2.15.2)
|
|
6
|
+
|
|
7
|
+
* Fix `JSON::Coder` to have one dedicated depth counter per invocation.
|
|
8
|
+
After encountering a circular reference in `JSON::Coder#dump`, any further `#dump` call would raise `JSON::NestingError`.
|
|
9
|
+
|
|
5
10
|
### 2025-10-07 (2.15.1)
|
|
6
11
|
|
|
7
12
|
* Fix incorrect escaping in the JRuby extension when encoding shared strings.
|
data/lib/json/ext/generator.jar
CHANGED
|
Binary file
|
data/lib/json/ext/parser.jar
CHANGED
|
Binary file
|
|
@@ -212,7 +212,7 @@ module JSON
|
|
|
212
212
|
return if @max_nesting.zero?
|
|
213
213
|
current_nesting = depth + 1
|
|
214
214
|
current_nesting > @max_nesting and
|
|
215
|
-
raise NestingError, "nesting of #{current_nesting} is too deep"
|
|
215
|
+
raise NestingError, "nesting of #{current_nesting} is too deep. Did you try to serialize objects with circular references?"
|
|
216
216
|
end
|
|
217
217
|
|
|
218
218
|
# Returns true, if circular data structures are checked,
|
|
@@ -347,6 +347,10 @@ module JSON
|
|
|
347
347
|
dup.generate(obj, anIO)
|
|
348
348
|
end
|
|
349
349
|
|
|
350
|
+
private def initialize_copy(_orig)
|
|
351
|
+
@depth = 0
|
|
352
|
+
end
|
|
353
|
+
|
|
350
354
|
# Handles @allow_nan, @buffer_initial_length, other ivars must be the default value (see above)
|
|
351
355
|
private def generate_json(obj, buf)
|
|
352
356
|
case obj
|
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.15.
|
|
4
|
+
version: 2.15.2
|
|
5
5
|
platform: java
|
|
6
6
|
authors:
|
|
7
7
|
- Daniel Luz
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-10-
|
|
11
|
+
date: 2025-10-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: A JSON implementation as a JRuby extension.
|
|
14
14
|
email: dev+ruby@mernen.com
|