From c00345b2e7cf7041a01a84e51e77ce88dceaa6e1 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Fri, 17 Jan 2014 21:35:12 -0500 Subject: bin/sisu experimentation * start preparing for ruby changes * work on fix for bug related to gem path & system installed sisu --- bin/sisu | 70 +++++++++++++++++----------------------------------------------- 1 file changed, 18 insertions(+), 52 deletions(-) (limited to 'bin') diff --git a/bin/sisu b/bin/sisu index 102d10d1..ad98138b 100644 --- a/bin/sisu +++ b/bin/sisu @@ -2,45 +2,6 @@ # encoding: utf-8 #SiSU: copyright (C) 1997 - 2014 Ralph Amissah; License GPL 3, see appended program information begin - def ruby_version_ok?(base_version) - @v ||=RUBY_VERSION.scan(/\d+/) - vb=base_version.scan(/\d+/) - 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 - end - def check_incompatible_ruby_build? - require 'rbconfig' - e=Config::CONFIG - if RUBY_VERSION == '1.9.2' \ - && e['PATCHLEVEL'].to_i < 180 - raise <