summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorfranz <Franz.Netykafka@runbox.com>2009-06-15 21:59:56 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2009-08-26 23:31:37 +0200
commit7cad4b67e17cc734d26fb1366bd90684cc13c470 (patch)
tree12620646f2d9c349e8be77f8df27e29a835fdf89 /bin
parent0b95114018f49dde6078e88935db54b2c8f20dd5 (diff)
ruby 1.9: monkeypatch MonitorMixin and ConditionVariable
ruby 1.9's ConditionVariable#wait is not implemented for timeout != nil, this patch adds an implementation for it (see ruby-core:15847) Also, since MonitorMixin is included into TCPSocket in rbot, and TCPSocket#send != Object#send in ruby 1.9, i changed that to use __send__.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/rbot5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/rbot b/bin/rbot
index dcc8bba4..674f235f 100755
--- a/bin/rbot
+++ b/bin/rbot
@@ -98,6 +98,11 @@ rescue LoadError => e
exit 2
end
+# ruby 1.9 specific fixes
+unless RUBY_VERSION < '1.9'
+ require 'rbot/compat19'
+end
+
if ($opts["version"])
puts "rbot #{$version}"
exit 0