aboutsummaryrefslogtreecommitdiffhomepage
path: root/bin/sisu_webrick
diff options
context:
space:
mode:
Diffstat (limited to 'bin/sisu_webrick')
-rw-r--r--bin/sisu_webrick12
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/sisu_webrick b/bin/sisu_webrick
index 4abcaff4..ca678acd 100644
--- a/bin/sisu_webrick
+++ b/bin/sisu_webrick
@@ -5,12 +5,12 @@ begin
def ruby_version_ok?(base_version)
@v ||=RUBY_VERSION.scan(/\d+/)
vb=base_version.scan(/\d+/)
- if @v[0] < vb[0] \
- or @v[0] == vb[0] \
- && @v[1] < vb[1] \
- or @v[0] == vb[0] \
- && @v[1] == vb[1] \
- && @v[1] < vb[2]
+ if @v[0].to_i < vb[0].to_i \
+ or @v[0].to_i == vb[0].to_i \
+ && @v[1].to_i < vb[1].to_i \
+ or @v[0].to_i == vb[0].to_i \
+ && @v[1].to_i == vb[1].to_i \
+ && @v[1].to_i < vb[2].to_i
raise "Please, use Ruby#{vb} or later, current Ruby #{RUBY_VERSION}"
else check_incompatible_ruby_build?
end