Fixed new_modified_files rerun conditions on Guard.run_on_change_for_all_guards

This commit is contained in:
Thibaud Guillaume-Gentil 2011-04-19 09:40:34 +02:00
parent c5df9949fe
commit 98c112c074
2 changed files with 7 additions and 2 deletions

View File

@ -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) == 0.3.2 (Avril 17, 2011)
Bugs fixes: Bugs fixes:

View File

@ -51,8 +51,8 @@ module Guard
# Reparse the whole directory to catch new files modified during the guards run # Reparse the whole directory to catch new files modified during the guards run
new_modified_files = listener.modified_files([Dir.pwd + '/'], :all => true) new_modified_files = listener.modified_files([Dir.pwd + '/'], :all => true)
listener.update_last_event listener.update_last_event
unless new_modified_files.empty? if !new_modified_files.empty? && Watcher.match_files?(guards, new_modified_files)
run { run_on_change_for_all_guards(new_modified_files) } if Watcher.match_files?(guards, files) run { run_on_change_for_all_guards(new_modified_files) }
end end
end end