minitest-hooks 1.5.1 → 1.5.2

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: a525a80546faf2287ec0c0b8f5423a93bf76195381aec4bb37ab04ea6a533a71
4
- data.tar.gz: 8e6c6bd1f68db59ad2a6c885f6aba06b38f0302c8ecda20981381fd9e6683550
3
+ metadata.gz: 42d29c259746baab330e08c17b2a7a12f2ba1ba3fb0ebda481a38782f07b79b9
4
+ data.tar.gz: 6286a96601a5d734d3db8cee4f17085b61ac68d658d3b934ef0ecf37bf24c95d
5
5
  SHA512:
6
- metadata.gz: c6ba36dfb0477f1a7a15579b791ee73c6a5f3bf56157a115f7eaa14c40763e5244e2eb3e6f774fbfdc0cdbc6a7f31a8595bd95a59042889e974acb45c3210c9e
7
- data.tar.gz: e56c3ed65969f299e59030a590a207a56519180843221a55635c6db58fd8dd5f9b0d339af7cfecfcfee10ec1272b2353349d89048df06f25f99680b49cbeaf87
6
+ metadata.gz: 7e4f25ff0d5c4cafbf135e479ae4755f8afc2b679b09738bc0f6a6103718b50136553b599a1c4d6e22158866834cb3665b6e426f5be7fe2531565ab8d0b30165
7
+ data.tar.gz: 8c80de38937b2987d0aaa4b78923d6059b230551c1264c4427424050384afccf68e9b3b24e4344dcc72c8f5b29b495b97a4a19c3051e447b7322d4f72eae7618
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ === 1.5.2 (2024-08-14)
2
+
3
+ * Fix use with minitest 5.25+ (paracycle) (#27, #28)
4
+
1
5
  === 1.5.1 (2023-07-27)
2
6
 
3
7
  * Do not include specs or Rakefile in the gem (jeremyevans)
data/README.rdoc CHANGED
@@ -184,7 +184,7 @@ context of an instance of the subclass, before executing the subclass's specs.
184
184
  == Order of Operations
185
185
 
186
186
  For each spec class, the around(:all) hooks are run first. Both before(:all) and after(:all)
187
- run inside around(:all). For each spec inside the spec the spec class, around will be called,
187
+ run inside around(:all). For each spec inside the spec class, around will be called,
188
188
  and before and after for each spec will be run inside around.
189
189
 
190
190
  = License
@@ -61,11 +61,13 @@ module Minitest::Hooks::ClassMethods
61
61
  # When running the specs in the class, first create a singleton instance, the singleton is
62
62
  # used to implement around_all/before_all/after_all hooks, and each spec will run as a
63
63
  # dup of the singleton instance.
64
- def with_info_handler(reporter, &block)
64
+ def with_info_handler(*args, &block)
65
65
  @instance = new(NEW)
66
66
  @instance.time = 0
67
67
  @instance.name = "around_all"
68
-
68
+
69
+ reporter = args[0]
70
+
69
71
  begin
70
72
  @instance.around_all do
71
73
  begin
@@ -78,7 +80,7 @@ module Minitest::Hooks::ClassMethods
78
80
  failed = true
79
81
  _record_minitest_hooks_error(reporter, @instance)
80
82
  else
81
- super(reporter, &block)
83
+ super
82
84
  end
83
85
  ensure
84
86
  @instance.capture_exceptions do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-hooks
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Evans
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-27 00:00:00.000000000 Z
11
+ date: 2024-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -125,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
125
  - !ruby/object:Gem::Version
126
126
  version: '0'
127
127
  requirements: []
128
- rubygems_version: 3.4.10
128
+ rubygems_version: 3.5.11
129
129
  signing_key:
130
130
  specification_version: 4
131
131
  summary: Around and before_all/after_all/around_all hooks for Minitest