Permalink
Browse files

Hello AsyncRack::CommonLogger

  • Loading branch information...
1 parent 58a240f commit 596b206fb077b967f7dced6a4dc310a8da30b620 @lifo committed Aug 3, 2011
Showing with 7 additions and 0 deletions.
  1. +2 −0 Gemfile
  2. +3 −0 Gemfile.lock
  3. +2 −0 examples/sse/server.ru
View
@@ -22,4 +22,6 @@ group :example do
gem 'http_router'
gem 'erubis'
+
+ gem 'async-rack'
end
View
@@ -22,6 +22,8 @@ GEM
activesupport (3.0.9)
addressable (2.2.6)
arel (2.0.10)
+ async-rack (0.5.1)
+ rack (~> 1.1)
builder (2.1.2)
daemons (1.1.4)
em-http-request (0.3.0)
@@ -64,6 +66,7 @@ PLATFORMS
DEPENDENCIES
activerecord (~> 3.0.9)
+ async-rack
cramp!
em-http-request
em-synchrony
@@ -9,6 +9,7 @@ Bundler.setup(:default, :example)
require 'cramp'
require 'http_router'
require 'active_support/json'
+require 'async_rack'
class TimeController < Cramp::Action
self.transport = :sse
@@ -31,4 +32,5 @@ end
file_server = Rack::File.new(File.join(File.dirname(__FILE__), 'public'))
# bundle exec thin -V -R examples/sse/server.ru start
+use AsyncRack::CommonLogger
run Rack::Cascade.new([file_server, routes])

0 comments on commit 596b206

Please sign in to comment.