selective-ruby-minitest 0.1.2 → 0.1.3

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: e00ea8147c671869afa4329b2e5bb1bfaec174832ae2352cb4b97a61de55af9b
4
- data.tar.gz: a4f63aba2657952326b2841e300d24b8b038272bfe98ce2c71d7dd7c537b0d63
3
+ metadata.gz: 41cc2c0f392507e524f828b3b353b83a071d6d5716d95ccccf9ef793662e79d0
4
+ data.tar.gz: db7e463ae55a89a1beba6e6c10ed449c67c34605d96370e19383ac16987871a4
5
5
  SHA512:
6
- metadata.gz: c13e9e68246461b94978341a545a000609ce507d2a94b53cb9c5d72a2550d04ba13bf1327dfa6e3cb0171cd272db72a2169d4f764c625268441adf9fe712b5b1
7
- data.tar.gz: 8f1ba321cf5508dd9405c8daafafab113afb684ae7809fbf1cba1ff7c8367b6fa893d6bf7098f79091bfac9f254363ddf26119c258fb1a2aa64b6fd382b27adc
6
+ metadata.gz: 9baf717b9749184b2759cb5070334abdf042d9ab5f2a7ec315fd42277d7dd10db670ce9b0332a57e241df963404bf4c53d229c05f18c261d264be15a7f4d545f
7
+ data.tar.gz: 4bd2f6a0edd9364ec2f7f2cd6f2219e6739ea590e4a26ee6fcff92346631eaaec8b3c20e4bd414d5ab3143cc6906d0b1109b2b088ad1a1a3d8490e72e1a281b1
data/LICENSE CHANGED
File without changes
data/Rakefile CHANGED
File without changes
File without changes
@@ -107,7 +107,18 @@ module Selective
107
107
 
108
108
  def summary_reporter
109
109
  reporter.reporters.grep(::Minitest::SummaryReporter).first || # Minitest with no 3rd party reporter gems
110
- reporter.reporters.first.send(:all_reporters)&.grep(::Minitest::Reporters::DefaultReporter)&.first # Minitest with minitest-reporters gem
110
+ delegate_summary_reporter || # Minitest with minitest-reporters gem (reporters wrapped in DelegateReporter)
111
+ nil
112
+ end
113
+
114
+ def delegate_summary_reporter
115
+ delegate = reporter.reporters.first
116
+ return unless delegate&.respond_to?(:all_reporters, true)
117
+
118
+ all = delegate.send(:all_reporters)
119
+ all&.grep(::Minitest::SummaryReporter)&.first ||
120
+ (defined?(::Minitest::Reporters::DefaultReporter) &&
121
+ all&.grep(::Minitest::Reporters::DefaultReporter)&.first)
111
122
  end
112
123
 
113
124
  def failures
@@ -3,7 +3,7 @@
3
3
  module Selective
4
4
  module Ruby
5
5
  module Minitest
6
- VERSION = "0.1.2"
6
+ VERSION = "0.1.3"
7
7
  end
8
8
  end
9
9
  end
File without changes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: selective-ruby-minitest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin Wood
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2026-03-04 00:00:00.000000000 Z
12
+ date: 2026-04-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: zeitwerk
@@ -92,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
92
  - !ruby/object:Gem::Version
93
93
  version: '0'
94
94
  requirements: []
95
- rubygems_version: 3.5.3
95
+ rubygems_version: 3.5.22
96
96
  signing_key:
97
97
  specification_version: 4
98
98
  summary: Selective Ruby Minitest Client