rack-handlers 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES.md +4 -0
- data/Rakefile +1 -1
- data/lib/rack/handler/rails-server.rb +7 -2
- data/rack-handlers.gemspec +1 -1
- metadata +1 -1
data/CHANGES.md
CHANGED
data/Rakefile
CHANGED
@@ -7,10 +7,15 @@ if ARGV[0] == 'server'[0, ARGV[0].size] && ARGV[1] !~ /^\w+/
|
|
7
7
|
require 'rack/server'
|
8
8
|
class ::Rack::Server
|
9
9
|
alias_method :old_default_options, :default_options
|
10
|
-
|
10
|
+
end
|
11
|
+
|
12
|
+
::Rack::Server.module_eval <<-RUBY
|
13
|
+
def default_options
|
11
14
|
old_default_options.merge(:config_file => "config/#{s}.rb")
|
12
15
|
end
|
13
|
-
|
16
|
+
RUBY
|
17
|
+
|
18
|
+
true
|
14
19
|
|
15
20
|
rescue LoadError
|
16
21
|
end
|
data/rack-handlers.gemspec
CHANGED