From f91622adc561d8982a107f947573b17759aad01b Mon Sep 17 00:00:00 2001 From: Thibaud Guillaume-Gentil Date: Sat, 3 Sep 2011 22:37:50 +0200 Subject: [PATCH] Clean --- lib/guard/listener.rb | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/lib/guard/listener.rb b/lib/guard/listener.rb index ad2058f..42a92ca 100644 --- a/lib/guard/listener.rb +++ b/lib/guard/listener.rb @@ -87,8 +87,6 @@ module Guard last_event = @last_event update_last_event files = potentially_modified_files(dirs, options).select { |path| file_modified?(path, last_event) } - # p "modified_files" - # p files relativize_paths(files) end @@ -147,27 +145,15 @@ module Guard # both values down to the second for the comparison. # ctime is used only on == comparaison to always catches Rails 3.1 Assets pipelined on Mac OSX def file_modified?(path, last_event) - # p path - # p @last_event.to_i - # p last_event.to_i - # p File.ctime(path).to_i - # p File.mtime(path).to_i if File.ctime(path).to_i == last_event.to_i - # p "File.ctime == last_event" - res = file_content_modified?(path, sha1_checksum(path)) - # p res.to_s - res + file_content_modified?(path, sha1_checksum(path)) elsif File.mtime(path).to_i > last_event.to_i - # p "File.ctime > last_event" set_sha1_checksums_hash(path, sha1_checksum(path)) - # p "true" true else - # p "false" false end rescue - # p "false" false end