Update Lobster example #484

Merged
merged 1 commit into from Jan 7, 2013
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