minitest-sprint 1.2.2 → 1.3.0

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: b41b1bfaf2a97919bf828fc3c2f16ccec95586fb8c235b27b3f3fad24f7167ab
4
- data.tar.gz: e84c24a78164f343fafecd2c7a3163640d809766a65d670ae745667817a3d8a6
3
+ metadata.gz: 78eb3a5112607df6f99346260e70278b5d9d07d321e567f54df6a5254c0438a4
4
+ data.tar.gz: d98c578ca0f66288fe216dc58435be2374378660535a4784c0eb712cac5d657a
5
5
  SHA512:
6
- metadata.gz: 3a8787ebc703cf777efc0d9813729cfe3fe633258b3adc9852ae3a5edd67588760f84b6e781b59b7d97d2400774609a84f8cbb975cc4245ce18de307fdad1ce0
7
- data.tar.gz: 2fa35f00ce315c2018271cd262bd01c3e5104600a21c3b4d1727c6d4aeff361d42a8a3e4e3b6317cd6c702f1079ce6bb55f4fad1821e051c6e9626ab0f6f23be
6
+ metadata.gz: d2540f85aee60abd9e9a25034ba8c2c12e40fd5be94a99b37f73f4131003592df8240e58fa8b15003a731968375e99e84a8c817db1252a075b59aadc3850e3d0
7
+ data.tar.gz: 1f7c8088a6287714b61e469337b0d377b722a339a74f9817e6fc9b14b13d148cf9892390e840d1fe5371492f8f6a851f1778a8de7f780d5854733fb6f23fc2bb
checksums.yaml.gz.sig CHANGED
Binary file
data/README.rdoc CHANGED
@@ -45,13 +45,18 @@ method names. When running tests, just hit tab after -n. For example:
45
45
  test_thingy_failing_filtered
46
46
  ... etc ...
47
47
 
48
+ # Rakefile
49
+ Minitest::TestTask.create do |t|
50
+ t.extra_args = ["--rake"] # Or --binstub
51
+ end
52
+
48
53
  == REQUIREMENTS:
49
54
 
50
55
  * ruby
51
56
 
52
57
  == INSTALL:
53
58
 
54
- * sudo gem install minitest-sprint
59
+ * gem install minitest-sprint
55
60
 
56
61
  == LICENSE:
57
62
 
data/bin/minitest CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/ruby
1
+ #!/usr/bin/env ruby
2
2
 
3
3
  require "minitest/sprint"
4
4
 
@@ -2,9 +2,16 @@ require "minitest/sprint_reporter"
2
2
 
3
3
  module Minitest
4
4
  class RakeReporter < SprintReporter
5
+ attr_accessor :name
6
+
7
+ def initialize name = nil
8
+ self.results = []
9
+ self.name = name
10
+ end
11
+
5
12
  def print_list
6
13
  results.each do |result|
7
- puts " rake N=#{result.class_name}##{result.name}"
14
+ puts [" rake", name, "N=#{result.class_name}##{result.name}"].compact.join(" ")
8
15
  end
9
16
  end
10
17
  end
@@ -2,8 +2,9 @@ require "minitest"
2
2
 
3
3
  module Minitest
4
4
  def self.plugin_sprint_options opts, options # :nodoc:
5
- opts.on "--rake", "Report how to re-run failures with rake." do
5
+ opts.on "--rake [TASK]", "Report how to re-run failures with rake." do |task|
6
6
  options[:sprint] = :rake
7
+ options[:rake_task] = task
7
8
  end
8
9
 
9
10
  opts.on "--binstub", "Report how to re-run failures with minitest." do
@@ -15,7 +16,7 @@ module Minitest
15
16
  case options[:sprint]
16
17
  when :rake then
17
18
  require "minitest/rake_reporter"
18
- self.reporter << Minitest::RakeReporter.new
19
+ self.reporter << Minitest::RakeReporter.new(options[:rake_task])
19
20
  when :binstub then
20
21
  require "minitest/binstub_reporter"
21
22
  self.reporter << Minitest::BinstubReporter.new
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-sprint
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Davis
@@ -10,9 +10,9 @@ bindir: bin
10
10
  cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
- MIIDPjCCAiagAwIBAgIBBjANBgkqhkiG9w0BAQsFADBFMRMwEQYDVQQDDApyeWFu
13
+ MIIDPjCCAiagAwIBAgIBCDANBgkqhkiG9w0B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r/Kceo4bBPDszhTv6iBi4LwMReqnFrpNLMOWJw7xi8x+3eL2
26
+ XS09ZPNOt2zm70KmFouBMgOysnDY4k2dE8uF6B8JbZOO8QfalW+CoNBliefOTcn2
27
+ bg5IOP7UoGM5lC174/cbDJrJnRG9bzig5FAP0mvsgA8zgTRXQzIUAZEo92D5K7p4
28
+ B4/O998ho6BSOgYBI9Yk1ttdCtti6Y+8N9+fZESsjtWMykA+WXWeGUScHqiU+gH8
29
+ S7043fq9EbQdBr2AXdj92+CDwuTfHI6/Hj5FVBDULufrJaan4xUgL70Hvc6pTTeW
30
+ deKfBjgVAq7EYHu1AczzlUly
31
31
  -----END CERTIFICATE-----
32
- date: 2022-06-20 00:00:00.000000000 Z
32
+ date: 2024-07-23 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: path_expander
@@ -71,14 +71,14 @@ dependencies:
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '3.23'
74
+ version: '4.2'
75
75
  type: :development
76
76
  prerelease: false
77
77
  version_requirements: !ruby/object:Gem::Requirement
78
78
  requirements:
79
79
  - - "~>"
80
80
  - !ruby/object:Gem::Version
81
- version: '3.23'
81
+ version: '4.2'
82
82
  description: |-
83
83
  Runs (Get it? It's fast!) your tests and makes it easier to rerun individual
84
84
  failures.
@@ -128,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
128
  - !ruby/object:Gem::Version
129
129
  version: '0'
130
130
  requirements: []
131
- rubygems_version: 3.3.12
131
+ rubygems_version: 3.5.15
132
132
  signing_key:
133
133
  specification_version: 4
134
134
  summary: Runs (Get it? It's fast!) your tests and makes it easier to rerun individual
metadata.gz.sig CHANGED
Binary file