guard-minitest 1.3.0 → 1.3.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 65e8912f8037ce17d4a80f743fbb55a1510e6a99
4
- data.tar.gz: 7f03341c331405aa23707344af33ae0a6dfd1f52
3
+ metadata.gz: fc79a218b7a8c958ec5a7de511cfc2f37eefc70a
4
+ data.tar.gz: d60df1ced530cfcb37958d3adf34eff368817cc4
5
5
  SHA512:
6
- metadata.gz: 8bc848d2342201f1bfc691b3c863bde3cc3ba5e5e2591930b3d2f30d5fc74f2b1528281b690d369c82122f280f5fa234ef92d94a58f50335a770de6fa7be7e22
7
- data.tar.gz: a85d77b7cb6bf1cb6fd0096cf8263c2a3b4cba95f8283e55e61fe6a7fc3bc27677014e2b0bb7aa3be9b24f61220d338e11b3f2b669febc077e75e1da365dd67f
6
+ metadata.gz: e31bc293558b112c4a104d8688e5b9e6eb6ca3f796039cc6a59b15e990a4ec596450424b1c978b7b0f36e5f75612987d249e5cf550211cd2fc4a360837611257
7
+ data.tar.gz: 7fe6acf36fa12fb7a9be880527e5230c93939c005b67f991147bf1b620969af43453b4251f50ab7980c7c51ab4333d29055265184bd077e947d62555397fc78a
data/CHANGELOG.md CHANGED
@@ -1,223 +1 @@
1
- ## Master
2
-
3
- [Full Changelog](https://github.com/guard/guard-minitest/compare/v1.3.0...master)
4
-
5
- ## 1.3.0 - Sept 12, 2013
6
-
7
- [Full Changelog](https://github.com/guard/guard-minitest/compare/v1.2.0...v1.3.0)
8
-
9
- ### New feature
10
-
11
- * [#82][] Adds simple notifications support in zeus mode. ([@pschyska][])
12
-
13
- ## 1.2.0 - Sept 10, 2013
14
-
15
- [Full Changelog](https://github.com/guard/guard-minitest/compare/v1.1.0...v1.2.0)
16
-
17
- ### Improvement
18
-
19
- * [#81][] Clears memoized test files on additions and removals. ([@pschyska][])
20
-
21
- ## 1.1.0 - Aug 19, 2013
22
-
23
- [Full Changelog](https://github.com/guard/guard-minitest/compare/v1.0.1...v1.1.0)
24
-
25
- ### New feature
26
-
27
- * [#77][] Allow specifying arbitrary include paths. ([@psyho][])
28
-
29
- ## 1.0.1 - Jul 23, 2013
30
-
31
- [Full Changelog](https://github.com/guard/guard-minitest/compare/v1.0.0...v1.0.1)
32
-
33
- ### Bug fixes
34
-
35
- * [#73][] Don't unecessary require 'minitest/autorun'. ([@jakebellacera][], [@rafmagana][] & [@rymai][])
36
- * [#72][] Don't require `test` with `-Itest` when using DRb. ([@rafmagana][] & [@rymai][])
37
-
38
- ## 1.0.0 - Jul 10, 2013
39
-
40
- [Full Changelog](https://github.com/guard/guard-minitest/compare/v1.0.0.rc.3...v1.0.0)
41
-
42
- No significant changes compared to RC 3.
43
-
44
- ## 1.0.0.rc.3 - Jun 22, 2013
45
-
46
- [Full Changelog](https://github.com/guard/guard-minitest/compare/v1.0.0.rc.2...v1.0.0.rc.3)
47
-
48
- ### Improvements
49
-
50
- * [#70][] Use `-r minitest/autorun` instead of `-e 'Minitest.autorun'` in the runner. ([@kejadlen][])
51
- * Refactor / simplify `Guard::Minitest::Inspector`. ([@rymai][])
52
- * [#69][] Use `Gem::Requirement.new` to compare versions. ([@kejadlen][])
53
- * [#68][] Remove the unused test directory. ([@kejadlen][])
54
-
55
- ## 1.0.0.rc.2 - Jun 19, 2013
56
-
57
- [Full Changelog](https://github.com/guard/guard-minitest/compare/v1.0.0.rc.1...v1.0.0.rc.2)
58
-
59
- ### Bug fixes
60
-
61
- * Drop the `--pride` option. Users should add `require 'minitest/pride'` to their `test_helper.rb` instead. ([@rymai][])
62
- * Ensure `Minitest::Reporter` is used for Minitest < 5.0.4 (precisely). ([@rymai][])
63
-
64
- ## 1.0.0.rc.1 - Jun 19, 2013
65
-
66
- [Full Changelog](https://github.com/guard/guard-minitest/compare/v1.0.0.beta.2...v1.0.0.rc.1)
67
-
68
- ### Bug fixes
69
-
70
- * [#65][] Use `Minitest::StatisticsReporter` instead of `Minitest::Reporter` for Minitest > 5.0. ([@kejadlen][])
71
- * [#66][] Don't use the `--pride` option for Minitest < 5.0. ([@sbl][])
72
-
73
- ## 1.0.0.beta.2 - Jun 5, 2013
74
-
75
- [Full Changelog](https://github.com/guard/guard-minitest/compare/v1.0.0.beta1...v1.0.0.beta.2)
76
-
77
- ### Improvements
78
-
79
- * [#62][] Add notification when `spring` is used. ([@rymai][])
80
- * [#39][] Fix `watch` `Regex` for `lib` directory. ([@rymai][])
81
- * [#51][] Add color using the pride Minitest plugin (`--pride` option). ([@rymai][])
82
- * [#59][] Update spring command from test to testunit. ([@sbrink][])
83
- * [#57][] Add support for spring. ([@aspiers][])
84
- * [#56][] Include test directory in load path when DRb used. ([@sbleon][])
85
- * [#54][] Add support for zeus. ([@leemhenson][])
86
- * [#55][] Add `:all_on_start` option. ([@aflock][])
87
- * [#41][] Simplifying the DRb version of the runner. ([@chadoh][])
88
- * [#38][] Improve notification message formatting. ([@arronmabrey][])
89
-
90
- ## 1.0.0.beta1 - Dec 10, 2012
91
-
92
- [Full Changelog](https://github.com/guard/guard-minitest/compare/0.5.0...v1.0.0.beta1)
93
-
94
- ### Improvements
95
-
96
- Upgrade to match Guard 1.1 API:
97
-
98
- * Deprecate the `:notify` option. Use Guard notification configuration instead ([via the CLI](https://github.com/guard/guard#-n--notify-option) or [via the Guardfile](https://github.com/guard/guard#notification)) ([@yannlugrin][])
99
- * [#45][] Use `run_on_changes` method. ([@statianzo][])
100
-
101
- ### New feature
102
-
103
- * Add `:cli` option and deprecate `:seed` and `:verbose` options ([@yannlugrin][])
104
-
105
- ### Improvements
106
-
107
- * [#49][] Update Guardfile template for Rails 4. ([@itzki][])
108
- * [#43][] & [#46][] Fix README links. ([@manewitz][] & [@sometimesfood][])
109
-
110
- ## 0.5.0 - Feb 24, 2012
111
-
112
- [Full Changelog](https://github.com/guard/guard-minitest/compare/0.4.0...0.5.0)
113
-
114
- ### Bug fixes
115
-
116
- * Hard coded tests folders path. (Nathan Youngman)
117
- * Watch subfolder in Guardfile template. (Wilker Lúcio, Mark Kremer)
118
- * Notifications work with DRb. (Brian Morearty)
119
- * Initialized constant with Ruby 1.9. (Jonas Grimfelt)
120
-
121
- ### New features
122
-
123
- * Option to overwrite test folders and test files pattern. ([@japgolly][])
124
-
125
- ## 0.4.0 - Jun 15, 2011
126
-
127
- [Full Changelog](https://github.com/guard/guard-minitest/compare/0.3.0...0.4.0)
128
-
129
- ### New features
130
-
131
- * Support of MiniTest 2. ([@yannlugrin][])
132
- * DRB support. (Oriol Gual)
133
- * Use regexp in Guardfile Template. (Emmanuel Gomez)
134
-
135
- ### Improvement
136
-
137
- * Need guard 0.4 ([@yannlugrin][])
138
-
139
- ## 0.3.0 - Oct 27, 2010
140
-
141
- [Full Changelog](https://github.com/guard/guard-minitest/compare/0.2.2...0.3.0)
142
-
143
- ### Bug fixes
144
-
145
- * All guard API action return a boolean value
146
- * Depends on guard 0.2.2 to fix darwin watching problems
147
-
148
- ### New features
149
-
150
- * Desktop notification can be disabled
151
- * Bundler usage can be disabled
152
- * Rubygems usage can be enable (only if bundler is not present or disable)
153
-
154
- ## 0.2.2 - Oct 24, 2010
155
-
156
- [Full Changelog](https://github.com/guard/guard-minitest/compare/0.2.1...0.2.2)
157
-
158
- ### Bug fixes
159
-
160
- * Depends on guard 0.2.1 to fix linux watching probalems
161
- * Remove duplicate code
162
-
163
- ## 0.2.1 - Oct 22, 2010
164
-
165
- [Full Changelog](https://github.com/guard/guard-minitest/compare/0.2.0...0.2.1)
166
-
167
- ### Bug fixes
168
-
169
- * Don't set minitest seed option by default
170
-
171
- ### Improvement
172
-
173
- * Tested on Ruby 1.8.6
174
-
175
- ## 0.2.0 - Oct 20, 2010
176
-
177
- First stable release.
178
-
179
- <!--- The following link definition list is generated by PimpMyChangelog --->
180
- [#38]: https://github.com/guard/guard-minitest/issues/38
181
- [#39]: https://github.com/guard/guard-minitest/issues/39
182
- [#41]: https://github.com/guard/guard-minitest/issues/41
183
- [#43]: https://github.com/guard/guard-minitest/issues/43
184
- [#45]: https://github.com/guard/guard-minitest/issues/45
185
- [#46]: https://github.com/guard/guard-minitest/issues/46
186
- [#49]: https://github.com/guard/guard-minitest/issues/49
187
- [#51]: https://github.com/guard/guard-minitest/issues/51
188
- [#54]: https://github.com/guard/guard-minitest/issues/54
189
- [#55]: https://github.com/guard/guard-minitest/issues/55
190
- [#56]: https://github.com/guard/guard-minitest/issues/56
191
- [#57]: https://github.com/guard/guard-minitest/issues/57
192
- [#59]: https://github.com/guard/guard-minitest/issues/59
193
- [#62]: https://github.com/guard/guard-minitest/issues/62
194
- [#65]: https://github.com/guard/guard-minitest/issues/65
195
- [#66]: https://github.com/guard/guard-minitest/issues/66
196
- [#68]: https://github.com/guard/guard-minitest/issues/68
197
- [#69]: https://github.com/guard/guard-minitest/issues/69
198
- [#70]: https://github.com/guard/guard-minitest/issues/70
199
- [#72]: https://github.com/guard/guard-minitest/issues/72
200
- [#73]: https://github.com/guard/guard-minitest/issues/73
201
- [#77]: https://github.com/guard/guard-minitest/issues/77
202
- [#81]: https://github.com/guard/guard-minitest/issues/81
203
- [#82]: https://github.com/guard/guard-minitest/issues/82
204
- [@aflock]: https://github.com/aflock
205
- [@arronmabrey]: https://github.com/arronmabrey
206
- [@aspiers]: https://github.com/aspiers
207
- [@chadoh]: https://github.com/chadoh
208
- [@itzki]: https://github.com/itzki
209
- [@jakebellacera]: https://github.com/jakebellacera
210
- [@japgolly]: https://github.com/japgolly
211
- [@kejadlen]: https://github.com/kejadlen
212
- [@leemhenson]: https://github.com/leemhenson
213
- [@manewitz]: https://github.com/manewitz
214
- [@pschyska]: https://github.com/pschyska
215
- [@psyho]: https://github.com/psyho
216
- [@rafmagana]: https://github.com/rafmagana
217
- [@rymai]: https://github.com/rymai
218
- [@sbl]: https://github.com/sbl
219
- [@sbleon]: https://github.com/sbleon
220
- [@sbrink]: https://github.com/sbrink
221
- [@sometimesfood]: https://github.com/sometimesfood
222
- [@statianzo]: https://github.com/statianzo
223
- [@yannlugrin]: https://github.com/yannlugrin
1
+ # Moved to [GitHub releases](https://github.com/guard/guard-minitest/releases) page.
data/README.md CHANGED
@@ -33,6 +33,30 @@ Add guard definition to your Guardfile by running the following command:
33
33
  guard init minitest
34
34
  ```
35
35
 
36
+ ## Ruby on Rails
37
+
38
+ Ruby on Rails lazy loads gems as needed in its test suite.
39
+ As a result Guard::Minitest may not be able to run all tests until the gem dependencies are resolved.
40
+
41
+ To solve the issue either add the missing dependencies or remove the tests.
42
+
43
+ Example:
44
+
45
+ ```
46
+ Specify ruby-prof as application's dependency in Gemfile to run benchmarks.
47
+ ```
48
+
49
+ Rails automatically generates a performance test stub in the `test/performance` directory which can trigger this error.
50
+ Either add `ruby-prof` to your `Gemfile` (inside the `test` group):
51
+
52
+ ```ruby
53
+ group :test do
54
+ gem 'ruby-prof'
55
+ end
56
+ ```
57
+
58
+ Or remove the test (or even the `test/performance` directory if it isn't necessary.
59
+
36
60
  ## Usage
37
61
 
38
62
  Please read [Guard usage doc](http://github.com/guard/guard#readme)
@@ -132,10 +156,6 @@ guard :minitest, :drb => true do
132
156
  end
133
157
  ```
134
158
 
135
- ## Roadmap
136
-
137
- * Add notification support when using `zeus`.
138
-
139
159
  ## Development
140
160
 
141
161
  * Documentation hosted at [RubyDoc](http://rubydoc.info/github/guard/guard-minitest/master/frames).
@@ -153,8 +173,12 @@ For questions please join us in our [Google group](http://groups.google.com/grou
153
173
 
154
174
  ## Maintainer
155
175
 
156
- [Rémy Coutable](https://github.com/rymai) ([@rymai](http://twitter.com/rymai), [rymai.me](http://rymai.me))
176
+ [Rémy Coutable](https://github.com/rymai) ([@rymai](http://twitter.com/rymai), [rym.ai](http://rym.ai))
157
177
 
158
178
  ## Author
159
179
 
160
180
  [Yann Lugrin](https://github.com/yannlugrin)
181
+
182
+ ## Contributors
183
+
184
+ [https://github.com/guard/guard-minitest/contributors](https://github.com/guard/guard-minitest/contributors)
@@ -32,12 +32,21 @@ module Guard
32
32
  def run(paths, options = {})
33
33
  message = options[:message] || "Running: #{paths.join(' ')}"
34
34
  UI.info message, :reset => true
35
- status = system(minitest_command(paths))
36
- # When using zeus, the Guard::Minitest::Reporter can't be used because the minitests run in the zeus process.
37
- # We can use the exit status of the zeus client process though to distinguish between :success and :failed
38
- if zeus?
35
+
36
+ status = if bundler?
37
+ system(minitest_command(paths))
38
+ else
39
+ Bundler.with_clean_env do
40
+ system(minitest_command(paths))
41
+ end
42
+ end
43
+
44
+ # When using zeus or spring, the Guard::Minitest::Reporter can't be used because the minitests run in another
45
+ # process, but we can use the exit status of the client process to distinguish between :success and :failed.
46
+ if zeus? || spring?
39
47
  ::Guard::Notifier.notify(message, :title => 'Minitest results', :image => status ? :success : :failed)
40
48
  end
49
+
41
50
  status
42
51
  end
43
52
 
@@ -10,20 +10,15 @@ guard :minitest do
10
10
  # watch(%r{^spec/spec_helper\.rb}) { 'spec' }
11
11
 
12
12
  # Rails 4
13
- # watch(%r{^test/test_helper\.rb}) { 'test' }
14
- # watch(%r{^test/.+_test\.rb})
15
13
  # watch(%r{^app/(.+)\.rb}) { |m| "test/#{m[1]}_test.rb" }
16
14
  # watch(%r{^app/controllers/application_controller\.rb}) { 'test/controllers' }
17
15
  # watch(%r{^app/controllers/(.+)_controller\.rb}) { |m| "test/integration/#{m[1]}_test.rb" }
18
16
  # watch(%r{^app/views/(.+)_mailer/.+}) { |m| "test/mailers/#{m[1]}_mailer_test.rb" }
19
17
  # watch(%r{^lib/(.+)\.rb}) { |m| "test/lib/#{m[1]}_test.rb" }
18
+ # watch(%r{^test/.+_test\.rb})
19
+ # watch(%r{^test/test_helper\.rb}) { 'test' }
20
20
 
21
- # Rails 3.2
22
- # watch(%r{^app/controllers/(.*)\.rb}) { |m| "test/controllers/#{m[1]}_test.rb" }
23
- # watch(%r{^app/helpers/(.*)\.rb}) { |m| "test/helpers/#{m[1]}_test.rb" }
24
- # watch(%r{^app/models/(.*)\.rb}) { |m| "test/unit/#{m[1]}_test.rb" }
25
-
26
- # Rails
21
+ # Rails < 4
27
22
  # watch(%r{^app/controllers/(.*)\.rb}) { |m| "test/functional/#{m[1]}_test.rb" }
28
23
  # watch(%r{^app/helpers/(.*)\.rb}) { |m| "test/helpers/#{m[1]}_test.rb" }
29
24
  # watch(%r{^app/models/(.*)\.rb}) { |m| "test/unit/#{m[1]}_test.rb" }
@@ -1,7 +1,7 @@
1
1
  module Guard
2
2
  class MinitestVersion
3
3
 
4
- VERSION = '1.3.0'
4
+ VERSION = '1.3.1'
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: 1.3.0
4
+ version: 1.3.1
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-09-12 00:00:00.000000000 Z
12
+ date: 2013-09-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: guard