From b596f88703fb6d87b1fd16ba33d60efa9261d138 Mon Sep 17 00:00:00 2001 From: franz Date: Mon, 15 Jun 2009 22:07:45 +0200 Subject: [PATCH] ruby 1.9: disable the Singleton monkeypatch for 1.9 this monkeypatch doesn't work on 1.9 - Singleton has no _load method --- lib/rbot/irc.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/rbot/irc.rb b/lib/rbot/irc.rb index 9a9998e7..7970a773 100644 --- a/lib/rbot/irc.rb +++ b/lib/rbot/irc.rb @@ -24,6 +24,7 @@ require 'singleton' # The following monkeypatch is to fix a bug in Singleton where marshaling would # fail when trying to restore a marshaled Singleton due to _load being declared # private. +if RUBY_VERSION < '1.9' module ::Singleton public :_dump end @@ -33,6 +34,7 @@ class << Singleton public :_load end end +end class Object -- 2.39.2