guard-minitest 2.0.1 → 2.1.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 +9 -0
- data/lib/guard/minitest/runner.rb +8 -4
- data/lib/guard/minitest/version.rb +1 -1
- 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: 1497dd4a33c2958985310bafa7c76547534c5790
|
|
4
|
+
data.tar.gz: 5fec2bebb83ec7b7dac97ae916ae52b5c9b54263
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: aa5c052ec6ef9090a406f6769ad3dd46e60ccdca244c673c4ad0c270d64887f04225ccf921bb53f8e001c9c3377bbb8a53d74f4684a3f8f27a84e10db06dd3c6
|
|
7
|
+
data.tar.gz: 426768394db57df8b0aa7f217bf96b101730fc33462989dde05c0aa55d05a1c375584257cd7c0e2819112d8a259ca7faab00ed99fa4e7a212e45391a660e7a7c
|
data/README.md
CHANGED
|
@@ -129,6 +129,15 @@ guard :minitest, spring: true do
|
|
|
129
129
|
end
|
|
130
130
|
```
|
|
131
131
|
|
|
132
|
+
From `spring 0.9.1`, `spring testunit` command haved removed to [spring-commands-testunit](https://github.com/jonleighton/spring-commands-testunit), if you are using
|
|
133
|
+
rails >=4.0 and spring >=0.9.1
|
|
134
|
+
|
|
135
|
+
```ruby
|
|
136
|
+
guard :minitest, spring: 'rake test' do
|
|
137
|
+
# ...
|
|
138
|
+
end
|
|
139
|
+
```
|
|
140
|
+
|
|
132
141
|
[Zeus](https://github.com/burke/zeus) is supported, but you must enable it.
|
|
133
142
|
Please note that notifications support is very basic when using Zeus. The zeus client exit status is evaluated, and
|
|
134
143
|
a Guard `:success` or `:failed` notification is triggered. It does not include the test results though.
|
|
@@ -71,7 +71,7 @@ module Guard
|
|
|
71
71
|
end
|
|
72
72
|
|
|
73
73
|
def spring?
|
|
74
|
-
@options[:spring]
|
|
74
|
+
@options[:spring].is_a?(String) || @options[:spring]
|
|
75
75
|
end
|
|
76
76
|
|
|
77
77
|
def test_folders
|
|
@@ -111,15 +111,19 @@ module Guard
|
|
|
111
111
|
|
|
112
112
|
def zeus_command(paths)
|
|
113
113
|
command = @options[:zeus].is_a?(String) ? @options[:zeus] : 'test'
|
|
114
|
-
|
|
115
114
|
['zeus', command] + relative_paths(paths)
|
|
116
115
|
end
|
|
117
116
|
|
|
118
117
|
def spring_command(paths)
|
|
119
|
-
|
|
118
|
+
command = @options[:spring].is_a?(String) ? @options[:spring] : 'testunit'
|
|
119
|
+
cmd_parts = ['spring', command]
|
|
120
120
|
cmd_parts << File.expand_path('../runners/old_runner.rb', __FILE__) unless minitest_version_gte_5?
|
|
121
121
|
|
|
122
|
-
|
|
122
|
+
if cli_options.length > 0
|
|
123
|
+
cmd_parts + relative_paths(paths) + ['--'] + cli_options
|
|
124
|
+
else
|
|
125
|
+
cmd_parts + relative_paths(paths)
|
|
126
|
+
end
|
|
123
127
|
end
|
|
124
128
|
|
|
125
129
|
def ruby_command(paths)
|
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.0
|
|
4
|
+
version: 2.1.0
|
|
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: 2013-11-
|
|
12
|
+
date: 2013-11-16 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: guard
|