aboutsummaryrefslogtreecommitdiffhomepage
path: root/bin/sisu3
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2011-04-27 20:32:05 -0400
committerRalph Amissah <ralph@amissah.com>2011-04-27 20:32:05 -0400
commit03073b714c0d0821003b0491b4a19c1a67d3a98d (patch)
tree7ccd069cd83c614134a227c336f108c6dd2b2cc4 /bin/sisu3
parentv2 v3: vim (8 color cterm) colorschemes, 8, frugal, sparse (diff)
v2 v3: bin/ type fix for ruby version check
Diffstat (limited to 'bin/sisu3')
-rw-r--r--bin/sisu312
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/sisu3 b/bin/sisu3
index 31664a70..e02f2588 100644
--- a/bin/sisu3
+++ b/bin/sisu3
@@ -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