From 40445641f11f01c6a24bf96c8b80eed5fd33a512 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 28 Dec 2010 17:59:27 -0800 Subject: complete Rev => Coolio renaming We use Cool.io internally everywhere now, but preserve Rev-based models for anybody using them. --- lib/rainbows/rev.rb | 29 ++--------------------------- 1 file changed, 2 insertions(+), 27 deletions(-) (limited to 'lib/rainbows/rev.rb') diff --git a/lib/rainbows/rev.rb b/lib/rainbows/rev.rb index 16d00aa..b0a8940 100644 --- a/lib/rainbows/rev.rb +++ b/lib/rainbows/rev.rb @@ -1,5 +1,5 @@ # -*- encoding: binary -*- -require 'rainbows/coolio_support' +Rainbows.const_set(:Rev, Rainbows::Coolio) # Coolio is the new version of this, use that instead. # # Implements a basic single-threaded event model with @@ -19,29 +19,4 @@ require 'rainbows/coolio_support' # allows the Rack application to process data as it arrives. This # means "rack.input" will be fully buffered in memory or to a # temporary file before the application is entered. - -module Rainbows::Rev - # :stopdoc: - # keep-alive timeout scoreboard - KATO = {} - - # all connected clients - CONN = {} - - if {}.respond_to?(:compare_by_identity) - CONN.compare_by_identity - KATO.compare_by_identity - end - - autoload :Master, 'rainbows/rev/master' - autoload :ThreadClient, 'rainbows/rev/thread_client' - autoload :DeferredChunkResponse, 'rainbows/rev/deferred_chunk_response' - # :startdoc: -end -# :enddoc: -require 'rainbows/rev/heartbeat' -require 'rainbows/rev/server' -require 'rainbows/rev/core' -require 'rainbows/rev/deferred_response' -require 'rainbows/rev/client' -Rainbows::Rev.__send__ :include, Rainbows::Rev::Core +module Rainbows::Rev; end -- cgit v1.2.3-24-ge0c7