lib/rack/reloader.rb in rack-1.0.1 vs lib/rack/reloader.rb in rack-1.1.0

- old
+ new

@@ -1,7 +1,8 @@ # Copyright (c) 2009 Michael Fellinger m.fellinger@gmail.com -# All files in this distribution are subject to the terms of the Ruby license. +# Rack::Reloader is subject to the terms of an MIT-style license. +# See COPYING or http://www.opensource.org/licenses/mit-license.php. require 'pathname' module Rack @@ -90,9 +91,11 @@ paths.find do |possible_path| path = ::File.join(possible_path, file) found, stat = safe_stat(path) return ::File.expand_path(found), stat if found end + + return false, false end def safe_stat(file) return unless file stat = ::File.stat(file)