lib/sinatra/main.rb in sinatra-1.3.0.f vs lib/sinatra/main.rb in sinatra-1.3.0.g

- old
+ new

@@ -6,10 +6,10 @@ # we assume that the first file that requires 'sinatra' is the # app_file. all other path related options are calculated based # on this path by default. set :app_file, caller_files.first || $0 - set :run, Proc.new { $0 == app_file } + set :run, Proc.new { File.expand_path($0) == File.expand_path(app_file) } if run? && ARGV.any? require 'optparse' OptionParser.new { |op| op.on('-x') { set :lock, true }