guard-minitest 2.5.0 → 3.0.0
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 +4 -4
- data/README.md +2 -2
- data/lib/guard/minitest/runner.rb +0 -6
- data/lib/guard/minitest/utils.rb +0 -8
- data/lib/guard/minitest/version.rb +1 -1
- data/lib/minitest/guard_minitest_plugin.rb +1 -5
- metadata +8 -9
- data/lib/guard/minitest/runners/old_runner.rb +0 -16
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cd7612cd83522ab5596a1dfc14a9de95eaa1653b11bdcfc7299d15eb9bd37ba1
|
|
4
|
+
data.tar.gz: 2abc2f47cf61c2d4b4261ec53c3d151e0c74ffd3a30f928884864122a51976a5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a79e0035fb1e4ea258ef2b6b749d55020b1ebab6402638f1cf030b66e0b833e784bb809ac7beed2fed6c257eb1f739339031deecdf156f9f3a24a956991911db
|
|
7
|
+
data.tar.gz: b56623e3102675457f54c5f0a389ef43a951fe95f9a02211b399c74d1c35b2b2c4e1c9f46058dba32592159a7d4162f839d8989bc347368a81d2969a6fed23b2
|
data/README.md
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
Guard::Minitest allows to automatically & intelligently launch tests with the
|
|
8
8
|
[minitest framework](https://github.com/seattlerb/minitest) when files are modified.
|
|
9
9
|
|
|
10
|
-
* Compatible with minitest >=
|
|
11
|
-
* Tested against Ruby
|
|
10
|
+
* Compatible with minitest >= 5.0
|
|
11
|
+
* Tested against Ruby >= 3.2.0
|
|
12
12
|
|
|
13
13
|
*IMPORTANT NOTE: `guard-minitest` does not depend on `guard` due to obscure issues - you must either install `guard` first or add it explicitly in your `Gemfile` (see: [#131](https://github.com/guard/guard-minitest/pull/131) for details)*
|
|
14
14
|
|
|
@@ -166,7 +166,6 @@ module Guard
|
|
|
166
166
|
def spring_command(paths)
|
|
167
167
|
command = @options[:spring].is_a?(String) ? @options[:spring] : 'bin/rake test'
|
|
168
168
|
cmd_parts = [command]
|
|
169
|
-
cmd_parts << File.expand_path('../runners/old_runner.rb', __FILE__) unless Utils.minitest_version_gte_5? || command != 'spring testunit'
|
|
170
169
|
if cli_options.length > 0
|
|
171
170
|
cmd_parts + paths + ['--'] + cli_options
|
|
172
171
|
else
|
|
@@ -182,10 +181,6 @@ module Guard
|
|
|
182
181
|
cmd_parts << '-r minitest/autorun' if autorun?
|
|
183
182
|
cmd_parts.concat(paths.map { |path| "-r ./#{path}" })
|
|
184
183
|
|
|
185
|
-
unless Utils.minitest_version_gte_5?
|
|
186
|
-
cmd_parts << "-r #{File.expand_path('../runners/old_runner.rb', __FILE__)}"
|
|
187
|
-
end
|
|
188
|
-
|
|
189
184
|
# All the work is done through minitest/autorun
|
|
190
185
|
# and requiring the test files, so this is just
|
|
191
186
|
# a placeholder so Ruby doesn't try to exceute
|
|
@@ -193,7 +188,6 @@ module Guard
|
|
|
193
188
|
cmd_parts << '-e ""'
|
|
194
189
|
|
|
195
190
|
cmd_parts << '--'
|
|
196
|
-
cmd_parts << '--guard'
|
|
197
191
|
cmd_parts += cli_options
|
|
198
192
|
cmd_parts
|
|
199
193
|
end
|
data/lib/guard/minitest/utils.rb
CHANGED
|
@@ -15,14 +15,6 @@ module Guard
|
|
|
15
15
|
::MiniTest::Unit::VERSION
|
|
16
16
|
end
|
|
17
17
|
end
|
|
18
|
-
|
|
19
|
-
def self.minitest_version_gte_5?
|
|
20
|
-
@@minitest_version_gte_5 ||= Gem::Requirement.new('>= 5').satisfied_by?(Gem::Version.new(minitest_version))
|
|
21
|
-
end
|
|
22
|
-
|
|
23
|
-
def self.minitest_version_gte_5_0_4?
|
|
24
|
-
@@minitest_version_gte_5_0_4 ||= Gem::Requirement.new('>= 5.0.4').satisfied_by?(Gem::Version.new(minitest_version))
|
|
25
|
-
end
|
|
26
18
|
end
|
|
27
19
|
end
|
|
28
20
|
end
|
|
@@ -13,11 +13,7 @@ module Minitest
|
|
|
13
13
|
# Require guard unless we're using guard-minitest to test a guard plugin
|
|
14
14
|
require 'guard' unless Dir['guard-*.gemspec'].any?
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
require 'guard/minitest/reporter'
|
|
18
|
-
else
|
|
19
|
-
require 'guard/minitest/reporters/old_reporter'
|
|
20
|
-
end
|
|
16
|
+
require 'guard/minitest/reporter'
|
|
21
17
|
|
|
22
18
|
reporter << ::Guard::Minitest::Reporter.new
|
|
23
19
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: guard-minitest
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 3.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Yann Lugrin
|
|
@@ -30,20 +30,20 @@ dependencies:
|
|
|
30
30
|
requirements:
|
|
31
31
|
- - ">="
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version:
|
|
33
|
+
version: 5.0.4
|
|
34
34
|
- - "<"
|
|
35
35
|
- !ruby/object:Gem::Version
|
|
36
|
-
version: '
|
|
36
|
+
version: '7.0'
|
|
37
37
|
type: :runtime
|
|
38
38
|
prerelease: false
|
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
|
40
40
|
requirements:
|
|
41
41
|
- - ">="
|
|
42
42
|
- !ruby/object:Gem::Version
|
|
43
|
-
version:
|
|
43
|
+
version: 5.0.4
|
|
44
44
|
- - "<"
|
|
45
45
|
- !ruby/object:Gem::Version
|
|
46
|
-
version: '
|
|
46
|
+
version: '7.0'
|
|
47
47
|
- !ruby/object:Gem::Dependency
|
|
48
48
|
name: coveralls
|
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -92,14 +92,14 @@ dependencies:
|
|
|
92
92
|
requirements:
|
|
93
93
|
- - ">="
|
|
94
94
|
- !ruby/object:Gem::Version
|
|
95
|
-
version: 3.1
|
|
95
|
+
version: '3.1'
|
|
96
96
|
type: :development
|
|
97
97
|
prerelease: false
|
|
98
98
|
version_requirements: !ruby/object:Gem::Requirement
|
|
99
99
|
requirements:
|
|
100
100
|
- - ">="
|
|
101
101
|
- !ruby/object:Gem::Version
|
|
102
|
-
version: 3.1
|
|
102
|
+
version: '3.1'
|
|
103
103
|
description: Guard::Minitest automatically run your tests with Minitest framework
|
|
104
104
|
(much like autotest)
|
|
105
105
|
email:
|
|
@@ -117,7 +117,6 @@ files:
|
|
|
117
117
|
- lib/guard/minitest/reporter.rb
|
|
118
118
|
- lib/guard/minitest/reporters/old_reporter.rb
|
|
119
119
|
- lib/guard/minitest/runner.rb
|
|
120
|
-
- lib/guard/minitest/runners/old_runner.rb
|
|
121
120
|
- lib/guard/minitest/templates/Guardfile
|
|
122
121
|
- lib/guard/minitest/utils.rb
|
|
123
122
|
- lib/guard/minitest/version.rb
|
|
@@ -136,7 +135,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
136
135
|
requirements:
|
|
137
136
|
- - ">="
|
|
138
137
|
- !ruby/object:Gem::Version
|
|
139
|
-
version:
|
|
138
|
+
version: '3.2'
|
|
140
139
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
141
140
|
requirements:
|
|
142
141
|
- - ">="
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
require 'minitest/unit'
|
|
2
|
-
require 'guard/minitest/notifier'
|
|
3
|
-
|
|
4
|
-
module MiniTest
|
|
5
|
-
class MiniTest::Unit
|
|
6
|
-
begin
|
|
7
|
-
alias_method :_run_anything_without_guard, :_run_anything
|
|
8
|
-
def _run_anything(type)
|
|
9
|
-
start = Time.now
|
|
10
|
-
_run_anything_without_guard(type)
|
|
11
|
-
duration = Time.now - start
|
|
12
|
-
::Guard::Minitest::Notifier.notify(test_count, assertion_count, failures, errors, skips, duration)
|
|
13
|
-
end
|
|
14
|
-
end
|
|
15
|
-
end
|
|
16
|
-
end
|