jhw uses full paths for everything now, this has to, too

This commit is contained in:
John Bintz 2011-10-17 15:15:57 -04:00
parent 7040e0e949
commit 6e2be80d6a

View File

@ -80,7 +80,7 @@ module Guard
end end
def filter_paths(paths) def filter_paths(paths)
paths.collect { |path| Dir[path] }.flatten.find_all { |path| File.extname(path)[valid_extensions] }.uniq paths.collect { |path| Dir[path] }.flatten.find_all { |path| File.extname(path)[valid_extensions] }.collect { |path| File.expand_path(path) }.uniq
end end
def valid_extensions def valid_extensions