From 0a3e9cacd7ca2feb91bae23b0c678d5e986f866f Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 11 Jun 2010 08:47:41 +0000 Subject: update test infrastructure to support Rubinius Rubinius still has a few issues that prevent 100% support, but it basically works if log rotation or USR2 upgrades aren't required. Tickets for all known issues for Rubinius have been filed on the project's issue tracker. * rbx does not support -i/-p yet, so rely on MRI for that * "io/nonblock" is missing * avoiding any optional Gems for now (EM, Rev, etc..) --- lib/rainbows/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rainbows/base.rb') diff --git a/lib/rainbows/base.rb b/lib/rainbows/base.rb index 8e5031f..86ec733 100644 --- a/lib/rainbows/base.rb +++ b/lib/rainbows/base.rb @@ -16,7 +16,7 @@ module Rainbows G.tmp = worker.tmp # avoid spurious wakeups and blocking-accept() with 1.8 green threads - if RUBY_VERSION.to_f < 1.9 + if ! defined?(RUBY_ENGINE) && RUBY_VERSION.to_f < 1.9 require "io/nonblock" HttpServer::LISTENERS.each { |l| l.nonblock = true } end -- cgit v1.2.3-24-ge0c7