From 68accc9930b0653b702553790d4ccd626a8dfdfe Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 26 Dec 2010 03:09:47 +0000 Subject: rev: split out Rainbows::Rev::Server One file per class/module should be easier for new hackers to find. Unindent rainbows/rev/core while we're at it, too. --- lib/rainbows/rev.rb | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'lib/rainbows/rev.rb') diff --git a/lib/rainbows/rev.rb b/lib/rainbows/rev.rb index 71bcfcc..47ee17f 100644 --- a/lib/rainbows/rev.rb +++ b/lib/rainbows/rev.rb @@ -1,6 +1,4 @@ # -*- encoding: binary -*- -require 'rainbows/rev/core' -require 'rainbows/rev/client' # Implements a basic single-threaded event model with # {Rev}[http://rev.rubyforge.org/]. It is capable of handling @@ -21,7 +19,6 @@ require 'rainbows/rev/client' # temporary file before the application is entered. module Rainbows::Rev - # :stopdoc: # keep-alive timeout scoreboard KATO = {} @@ -33,9 +30,11 @@ module Rainbows::Rev CONN.compare_by_identity KATO.compare_by_identity end - - include Rainbows::Rev::Core # :startdoc: end +# :enddoc: +require 'rainbows/rev/core' +require 'rainbows/rev/client' +Rainbows::Rev.__send__ :include, Rainbows::Rev::Core require 'rainbows/rev/deferred_response' require 'rainbows/rev/deferred_chunk_response' -- cgit v1.2.3-24-ge0c7