guard-minitest 1.2.0 → 1.3.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: 9b15702dae94ca41bd0cdea4bd73a5faedd8e82c
4
- data.tar.gz: 922ca0e7f099141661cdf2172c9b7b150019c75c
3
+ metadata.gz: 65e8912f8037ce17d4a80f743fbb55a1510e6a99
4
+ data.tar.gz: 7f03341c331405aa23707344af33ae0a6dfd1f52
5
5
  SHA512:
6
- metadata.gz: b318ea300c353a5c7bf6c5f18c711b7948438d3c4cf7a149a46a9222fe1fbeb3bc2a0e1923ee76bd0d249618ea34cece9c17e752b892bd78310663d0c3587467
7
- data.tar.gz: 3a43951132dd54aea63a25a683337df80afc6cad1a07a7e10f1b53796b7cf7d1a5a62a5b64cf1a5ff60bc40cd68751fdd6299a2f7e81ca9bc1e4f2ad1732e3a4
6
+ metadata.gz: 8bc848d2342201f1bfc691b3c863bde3cc3ba5e5e2591930b3d2f30d5fc74f2b1528281b690d369c82122f280f5fa234ef92d94a58f50335a770de6fa7be7e22
7
+ data.tar.gz: a85d77b7cb6bf1cb6fd0096cf8263c2a3b4cba95f8283e55e61fe6a7fc3bc27677014e2b0bb7aa3be9b24f61220d338e11b3f2b669febc077e75e1da365dd67f
@@ -1,6 +1,14 @@
1
- ## Unreleased Changes
1
+ ## Master
2
2
 
3
- [Full Changelog](https://github.com/guard/guard-minitest/compare/v1.2.0...master)
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][])
4
12
 
5
13
  ## 1.2.0 - Sept 10, 2013
6
14
 
@@ -14,7 +22,7 @@
14
22
 
15
23
  [Full Changelog](https://github.com/guard/guard-minitest/compare/v1.0.1...v1.1.0)
16
24
 
17
- ### New feature
25
+ ### New feature
18
26
 
19
27
  * [#77][] Allow specifying arbitrary include paths. ([@psyho][])
20
28
 
@@ -192,6 +200,7 @@ First stable release.
192
200
  [#73]: https://github.com/guard/guard-minitest/issues/73
193
201
  [#77]: https://github.com/guard/guard-minitest/issues/77
194
202
  [#81]: https://github.com/guard/guard-minitest/issues/81
203
+ [#82]: https://github.com/guard/guard-minitest/issues/82
195
204
  [@aflock]: https://github.com/aflock
196
205
  [@arronmabrey]: https://github.com/arronmabrey
197
206
  [@aspiers]: https://github.com/aspiers
data/README.md CHANGED
@@ -106,8 +106,10 @@ end
106
106
  ```
107
107
 
108
108
  [Zeus](https://github.com/burke/zeus) is supported, but you must enable it.
109
- Please note that notification are currently disabled when using Zeus, if
110
- you're interested in adding notification support for Zeus, please
109
+ Please note that notifications support is very basic when using Zeus. The zeus client exit status is evaluated, and
110
+ a Guard `:success` or `:failed` notification is triggered. It does not include the test results though.
111
+
112
+ If you're interested in improving it, please
111
113
  [open a new issue](https://github.com/guard/guard-minitest/issues/new).
112
114
 
113
115
  If your test helper matches the test_file_patterns, it can lead to problems
@@ -32,7 +32,13 @@ module Guard
32
32
  def run(paths, options = {})
33
33
  message = options[:message] || "Running: #{paths.join(' ')}"
34
34
  UI.info message, :reset => true
35
- system(minitest_command(paths))
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?
39
+ ::Guard::Notifier.notify(message, :title => 'Minitest results', :image => status ? :success : :failed)
40
+ end
41
+ status
36
42
  end
37
43
 
38
44
  def cli_options
@@ -1,7 +1,7 @@
1
1
  module Guard
2
2
  class MinitestVersion
3
3
 
4
- VERSION = '1.2.0'
4
+ VERSION = '1.3.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: 1.2.0
4
+ version: 1.3.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-09-10 00:00:00.000000000 Z
12
+ date: 2013-09-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: guard