module Rack::Reloader::Stat

def rotation

def rotation
  files = [$0, *$LOADED_FEATURES].uniq
  paths = ['./', *$LOAD_PATH].uniq
  files.map{|file|
    next if /\.(so|bundle)$/.match?(file) # cannot reload compiled files
    found, stat = figure_path(file, paths)
    next unless found && stat && mtime = stat.mtime
    @cache[file] = found
    yield(found, mtime)
  }.compact
end