json 2.11.3-java → 2.12.0-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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d4a089ae6adc030804bc9bc47c15fa8e622908a236f203b7d4db8800a16d72ee
4
- data.tar.gz: 3caa4d4a9c2ad0607200fada5e40b36426ca20850e8bd928d8e9f12a3bbf2064
3
+ metadata.gz: 710fe2ed511aaeda412a41f8c24c62bd4a7295b4bceec674877ceda8da011e2a
4
+ data.tar.gz: 07ed3030d8a68f7f7bb1860dc23a85ed15dc28f25ebd4b2cae7b374d72728696
5
5
  SHA512:
6
- metadata.gz: d5cc7fb516e9fb35b3b001893da1f820c8513e7612c942b30abc54746426b6f1d1bf81f826c17387e090a57c6b280384203202b66ddbc1be28e89e7f50b2ebbd
7
- data.tar.gz: 9b57eefdb2b944a4bc02b17d5ccc01fe01e454dca7be8f771aa40e3c767403dd354604ba170f9aafc56c9cd278b885ac9b8044f0346394749e86391adcebd640
6
+ metadata.gz: 467cc0c119d803fbca47c96ca773431c02e32abc891f098e3f548c0857429a608721702257d8c4e0398976c312448ae42f4e9f2060893b9cefe7bdd8edd456eb
7
+ data.tar.gz: 1565f080c1cd5602f31923b7fd7d421fb804dcb4a078933f46b3c7f7471cffb1220360506d644ba042b5394a06f541cee0ca67e193ef061dbb9e2af9373ff6ff
data/CHANGES.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changes
2
2
 
3
+ ### Unreleased
4
+
5
+ ### 2025-05-12 (2.12.0)
6
+
7
+ * Improve floating point generation to not use scientific notation as much.
8
+ * Include line and column in parser errors. Both in the message and as exception attributes.
9
+ * Handle non-string hash keys with broken `to_s` implementations.
10
+ * `JSON.generate` now uses SSE2 (x86) or NEON (arm64) instructions when available to escape strings.
11
+
3
12
  ### 2025-04-25 (2.11.3)
4
13
 
5
14
  * Fix a regression in `JSON.pretty_generate` that could cause indentation to be off once some `#to_json` has been called.
data/lib/json/common.rb CHANGED
@@ -230,7 +230,9 @@ module JSON
230
230
  class JSONError < StandardError; end
231
231
 
232
232
  # This exception is raised if a parser error occurs.
233
- class ParserError < JSONError; end
233
+ class ParserError < JSONError
234
+ attr_reader :line, :column
235
+ end
234
236
 
235
237
  # This exception is raised if the nesting of parsed data structures is too
236
238
  # deep.
Binary file
Binary file
data/lib/json/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JSON
4
- VERSION = '2.11.3'
4
+ VERSION = '2.12.0'
5
5
  end
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.11.3
4
+ version: 2.12.0
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-04-25 00:00:00.000000000 Z
11
+ date: 2025-05-12 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