about summary refs log tree commit homepage
path: root/lib/rainbows/rev/thread.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-12-08 00:48:50 -0800
committerEric Wong <normalperson@yhbt.net>2009-12-08 00:49:35 -0800
commitd2aba3d27fcff72b4db9d3f164247923d1ebd244 (patch)
tree178c72a3e0f4a6299d7314de9b61bd30cac553cb /lib/rainbows/rev/thread.rb
parentc0df78a84bde010034970effee30700fd502a401 (diff)
downloadrainbows-d2aba3d27fcff72b4db9d3f164247923d1ebd244.tar.gz
Don't expect RevThreadPool to work with Rev <= 0.3.1, either.
Diffstat (limited to 'lib/rainbows/rev/thread.rb')
-rw-r--r--lib/rainbows/rev/thread.rb3
1 files changed, 3 insertions, 0 deletions
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