diff options
author | Ralph Amissah <ralph@amissah.com> | 2011-04-27 20:32:05 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2011-04-27 20:32:05 -0400 |
commit | 03073b714c0d0821003b0491b4a19c1a67d3a98d (patch) | |
tree | 7ccd069cd83c614134a227c336f108c6dd2b2cc4 /bin/sisu3 | |
parent | v2 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/sisu3 | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 |