From 98f928bb4949129b2d96617919ac7a6e51a69323 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 22 Oct 2009 00:25:59 -0700 Subject: initial EventMachine support Working for simple GET requests, completely untested otherwise and most definitely not able to handle async/Comet-style requests yet, either. No tests for this are enabled. This could share a lot of code with the existing Rev model. --- lib/rainbows.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/rainbows.rb') diff --git a/lib/rainbows.rb b/lib/rainbows.rb index aa58fab..a8985c6 100644 --- a/lib/rainbows.rb +++ b/lib/rainbows.rb @@ -56,6 +56,7 @@ module Rainbows :ThreadSpawn => 30, :ThreadPool => 10, :Rev => 50, + :EventMachine => 50, }.each do |model, _| u = model.to_s.gsub(/([a-z0-9])([A-Z0-9])/) { "#{$1}_#{$2.downcase!}" } autoload model, "rainbows/#{u.downcase!}" -- cgit v1.2.3-24-ge0c7