minitest-rerun 0.1.3 → 0.1.4

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
  SHA1:
3
- metadata.gz: a7f85826f4196f55b13ec3ca6fd81e16c1153fb9
4
- data.tar.gz: bcbbe200432ec3a693be67007caf9374b6e5b641
3
+ metadata.gz: 43095aa36c38c01f67e7f275cec6bbb5809e89c2
4
+ data.tar.gz: e901fda11041ff809e80d427f390b362bef053fc
5
5
  SHA512:
6
- metadata.gz: bbfd3f603edcee9091b9d2831748d243d43ddff2af93e74248854fe503e6de707e85eddc4119d87af7ee36dfd95cf957a07109e360eef6935cc4e54a0f05ab12
7
- data.tar.gz: b2c5d338ebecc294da5fe33a1372a7b608473708fad08345b56863c6f77e00e602478597cb22bc162845fa96ff6383e2f80d2949670df195b17c098e422b80d5
6
+ metadata.gz: b9acf0ababf9e8bf4b771946b7124eff88dbd22eed215f5afc064c40d1f61f24cec6f38dacf4ac6811c7f6c5ebd39c5ce314018e163b972bddf3527c557fc9d4
7
+ data.tar.gz: a936ac1aa54e674eb531ef783b1cf0e93fa8011c0813a15c50ed7ab84ab68dd2af6b90aae19c33a445752695ccd569aa6e63508a9547761dab49709d3c802226
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -9,10 +9,15 @@ module Minitest::Rerun
9
9
  location_part = info[/ \[((.*?):\d+)\]:/]
10
10
  location = $1
11
11
  file = $2
12
- if location
13
- name = info.sub(location_part, "")
14
- colorize(:red, "ruby #{test_file(file)} -n '#{name.gsub(%{'}, %{'"'"'})}' ") + colorize(:cyan, "# #{relativize(location)}")
12
+ name = if location_part
13
+ info.sub(location_part, "")
14
+ else
15
+ info.sub(/:$/, "")
15
16
  end
17
+ file = test_file(file)
18
+ line = colorize(:red, "ruby #{file || "unknown"} -n '#{name.gsub(%{'}, %{'"'"'})}' ")
19
+ line << colorize(:cyan, "# #{relativize(location)}") if location
20
+ line
16
21
  end
17
22
 
18
23
  private
@@ -32,7 +37,7 @@ module Minitest::Rerun
32
37
  def test_file(location)
33
38
  tests_run = $0.split(" ").select { |f| File.exist?(f) }
34
39
  location = tests_run.first if tests_run.size == 1
35
- relativize(location)
40
+ relativize(location) if location
36
41
  end
37
42
  end
38
43
 
@@ -1,5 +1,5 @@
1
1
  module Minitest
2
2
  module Rerun
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.4"
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.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
@@ -30,7 +30,7 @@ cert_chain:
30
30
  F5etKHZg0j3eHO31/i2HnswY04lqGImUu6aM5EnijFTB7PPW2KwKKM4+kKDYFdlw
31
31
  /0WV1Ng2/Y6qsHwmqGg2VlYj2h4=
32
32
  -----END CERTIFICATE-----
33
- date: 2014-05-01 00:00:00.000000000 Z
33
+ date: 2014-05-30 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: minitest
metadata.gz.sig CHANGED
Binary file