]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
load-gettext.rb: accept ruby-gettext version of 1.8.0 and above, not just 1.8.0-1...
authorYaohan Chen <hagabaka@nanomachine.STUDENT.cwru.edu>
Tue, 11 Mar 2008 08:59:21 +0000 (04:59 -0400)
committerYaohan Chen <hagabaka@nanomachine.STUDENT.cwru.edu>
Tue, 11 Mar 2008 08:59:21 +0000 (04:59 -0400)
lib/rbot/load-gettext.rb

index dd9961f5fbe4f7a2a397a28d043df407441c6545..6d73929657b30ac62bdf0c5335210bd77f2a1cfd 100644 (file)
@@ -13,9 +13,9 @@ begin
   require 'gettext/version'
 
   gettext_version = GetText::VERSION.split('.').map {|n| n.to_i}
-  include Comparable # required for Array#between?
-  unless gettext_version.between? [1, 8, 0], [1, 10, 0]
-    raise GetTextVersionError, "Unsupported ruby-gettext version installed: #{gettext_version.join '.'}; supported versions are 1.8.0-1.10.0"
+  include Comparable # for Array#>=
+  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
 
   require 'gettext'