guard-minitest 2.4.5 → 2.4.6
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/runner.rb +1 -0
- data/lib/guard/minitest/version.rb +1 -1
- data/lib/minitest/guard_minitest_plugin.rb +17 -12
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f9412f8986710c9d971b9a9fa7ad8a018e166df7
|
4
|
+
data.tar.gz: ebbd7d98729ada3332ad928ef20bc17c181df786
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d85974d3af70a9f5140b5afda8467888dd80250248f3a8a35c659f916f841aa6e41c4242c1a62e87467e454d085f4e93b12af1806a5e9c9a4a54948b9c5bfb19
|
7
|
+
data.tar.gz: b2ce5b6f90e0dac076ca42d523e0ebf4cd348d323d4e869b76c2f0ad38fdc23478e7a94006483bf55eed64564f1f5c0694bd56e00a5d529b2975703b92c31717
|
@@ -1,19 +1,24 @@
|
|
1
|
-
|
1
|
+
module Minitest
|
2
|
+
def self.plugin_guard_minitest_options(opts, options) # :nodoc:
|
3
|
+
opts.on '--guard', 'Run with guard plugin enabled' do
|
4
|
+
options[:guard] = true
|
5
|
+
end
|
6
|
+
end
|
2
7
|
|
3
|
-
|
4
|
-
|
8
|
+
def self.plugin_guard_minitest_init(options) # :nodoc:
|
9
|
+
return unless options[:guard]
|
5
10
|
|
6
|
-
|
7
|
-
require 'guard/minitest/reporter'
|
8
|
-
else
|
9
|
-
require 'guard/minitest/reporters/old_reporter'
|
10
|
-
end
|
11
|
+
require 'guard/minitest/utils'
|
11
12
|
|
12
|
-
|
13
|
-
|
14
|
-
|
13
|
+
# Require guard unless we're using guard-minitest to test a guard plugin
|
14
|
+
require 'guard' unless Dir['guard-*.gemspec'].any?
|
15
|
+
|
16
|
+
if ::Guard::Minitest::Utils.minitest_version_gte_5_0_4?
|
17
|
+
require 'guard/minitest/reporter'
|
18
|
+
else
|
19
|
+
require 'guard/minitest/reporters/old_reporter'
|
20
|
+
end
|
15
21
|
|
16
|
-
def self.plugin_guard_minitest_init(_options) # :nodoc:
|
17
22
|
reporter << ::Guard::Minitest::Reporter.new
|
18
23
|
end
|
19
24
|
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: 2.4.
|
4
|
+
version: 2.4.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yann Lugrin
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-07-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: guard-compat
|