Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update Lobster example

  • Loading branch information...
commit 5c8bcae63aa441faddfd42ce8007c559571e9304 1 parent 4bd390a
@oscardelben oscardelben authored
Showing with 4 additions and 4 deletions.
  1. +1 −1  example/protectedlobster.rb
  2. +3 −3 lib/rack/lobster.rb
View
2  example/protectedlobster.rb
@@ -11,4 +11,4 @@
pretty_protected_lobster = Rack::ShowStatus.new(Rack::ShowExceptions.new(protected_lobster))
-Rack::Handler::WEBrick.run pretty_protected_lobster, :Port => 9292
+Rack::Server.start :app => pretty_protected_lobster, :Port => 9292
View
6 lib/rack/lobster.rb
@@ -59,7 +59,7 @@ def call(env)
if $0 == __FILE__
require 'rack'
require 'rack/showexceptions'
- Rack::Handler::WEBrick.run \
- Rack::ShowExceptions.new(Rack::Lint.new(Rack::Lobster.new)),
- :Port => 9292
+ Rack::Server.start(
+ :app => Rack::ShowExceptions.new(Rack::Lint.new(Rack::Lobster.new)), :Port => 9292
+ )
end
Please sign in to comment.
Something went wrong with that request. Please try again.