guard-minitest 1.1.0 → 1.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3b52850a41fa2fccaa08c18f188994ed497b5759
4
- data.tar.gz: 863ba5f22e044ebd9483aad03c8fa34c75887070
3
+ metadata.gz: 9b15702dae94ca41bd0cdea4bd73a5faedd8e82c
4
+ data.tar.gz: 922ca0e7f099141661cdf2172c9b7b150019c75c
5
5
  SHA512:
6
- metadata.gz: 5e75062a411b48f7a811c9d4482a8cdf7d63a1e2f8c5d9cd9502af77769846198e1eef537b7e4d860720250a2cf3f89e22e4d6b08dc831bb0d9f0b47fb6d0758
7
- data.tar.gz: cb659d38ae3ed196778ba679e6f46d310b7e4c9b38f530f4d3555401150b2b14bee62245f71b694527079379bae1fa3b85d5c56aed0a59b0448456c3aaea5493
6
+ metadata.gz: b318ea300c353a5c7bf6c5f18c711b7948438d3c4cf7a149a46a9222fe1fbeb3bc2a0e1923ee76bd0d249618ea34cece9c17e752b892bd78310663d0c3587467
7
+ data.tar.gz: 3a43951132dd54aea63a25a683337df80afc6cad1a07a7e10f1b53796b7cf7d1a5a62a5b64cf1a5ff60bc40cd68751fdd6299a2f7e81ca9bc1e4f2ad1732e3a4
data/CHANGELOG.md CHANGED
@@ -1,6 +1,14 @@
1
1
  ## Unreleased Changes
2
2
 
3
- [Full Changelog](https://github.com/guard/guard-minitest/compare/v1.1.0...master)
3
+ [Full Changelog](https://github.com/guard/guard-minitest/compare/v1.2.0...master)
4
+
5
+ ## 1.2.0 - Sept 10, 2013
6
+
7
+ [Full Changelog](https://github.com/guard/guard-minitest/compare/v1.1.0...v1.2.0)
8
+
9
+ ### Improvement
10
+
11
+ * [#81][] Clears memoized test files on additions and removals. ([@pschyska][])
4
12
 
5
13
  ## 1.1.0 - Aug 19, 2013
6
14
 
@@ -183,6 +191,7 @@ First stable release.
183
191
  [#72]: https://github.com/guard/guard-minitest/issues/72
184
192
  [#73]: https://github.com/guard/guard-minitest/issues/73
185
193
  [#77]: https://github.com/guard/guard-minitest/issues/77
194
+ [#81]: https://github.com/guard/guard-minitest/issues/81
186
195
  [@aflock]: https://github.com/aflock
187
196
  [@arronmabrey]: https://github.com/arronmabrey
188
197
  [@aspiers]: https://github.com/aspiers
@@ -193,6 +202,7 @@ First stable release.
193
202
  [@kejadlen]: https://github.com/kejadlen
194
203
  [@leemhenson]: https://github.com/leemhenson
195
204
  [@manewitz]: https://github.com/manewitz
205
+ [@pschyska]: https://github.com/pschyska
196
206
  [@psyho]: https://github.com/psyho
197
207
  [@rafmagana]: https://github.com/rafmagana
198
208
  [@rymai]: https://github.com/rymai
@@ -201,4 +211,4 @@ First stable release.
201
211
  [@sbrink]: https://github.com/sbrink
202
212
  [@sometimesfood]: https://github.com/sometimesfood
203
213
  [@statianzo]: https://github.com/statianzo
204
- [@yannlugrin]: https://github.com/yannlugrin
214
+ [@yannlugrin]: https://github.com/yannlugrin
data/README.md CHANGED
@@ -110,6 +110,12 @@ Please note that notification are currently disabled when using Zeus, if
110
110
  you're interested in adding notification support for Zeus, please
111
111
  [open a new issue](https://github.com/guard/guard-minitest/issues/new).
112
112
 
113
+ If your test helper matches the test_file_patterns, it can lead to problems
114
+ as guard-minitest will submit the test helper itself to the zeus test
115
+ command when running all tests. For example, if the test helper is
116
+ called ``test/test_helper.rb`` it will match ``test_*.rb``. In this case you can
117
+ either change the test_file_patterns or rename the test helper.
118
+
113
119
  ```ruby
114
120
  guard :minitest, :zeus => true do
115
121
  # ...
@@ -42,6 +42,15 @@ module Guard
42
42
  @runner.run(paths)
43
43
  end
44
44
 
45
+ def run_on_additions(paths)
46
+ @inspector.clear_memoized_test_files
47
+ @runner.run(paths)
48
+ end
49
+
50
+ def run_on_removals(paths)
51
+ @inspector.clear_memoized_test_files
52
+ end
53
+
45
54
  private
46
55
 
47
56
  def _minitest_version
@@ -25,6 +25,10 @@ module Guard
25
25
  end.uniq
26
26
  end
27
27
 
28
+ def clear_memoized_test_files
29
+ @_all_test_files = nil
30
+ end
31
+
28
32
  private
29
33
 
30
34
  def _test_files_for_paths(paths = test_folders)
@@ -1,7 +1,7 @@
1
1
  module Guard
2
2
  class MinitestVersion
3
3
 
4
- VERSION = '1.1.0'
4
+ VERSION = '1.2.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.1.0
4
+ version: 1.2.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-08-19 00:00:00.000000000 Z
12
+ date: 2013-09-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: guard
@@ -94,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  version: '0'
95
95
  requirements: []
96
96
  rubyforge_project:
97
- rubygems_version: 2.0.3
97
+ rubygems_version: 2.0.7
98
98
  signing_key:
99
99
  specification_version: 4
100
100
  summary: Guard gem for the Minitest framework