test-unit 3.7.4 → 3.7.5

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: 5d16114e7ad17600025f6908efd1fea35e59c5b5ff953e31bf0048a573a742e5
4
- data.tar.gz: 857951ac70e9f668102998ace9099388fd66c5fa6a889d36b2e9ecb1decc3315
3
+ metadata.gz: 04e2a866d2a045ca0e7de94954d26e27a1966455c4cbc8a9d41b561999a3c88f
4
+ data.tar.gz: 6f029663eaa31d754924fcc5d5ae65d99578f1872c6b2ffe1896649022360fa0
5
5
  SHA512:
6
- metadata.gz: 1d2d8e9bf468101d11b2436cbe02d66d76d8a1c262f6e3b09792fb6d068876caa6dce7d64516792b69342bd3e0077b805f038123063f9ca8cc9d93ead8b28edc
7
- data.tar.gz: 01c8e73369f1a4d63c62de6fc181539b4866bbac3dee7307658d7f4c121557e132aacfd15f7afcc4376d30415bee03a7ab690a799a8587da71b5fda0cd4453a4
6
+ metadata.gz: b59637f017ea7cc3dac3ed17f5bbf3bb1efb4e3a5574a30e23bd935db8985dfa387422e2cc130ce529829b8f8bd3d9862653577cbe11ea46115801e979838b90
7
+ data.tar.gz: 943dd365ee3b7ebc97015fdbe1da11c27778919149e6aea0f72e50928c5b6152b362f8ca785a5db96467665d7323b1b1cab3027dccc69de99adda6ff066ea1b5
data/doc/text/news.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # News
2
2
 
3
+ ## 3.7.5 - 2025-12-24 {#version-3-7-5}
4
+
5
+ ### Fixes
6
+
7
+ * Fixed a bug that `sub_test_case` may cause a runtime error.
8
+ * GH-355
9
+
3
10
  ## 3.7.4 - 2025-12-23 {#version-3-7-4}
4
11
 
5
12
  ### Improvements
@@ -570,9 +570,13 @@ module Test
570
570
  [parent_test_case.name, name].compact.join("::")
571
571
  end
572
572
  end
573
- # Give the anonymous class a unique, Base64 encoded constant name.
574
- # So it becomes a named class that `Marshal` can safely dump even across processes.
575
- const_set(:"TEST_#{[sub_test_case.name].pack("m").delete("\n=")}", sub_test_case)
573
+ # Give the anonymous class a unique, Base64 encoded constant
574
+ # name. So it becomes a named class that `Marshal` can
575
+ # safely dump even across processes.
576
+ #
577
+ # We can't use "\n", "=" and "/" in base64 as class name.
578
+ encoded_name = [sub_test_case.name].pack("m").delete("\n=/")
579
+ const_set(:"TEST_#{encoded_name}", sub_test_case)
576
580
  sub_test_case
577
581
  end
578
582
  end
@@ -1,5 +1,5 @@
1
1
  module Test
2
2
  module Unit
3
- VERSION = "3.7.4"
3
+ VERSION = "3.7.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test-unit
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.7.4
4
+ version: 3.7.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou