Skip to content
This repository
Browse code

Update Lobster example

  • Loading branch information...
commit 5c8bcae63aa441faddfd42ce8007c559571e9304 1 parent 4bd390a
Oscar Del Ben authored January 06, 2013
2  example/protectedlobster.rb
@@ -11,4 +11,4 @@
11 11
 
12 12
 pretty_protected_lobster = Rack::ShowStatus.new(Rack::ShowExceptions.new(protected_lobster))
13 13
 
14  
-Rack::Handler::WEBrick.run pretty_protected_lobster, :Port => 9292
  14
+Rack::Server.start :app => pretty_protected_lobster, :Port => 9292
6  lib/rack/lobster.rb
@@ -59,7 +59,7 @@ def call(env)
59 59
 if $0 == __FILE__
60 60
   require 'rack'
61 61
   require 'rack/showexceptions'
62  
-  Rack::Handler::WEBrick.run \
63  
-    Rack::ShowExceptions.new(Rack::Lint.new(Rack::Lobster.new)),
64  
-    :Port => 9292
  62
+  Rack::Server.start(
  63
+    :app => Rack::ShowExceptions.new(Rack::Lint.new(Rack::Lobster.new)), :Port => 9292
  64
+  )
65 65
 end

0 notes on commit 5c8bcae

Please sign in to comment.
Something went wrong with that request. Please try again.