georgepalmer / backgroundrb_merb
- Source
- Commits
- Network (1)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Tree:
9a2690f
George Palmer (author)
Tue May 20 04:48:34 -0700 2008
backgroundrb_merb / .autotest
| e8d1ae26 » | scala | 2008-02-07 | 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 | ||||
