diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rbot/load-gettext.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/rbot/load-gettext.rb b/lib/rbot/load-gettext.rb index 5e2ec186..d45263e1 100644 --- a/lib/rbot/load-gettext.rb +++ b/lib/rbot/load-gettext.rb @@ -18,7 +18,9 @@ end require 'gettext/version' gettext_version = GetText::VERSION.split('.').map {|n| n.to_i} - include Comparable # for Array#>= + class ::Array + include Comparable # for Array#>= + end unless gettext_version >= [1, 8, 0] raise GetTextVersionError, "Unsupported ruby-gettext version installed: #{gettext_version.join '.'}; supported versions are 1.8.0 and above" end |