Permalink
Browse files

fix unicorn and rainbows, add ebb

  • Loading branch information...
1 parent 5c79cdf commit 4f4fd605a7da423622765146ea1b48e83115c033 @rkh committed Feb 15, 2010
Showing with 7 additions and 3 deletions.
  1. +1 −0 README.md
  2. +5 −3 lib/sinatra/more_server.rb
  3. +1 −0 spec/sinatra/more_server_spec.rb
View
@@ -22,6 +22,7 @@ Currently, this extensions adds support for:
* [Unicorn](http://unicorn.bogomips.org/)
* [Rainbows!](http://rainbows.bogomips.org/)
+* [Ebb](http://ebb.rubyforge.org/)
Usage
-----
@@ -6,9 +6,11 @@ module MoreServer
autoload :Unicorn, "big_band/more_server/unicorn"
autoload :Rainbows, "big_band/more_server/rainbows"
def self.registered(klass)
- Rack::Handler.register "unicorn", "BigBand::MoreServer::Unicorn"
- Rack::Handler.register "rainbows", "BigBand::MoreServer::Rainbows"
- klass.server += ["rainbows", "unicorn"]
+ ::Rack::Handler.register "unicorn", "::Sinatra::MoreServer::Unicorn"
+ ::Rack::Handler.register "rainbows", "::Sinatra::MoreServer::Rainbows"
+ ::Rack::Handler.register "ebb", "::Rack::Handler::Ebb"
+ ::Rack::Handler.autoload :Ebb, "ebb"
+ klass.server += ["ebb", "rainbows", "unicorn"]
end
end
@@ -4,4 +4,5 @@
before { app :MoreServer }
it("should offer unicorn") { app.server.should include("unicorn") }
it("should offer rainbows") { app.server.should include("rainbows") }
+ it("should offer ebb") { app.server.should include("ebb") }
end

0 comments on commit 4f4fd60

Please sign in to comment.