Fixed new_modified_files rerun conditions on Guard.run_on_change_for_all_guards
This commit is contained in:
parent
c5df9949fe
commit
98c112c074
@ -1,3 +1,8 @@
|
||||
== 0.3.3 (Avril 18, 2011)
|
||||
|
||||
Bugs fixes:
|
||||
- Fixed new_modified_files rerun conditions on Guard.run_on_change_for_all_guards
|
||||
|
||||
== 0.3.2 (Avril 17, 2011)
|
||||
|
||||
Bugs fixes:
|
||||
|
@ -51,8 +51,8 @@ module Guard
|
||||
# Reparse the whole directory to catch new files modified during the guards run
|
||||
new_modified_files = listener.modified_files([Dir.pwd + '/'], :all => true)
|
||||
listener.update_last_event
|
||||
unless new_modified_files.empty?
|
||||
run { run_on_change_for_all_guards(new_modified_files) } if Watcher.match_files?(guards, files)
|
||||
if !new_modified_files.empty? && Watcher.match_files?(guards, new_modified_files)
|
||||
run { run_on_change_for_all_guards(new_modified_files) }
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user