guard-minitest 2.0.1 → 2.1.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
  SHA1:
3
- metadata.gz: 5d335009c134d780360a7daae843641ae8b49498
4
- data.tar.gz: 1a35749ac86394a9e4666d061c936628507f3417
3
+ metadata.gz: 1497dd4a33c2958985310bafa7c76547534c5790
4
+ data.tar.gz: 5fec2bebb83ec7b7dac97ae916ae52b5c9b54263
5
5
  SHA512:
6
- metadata.gz: dc8e650a6bfecb91f220298ae507c2de26ca1005b964ef3cbf126f86bf7f9214d72d7d0396c92e93e94407e87c835ac967bb6e72785a16a94542597e7306fe07
7
- data.tar.gz: 117339e9c95aaa6a232dd3bdff39370eabce536ddf4e023efbc4f428b691ca8db10ce98767a3e7be8173d53a219d13c73434b9b3c053b53cc1bd7f3b59e8af16
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
- cmd_parts = ['spring testunit']
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
- cmd_parts + relative_paths(paths)
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)
@@ -1,7 +1,7 @@
1
1
  module Guard
2
2
  class MinitestVersion
3
3
 
4
- VERSION = '2.0.1'
4
+ VERSION = '2.1.0'
5
5
 
6
6
  end
7
7
  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.0.1
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-15 00:00:00.000000000 Z
12
+ date: 2013-11-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: guard