Sha256: 94884140c17a40e94f2cfb1b6418f22c3e0e1adf9451a7584e10b78b30c8e1b4
Contents?: true
Size: 467 Bytes
Versions: 6
Compression:
Stored size: 467 Bytes
Contents
class Autotest def find_files result = {} Find.find '.' do |f| Find.prune if @exceptions and f =~ @exceptions and test ?d, f next if test ?d, f next if f =~ /(swp|~|rej|orig|flymake)$/ # temporary/patch files next if f =~ /\/\.?#/ # Emacs autosave/cvs merge files filename = f.sub(/^\.\//, '') result[filename] = File.stat(filename).mtime rescue next end return result end end
Version data entries
6 entries across 6 versions & 1 rubygems