vendor/bundle/ruby/1.8/gems/ZenTest-4.6.2/lib/autotest.rb
##
# Find the files to process, ignoring temporary files, source
# configuration management files, etc., and return a Hash mapping
# filename to modification time.
Find the files to process, ignoring temporary files, source
configuration management files, etc., and return a Hash mapping
filename to modification time.
Find the files to process ignoring temporary files source configuration management files etc . and return a Hash mapping filename to modification time .
def find_files
    result = {}
    targets = self.find_directories + self.extra_files
    self.find_order.clear
    targets.each do |target|
      order = []
      Find.find target do |f|
        Find.prune if f =~ self.exceptions
        next if test ?d, f
        next if f =~ /(swp|~|rej|orig)$/ 
        next if f =~ /^\.\/tmp/          
        next if f =~ /\/\.?#/            
        filename = f.sub(/^\.\//, '')
        result[filename] = File.stat(filename).mtime rescue next
        order << filename
      end
      self.find_order.push(*order.sort)
    end
    result
  end
def find_files result = { } targets = self . find_directories + self . extra_files self . find_order . clear targets . each do | target | order = [ ] Find . find target do | f | Find . prune if f =~ self . exceptions next if test ?d , f next if f =~ / (swp|~|rej|orig)$ / next if f =~ / ^ \. \/ tmp / next if f =~ / \/ \. ?# / filename = f . sub ( / ^ \. \/ / , '' ) result [ filename ] = File . stat ( filename ) . mtime rescue next order << filename end self . find_order . push ( * order . sort ) end result end
Find the files to process, ignoring temporary files, source
configuration management files, etc., and return a Hash mapping
filename to modification time.
Find the files to process ignoring temporary files source configuration management files etc . and return a Hash mapping filename to modification time .
# temporary/patch files # temporary dir, used by isolate # Emacs autosave/cvs merge files