diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-12-08 00:48:50 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-12-08 00:49:35 -0800 |
commit | d2aba3d27fcff72b4db9d3f164247923d1ebd244 (patch) | |
tree | 178c72a3e0f4a6299d7314de9b61bd30cac553cb | |
parent | c0df78a84bde010034970effee30700fd502a401 (diff) | |
download | rainbows-d2aba3d27fcff72b4db9d3f164247923d1ebd244.tar.gz |
Don't expect RevThreadPool to work with Rev <= 0.3.1, either.
-rw-r--r-- | lib/rainbows/rev/master.rb | 4 | ||||
-rw-r--r-- | lib/rainbows/rev/thread.rb | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/lib/rainbows/rev/master.rb b/lib/rainbows/rev/master.rb index 5c112c6..01282f5 100644 --- a/lib/rainbows/rev/master.rb +++ b/lib/rainbows/rev/master.rb @@ -1,10 +1,6 @@ # -*- encoding: binary -*- require 'rainbows/rev' -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 module Rev diff --git a/lib/rainbows/rev/thread.rb b/lib/rainbows/rev/thread.rb index 8fa43ac..677a7c8 100644 --- a/lib/rainbows/rev/thread.rb +++ b/lib/rainbows/rev/thread.rb @@ -2,6 +2,9 @@ require 'thread' require 'rainbows/rev/master' +RUBY_VERSION =~ %r{\A1\.8} && Rev::VERSION < "0.3.2" and + warn "Rev (< 0.3.2) and Threads do not mix well under Ruby 1.8" + module Rainbows module Rev |