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 CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGES
2
2
 
3
+ ## rack-handlers 0.5.4 -- 2012-08-15
4
+
5
+ * Fix my incautiousness.
6
+
3
7
  ## rack-handlers 0.5.3 -- 2012-08-15
4
8
 
5
9
  * Add `rack/handlers/rails-server` which would make `rails s` find the
data/Rakefile CHANGED
@@ -8,7 +8,7 @@ desc 'Generate gemspec'
8
8
  task 'gem:spec' do
9
9
  Gemgem.spec = Gemgem.create do |s|
10
10
  s.name = 'rack-handlers'
11
- s.version = '0.5.3'
11
+ s.version = '0.5.4'
12
12
 
13
13
  %w[rack].each{ |g| s.add_runtime_dependency(g) }
14
14
  end
@@ -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
- define_method :default_options do
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
- end
16
+ RUBY
17
+
18
+ true
14
19
 
15
20
  rescue LoadError
16
21
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "rack-handlers"
5
- s.version = "0.5.3"
5
+ s.version = "0.5.4"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Lin Jen-Shin (godfat)"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-handlers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: