test-unit 3.6.5 → 3.6.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 89848098de31dc4b7c6164ea0d473f357c957adfb7247eb49187580dab042d6a
4
- data.tar.gz: 7b5d8c3b892a77d069e708d39cd779dae9f7845705386c5fe6c4e58a44d8b6af
3
+ metadata.gz: fb180f2c9377ae51f23460d2189f4c20217bfeca25a8ae1fff695f739be548bb
4
+ data.tar.gz: 9057f25cf319ffd6ef9185a9f0a80f83975bf3f8a1738bc636e3dd829f9ba4d3
5
5
  SHA512:
6
- metadata.gz: 253a5aed19a3759d6d4ceec439d5e696910187a8bfae52cea34cb000ea64b2728a246703cfdcfc4f09fa744f7014486c1d9d83e32620d2c37b80972c0cceb31c
7
- data.tar.gz: d3bae342534e1bbdc5af82d539c0cb8627f3e701eb60ed58b6199d8c67bc280bfbedad0470e91e7e3d9bf050dc50458a19edf75a7e027f050d2c291677dfcc9a
6
+ metadata.gz: 3a2dc1551d424ea48056738d7342627c94b1b868a69c01153bed8d3c57cf0f78674a86812e39e00fead22f1035e6ccf383cadb4e91eabe7fb849b8f919bcd1b3
7
+ data.tar.gz: 221694d5d44ee5bc4f4ab4faaf8739ee0d3e677e2b337ae98d1fe8443c92c5e0d0dc478a1974ffdbdbffed7217c25b51efae6caaa28fc6e107112732239a96fa
data/doc/text/news.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # News
2
2
 
3
+ ## 3.6.6 - 2024-12-17 {#version-3-6-6}
4
+
5
+ ### Improvements
6
+
7
+ * Improved backward compatibility for the `Test::Unit::TestCase#run`
8
+ overriding case. In general, we don't recommend it but there are
9
+ old scripts that do it. (Mainly, I did it...)
10
+ * GH-276
11
+ * Reported by Mamoru TASAKA
12
+
13
+ ### Thanks
14
+
15
+ * Mamoru TASAKA
16
+
3
17
  ## 3.6.5 - 2024-12-15 {#version-3-6-5}
4
18
 
5
19
  ### Fixes
@@ -65,7 +65,11 @@ module Test
65
65
  finished_is_yielded = false
66
66
  finished_object_is_yielded = false
67
67
  previous_event_name = nil
68
- test.run(result, runner_class: self.class) do |event_name, *args|
68
+ options = {}
69
+ # For backward compatibility. There are scripts that overrides
70
+ # Test::Unit::TestCase#run without keyword arguments.
71
+ options[:runner_class] = self.class if test.method(:run).arity == -2
72
+ test.run(result, **options) do |event_name, *args|
69
73
  case previous_event_name
70
74
  when Test::Unit::TestCase::STARTED
71
75
  if event_name != Test::Unit::TestCase::STARTED_OBJECT
@@ -1,5 +1,5 @@
1
1
  module Test
2
2
  module Unit
3
- VERSION = "3.6.5"
3
+ VERSION = "3.6.6"
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.6.5
4
+ version: 3.6.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-12-15 00:00:00.000000000 Z
12
+ date: 2024-12-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: power_assert