summaryrefslogtreecommitdiff
path: root/lib/rbot/load-gettext.rb
diff options
context:
space:
mode:
authorYaohan Chen <hagabaka@nanomachine.STUDENT.cwru.edu>2008-03-11 04:59:21 -0400
committerYaohan Chen <hagabaka@nanomachine.STUDENT.cwru.edu>2008-03-11 04:59:21 -0400
commit78cea25b77b40a3d3c40f38fa876176875492850 (patch)
treec57d2acbb2c5c77dd0df04babb85fa3280b26fb1 /lib/rbot/load-gettext.rb
parentfc8a94f8368043f8162e2d2981e6ac6957a863e3 (diff)
load-gettext.rb: accept ruby-gettext version of 1.8.0 and above, not just 1.8.0-1.10.0
Diffstat (limited to 'lib/rbot/load-gettext.rb')
-rw-r--r--lib/rbot/load-gettext.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/rbot/load-gettext.rb b/lib/rbot/load-gettext.rb
index dd9961f5..6d739296 100644
--- a/lib/rbot/load-gettext.rb
+++ b/lib/rbot/load-gettext.rb
@@ -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'