json 2.21.0 → 2.21.1

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: 778c5ab5faa1a727c1c453ef34351537fd77dbb9a2f176abc15f6861391baab9
4
- data.tar.gz: 37f10916f3608596b4665564f61ee872bd647617048c0d593a4d2c917acc87df
3
+ metadata.gz: bd45f22d143e0edbca7ee9ba8209d10fd58f1b21f5e095d7a4c2938d12ea1041
4
+ data.tar.gz: 7104d723fe198b21508897a5583fcb513407595df0fdb0240c0343481cac7e06
5
5
  SHA512:
6
- metadata.gz: 36af0bdf70e46b374bb7d0ad209e946fffa367f2316a279249295aff233c4b187d69fa65753db29ffb20639e828896fd18e33e6060ecb0908f3a85b170c53443
7
- data.tar.gz: d148e9ef5ea0b428a562d422acb9357c8a061dada945eacb37b2c97e10c9c050253624881b16a4de547a7705011493db83a442afe230b828f9935a522c86c08d
6
+ metadata.gz: 554e73a89035e122a9643ecdd611ca893dbcfee74d86b9dd1ed8ea1fb2d0ddfc84416458efeff5b71925922e8e59c1c60aa90a172a411c6a33e3069a41e328d5
7
+ data.tar.gz: 4746639e1e86fff01e23ecbc036bae1410e6e944687ad576daf297f4d50f792334d0bef5a2864b0f2fe7e32495d7c205be2b666c811985f7168d0c2c8b1892f8
data/CHANGES.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ### Unreleased
4
4
 
5
+ ### 2026-07-13 (2.21.1)
6
+
7
+ * Fix a compilation issue on Window and Microsoft Visual C++.
8
+
5
9
  ### 2026-07-12 (2.21.0)
6
10
 
7
11
  * `JSON.generate` now accept a `sort_keys` option, which takes either a boolean or a block.
@@ -15,22 +15,6 @@ have_func("rb_hash_new_capa", "ruby.h") # RUBY_VERSION >= 3.2
15
15
  have_func("rb_hash_bulk_insert", "ruby.h") # Missing on TruffleRuby
16
16
  have_func("ruby_xfree_sized", "ruby.h") # RUBY_VERSION >= 4.1
17
17
 
18
- def have_builtin_func(name, check_expr, opt = "", &b)
19
- checking_for checking_message(name.funcall_style, nil, opt) do
20
- if try_compile(<<SRC, opt, &b)
21
- int foo;
22
- int main() { #{check_expr}; return 0; }
23
- SRC
24
- $defs.push(format("-DHAVE_BUILTIN_%s", name.tr_cpp))
25
- true
26
- else
27
- false
28
- end
29
- end
30
- end
31
-
32
- have_builtin_func("__builtin_clzll", "__builtin_clzll(0)")
33
-
34
18
  if have_header("x86intrin.h")
35
19
  have_func("_lzcnt_u64", "x86intrin.h")
36
20
  end
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.21.0'
4
+ VERSION = '2.21.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.21.0
4
+ version: 2.21.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Frank