From 23921538a108ab7aeb5b2654b58101e15259238f Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 26 Nov 2009 22:55:11 -0800 Subject: RevThreadSpawn: hope for 1.8 performance Patches submitted to rev-talk, awaiting feedback and hopefully a new release. --- lib/rainbows/rev_thread_spawn.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/rainbows/rev_thread_spawn.rb') diff --git a/lib/rainbows/rev_thread_spawn.rb b/lib/rainbows/rev_thread_spawn.rb index f2ce822..ae7ff79 100644 --- a/lib/rainbows/rev_thread_spawn.rb +++ b/lib/rainbows/rev_thread_spawn.rb @@ -1,8 +1,9 @@ # -*- encoding: binary -*- require 'rainbows/rev' -RUBY_VERSION =~ %r{\A1\.8} and - warn "Rainbows::RevThreadSpawn does not work well under Ruby 1.8" +RUBY_VERSION =~ %r{\A1\.8} && ::Rev::VERSION < "0.3.2" and + warn "Rainbows::RevThreadSpawn + Rev (< 0.3.2)" \ + " does not work well under Ruby 1.8" module Rainbows -- cgit v1.2.3-24-ge0c7