minitest-utils 0.5.1 → 0.5.2

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: 0b70bd66e3c107ed99a78f3521ed7662a105f13109b54ce4d4c23039676ec63d
4
- data.tar.gz: 3448ddcfaadfa6c22d61bb2918044b8769aa9c9ca41932caaace1e5d527065dd
3
+ metadata.gz: 88ad6d0826de366086152cedfef5fabbbc338b4aeb8a664ed62d9762002d841d
4
+ data.tar.gz: 7256702f812f28c4320bf3f42a05733302c963fd6c8093e35b107e21f8248e55
5
5
  SHA512:
6
- metadata.gz: 2f2f262a6756480cfbecf5e2facd19edcbbae57a96065043cd5a6a1e30c2b68c073f16b06a1948172fcfcd344200d989d66a538621e28e9f2ed5e9445d08391c
7
- data.tar.gz: 3d83de0fcb3dc1e2a3b309fcf1eb4a95067abbd94385399ccb59964b5b7dff8a038a6a408f94c3849b1172e033d297c8355a7b350c77a9835b9c229716b94692
6
+ metadata.gz: 4979039508fcb466137ac584c0b8f1cae0115f83ddf3866ec92b26384cde28567e72f17bd7f10499d41b23745c66f0fd49945b677daa08cbbcd87ba227134d47
7
+ data.tar.gz: ad984963d7267ece2f9f32f93aa752aeca90ee3d4fdd6e35a86a05fd2108b470e7317ff86c67c3f36f25a1bd6644264c5d58b5d8423dc10a3be3dc0c43ef5ae1
@@ -187,7 +187,11 @@ module Minitest
187
187
  return matches[1] if matches
188
188
 
189
189
  regex = include_line_number ? /^([^:]+:\d+)/ : /^([^:]+)/
190
- location = File.expand_path(location[regex, 1])
190
+ path = location[regex, 1]
191
+
192
+ return location unless path
193
+
194
+ location = File.expand_path
191
195
 
192
196
  return location unless location.start_with?(Dir.pwd)
193
197
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Minitest
4
4
  module Utils
5
- VERSION = "0.5.1"
5
+ VERSION = "0.5.2"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nando Vieira
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-02-25 00:00:00.000000000 Z
10
+ date: 2025-02-28 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: benchmark
@@ -176,7 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
176
176
  - !ruby/object:Gem::Version
177
177
  version: '0'
178
178
  requirements: []
179
- rubygems_version: 3.6.4
179
+ rubygems_version: 3.6.2
180
180
  specification_version: 4
181
181
  summary: Some utilities for your Minitest day-to-day usage.
182
182
  test_files: []