guard-minitest 2.3.2 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/guard/minitest.rb +2 -3
- data/lib/guard/minitest/inspector.rb +1 -1
- data/lib/guard/minitest/notifier.rb +2 -4
- data/lib/guard/minitest/reporter.rb +1 -1
- data/lib/guard/minitest/reporters/old_reporter.rb +1 -1
- data/lib/guard/minitest/runner.rb +4 -4
- data/lib/guard/minitest/utils.rb +1 -1
- data/lib/guard/minitest/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78315ae5f1cb56304281556410746c097f10890a
|
4
|
+
data.tar.gz: bb062a5152fab2df24582e05e0ca17300a720314
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ab7a7bb14c2fa1c1dc48b4d3dc88bb78628b81271c9116f8edc2acb8c80a72abf9b7374eee8d5b46a323154037f9fb979d07078d88902ddc6b6d8e2b2a81370
|
7
|
+
data.tar.gz: d14dbf59431eaae7896d1de492d95aee78d76f1fbb2313d49eb2032c2a10971953ad12b23c351510b981ed84d8f94f3c56418e29efe2c5e838ec768bd4c44337
|
data/lib/guard/minitest.rb
CHANGED
@@ -1,5 +1,4 @@
|
|
1
|
-
require 'guard'
|
2
|
-
require 'guard/plugin'
|
1
|
+
require 'guard/compat/plugin'
|
3
2
|
|
4
3
|
module Guard
|
5
4
|
class Minitest < Plugin
|
@@ -19,7 +18,7 @@ module Guard
|
|
19
18
|
end
|
20
19
|
|
21
20
|
def start
|
22
|
-
UI.info "Guard::Minitest #{MinitestVersion::VERSION} is running, with Minitest::Unit #{Utils.minitest_version}!"
|
21
|
+
Compat::UI.info "Guard::Minitest #{MinitestVersion::VERSION} is running, with Minitest::Unit #{Utils.minitest_version}!"
|
23
22
|
run_all if @options[:all_on_start]
|
24
23
|
end
|
25
24
|
|
@@ -1,7 +1,5 @@
|
|
1
|
-
require 'guard/notifier'
|
2
|
-
|
3
1
|
module Guard
|
4
|
-
class Minitest
|
2
|
+
class Minitest < Plugin
|
5
3
|
class Notifier
|
6
4
|
|
7
5
|
def self.guard_message(test_count, assertion_count, failure_count, error_count, skip_count, duration)
|
@@ -31,7 +29,7 @@ module Guard
|
|
31
29
|
message = guard_message(test_count, assertion_count, failure_count, error_count, skip_count, duration)
|
32
30
|
image = guard_image(failure_count + error_count, skip_count)
|
33
31
|
|
34
|
-
::
|
32
|
+
Compat::UI.notify(message, title: 'Minitest results', image: image)
|
35
33
|
end
|
36
34
|
|
37
35
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'guard/minitest/inspector'
|
2
2
|
|
3
3
|
module Guard
|
4
|
-
class Minitest
|
4
|
+
class Minitest < Plugin
|
5
5
|
class Runner
|
6
6
|
attr_accessor :inspector
|
7
7
|
|
@@ -35,14 +35,14 @@ module Guard
|
|
35
35
|
return unless options[:all] || !paths.empty?
|
36
36
|
|
37
37
|
message = "Running: #{options[:all] ? 'all tests' : paths.join(' ')}"
|
38
|
-
UI.info message, reset: true
|
38
|
+
Compat::UI.info message, reset: true
|
39
39
|
|
40
40
|
status = _run_command(paths, options[:all])
|
41
41
|
|
42
42
|
# When using zeus or spring, the Guard::Minitest::Reporter can't be used because the minitests run in another
|
43
43
|
# process, but we can use the exit status of the client process to distinguish between :success and :failed.
|
44
44
|
if zeus? || spring?
|
45
|
-
::
|
45
|
+
Compat::UI.notify(message, title: 'Minitest results', image: status ? :success : :failed)
|
46
46
|
end
|
47
47
|
|
48
48
|
if @options[:all_after_pass] && status && !options[:all]
|
@@ -242,7 +242,7 @@ module Guard
|
|
242
242
|
final_value << " #{value}" unless [TrueClass, FalseClass].include?(value.class)
|
243
243
|
cli_options << final_value
|
244
244
|
|
245
|
-
UI.info %{DEPRECATION WARNING: The :#{key} option is deprecated. Pass standard command line argument "--#{key}" to Minitest with the :cli option.}
|
245
|
+
Compat::UI.info %{DEPRECATION WARNING: The :#{key} option is deprecated. Pass standard command line argument "--#{key}" to Minitest with the :cli option.}
|
246
246
|
end
|
247
247
|
end
|
248
248
|
end
|
data/lib/guard/minitest/utils.rb
CHANGED
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: 2.
|
4
|
+
version: 2.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yann Lugrin
|
@@ -9,22 +9,22 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2015-01-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name: guard
|
15
|
+
name: guard-compat
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '2
|
20
|
+
version: '1.2'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '2
|
27
|
+
version: '1.2'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: minitest
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -95,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
95
95
|
version: '0'
|
96
96
|
requirements: []
|
97
97
|
rubyforge_project:
|
98
|
-
rubygems_version: 2.
|
98
|
+
rubygems_version: 2.4.2
|
99
99
|
signing_key:
|
100
100
|
specification_version: 4
|
101
101
|
summary: Guard plugin for the Minitest framework
|