minitest-rerun 0.1.4 → 0.1.5

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
  SHA1:
3
- metadata.gz: 43095aa36c38c01f67e7f275cec6bbb5809e89c2
4
- data.tar.gz: e901fda11041ff809e80d427f390b362bef053fc
3
+ metadata.gz: 640835dc89bfed2d7455d01fe7b75b4f571666da
4
+ data.tar.gz: d77597849c5943852b6993728262e9bc918af3b4
5
5
  SHA512:
6
- metadata.gz: b9acf0ababf9e8bf4b771946b7124eff88dbd22eed215f5afc064c40d1f61f24cec6f38dacf4ac6811c7f6c5ebd39c5ce314018e163b972bddf3527c557fc9d4
7
- data.tar.gz: a936ac1aa54e674eb531ef783b1cf0e93fa8011c0813a15c50ed7ab84ab68dd2af6b90aae19c33a445752695ccd569aa6e63508a9547761dab49709d3c802226
6
+ metadata.gz: 7eaa593aa0f2ba053cceb9536706f129871b444529b6dacb0f1b4f8fd4f14ab4738fe21d071dd1e84cad58a1ef8f647c0525385f1f50db9af6faf667abdbce24
7
+ data.tar.gz: 34e5fa68c631fb299174d99d7f7e801e2ad136c88d19d4fb6e1c67af10c148a21f6f761e509265607645b5da86f0a347c8943984b8d8b15874c220fe0aa17988
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -14,6 +14,14 @@ module Minitest::Rerun
14
14
  else
15
15
  info.sub(/:$/, "")
16
16
  end
17
+
18
+ # in minitest 5 we know file/line even for errors
19
+ if !location && msg.respond_to?(:name)
20
+ method = msg.method(msg.name)
21
+ file, line = method.source_location
22
+ location = "#{file}:#{line}"
23
+ end
24
+
17
25
  file = test_file(file)
18
26
  line = colorize(:red, "ruby #{file || "unknown"} -n '#{name.gsub(%{'}, %{'"'"'})}' ")
19
27
  line << colorize(:cyan, "# #{relativize(location)}") if location
@@ -1,5 +1,5 @@
1
1
  module Minitest
2
2
  module Rerun
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-rerun
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
metadata.gz.sig CHANGED
Binary file