guard 0.8.5 → 0.8.6
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +8 -0
- data/lib/guard.rb +6 -3
- data/lib/guard/version.rb +1 -1
- metadata +3 -3
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
## 0.8.6 - October 17, 2011
|
2
|
+
|
3
|
+
### Bug fix
|
4
|
+
|
5
|
+
- [#149](https://github.com/guard/guard/issues/160): Include objects in changed_paths when Guard allows any return from the watchers. (reported by [@earlonrails][], fixed by [@netzpirat][])
|
6
|
+
- [#168](https://github.com/guard/guard/issues/167): Fix `guard init` path to Guardfile template. (reported by [@semperos][])
|
7
|
+
|
1
8
|
## 0.8.5 - October 17, 2011
|
2
9
|
|
3
10
|
### Improvements
|
@@ -333,6 +340,7 @@
|
|
333
340
|
[@pcreux]: https://github.com/pcreux
|
334
341
|
[@rmm5t]: https://github.com/rmm5t
|
335
342
|
[@rymai]: https://github.com/rymai
|
343
|
+
[@semperos]: https://github.com/semperos
|
336
344
|
[@scottdavis]: https://github.com/scottdavis
|
337
345
|
[@stereobooster]: https://github.com/stereobooster
|
338
346
|
[@stouset]: https://github.com/stouset
|
data/lib/guard.rb
CHANGED
@@ -15,6 +15,9 @@ module Guard
|
|
15
15
|
autoload :Notifier, 'guard/notifier'
|
16
16
|
autoload :Hook, 'guard/hook'
|
17
17
|
|
18
|
+
# The Guardfile template for `guard init`
|
19
|
+
GUARDFILE_TEMPLATE = File.expand_path('../guard/templates/Guardfile', __FILE__)
|
20
|
+
|
18
21
|
class << self
|
19
22
|
attr_accessor :options, :interactor, :listener, :lock
|
20
23
|
|
@@ -32,7 +35,7 @@ module Guard
|
|
32
35
|
else
|
33
36
|
if !File.exist?('Guardfile')
|
34
37
|
::Guard::UI.info "Writing new Guardfile to #{ Dir.pwd }/Guardfile"
|
35
|
-
FileUtils.cp(
|
38
|
+
FileUtils.cp(GUARDFILE_TEMPLATE, 'Guardfile')
|
36
39
|
else
|
37
40
|
::Guard::UI.error "Guardfile already exists at #{ Dir.pwd }/Guardfile"
|
38
41
|
exit 1
|
@@ -280,7 +283,7 @@ module Guard
|
|
280
283
|
# @return [Array<String>] the changed paths
|
281
284
|
#
|
282
285
|
def changed_paths(paths)
|
283
|
-
paths.select { |f| !f.start_with?('!') }
|
286
|
+
paths.select { |f| !f.respond_to?(:start_with?) || !f.start_with?('!') }
|
284
287
|
end
|
285
288
|
|
286
289
|
# Detects the paths that have been deleted.
|
@@ -292,7 +295,7 @@ module Guard
|
|
292
295
|
# @return [Array<String>] the deleted paths
|
293
296
|
#
|
294
297
|
def deleted_paths(paths)
|
295
|
-
paths.select { |f| f.start_with?('!') }.map { |f| f.slice(1..-1) }
|
298
|
+
paths.select { |f| f.respond_to?(:start_with?) && f.start_with?('!') }.map { |f| f.slice(1..-1) }
|
296
299
|
end
|
297
300
|
|
298
301
|
# Run a Guard task, but remove the Guard when his work leads to a system failure.
|
data/lib/guard/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 51
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 8
|
9
|
-
-
|
10
|
-
version: 0.8.
|
9
|
+
- 6
|
10
|
+
version: 0.8.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Thibaud Guillaume-Gentil
|