From afb7e51363c646751be1a12083c1c7b184e3fd47 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 20 Jul 2010 04:32:11 +0000 Subject: rely on autoload for Base and TeeInput Its conceivable that we can avoid loading TeeInput for EventMachine and Rev concurrency models in the future since it's unused there. --- lib/rainbows.rb | 4 ++-- lib/rainbows/base.rb | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/rainbows.rb b/lib/rainbows.rb index d0b3e8a..1a3d6ff 100644 --- a/lib/rainbows.rb +++ b/lib/rainbows.rb @@ -34,8 +34,8 @@ module Rainbows require 'rainbows/const' require 'rainbows/http_server' require 'rainbows/response' - require 'rainbows/base' - require 'rainbows/tee_input' + autoload :Base, 'rainbows/base' + autoload :TeeInput, 'rainbows/tee_input' autoload :Sendfile, 'rainbows/sendfile' autoload :AppPool, 'rainbows/app_pool' autoload :DevFdResponse, 'rainbows/dev_fd_response' diff --git a/lib/rainbows/base.rb b/lib/rainbows/base.rb index d9f46f7..180c80c 100644 --- a/lib/rainbows/base.rb +++ b/lib/rainbows/base.rb @@ -1,5 +1,4 @@ # -*- encoding: binary -*- -require 'rainbows/tee_input' # base class for Rainbows concurrency models, this is currently used by # ThreadSpawn and ThreadPool models. Base is also its own -- cgit v1.2.3-24-ge0c7