georgepalmer / backgroundrb_merb

A fork of backgroundrb for MERB

backgroundrb_merb / .autotest
e8d1ae26 » scala 2008-02-07 Check in test cases for cro... 1 class Autotest
2 def find_files
3 result = {}
4 Find.find '.' do |f|
5 Find.prune if @exceptions and f =~ @exceptions and test ?d, f
6
7 next if test ?d, f
8 next if f =~ /(swp|~|rej|orig|flymake)$/ # temporary/patch files
9 next if f =~ /\/\.?#/ # Emacs autosave/cvs merge files
10
11 filename = f.sub(/^\.\//, '')
12
13 result[filename] = File.stat(filename).mtime rescue next
14 end
15 return result
16 end
17 end