diff options
Diffstat (limited to 'bin')
-rw-r--r-- | bin/sisu | 12 | ||||
-rw-r--r-- | bin/sisu3 | 12 | ||||
-rw-r--r-- | bin/sisu_termsheet | 12 | ||||
-rw-r--r-- | bin/sisu_webrick | 12 |
4 files changed, 24 insertions, 24 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 @@ -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 diff --git a/bin/sisu_termsheet b/bin/sisu_termsheet index 28ac0277..2e344728 100644 --- a/bin/sisu_termsheet +++ b/bin/sisu_termsheet @@ -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 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 |