lib/rack/handler/rails-server.rb in rack-handlers-0.5.5 vs lib/rack/handler/rails-server.rb in rack-handlers-0.5.6

- old
+ new

@@ -1,24 +1,12 @@ if ARGV[0] && ARGV[0] == 'server'[0, ARGV[0].size] && ARGV[1] !~ /^\w+/ server = %w[zbatery rainbows unicorn puma thin].find do |s| begin require s - - require 'rack/server' - class ::Rack::Server - alias_method :old_default_options, :default_options - end - - ::Rack::Server.module_eval <<-RUBY - def default_options - old_default_options.merge(:config_file => "config/#{s}.rb") - end - RUBY - true - rescue LoadError + false end end ARGV.insert(1, server) end