From 9979682ddbb658e7d0e4269109032b463d0d58ac Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Sun, 17 May 2015 20:21:13 -0400 Subject: qi (quick install) gem install version --- setup/qi_libs.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/setup/qi_libs.rb b/setup/qi_libs.rb index e58547b1..aa3f7706 100644 --- a/setup/qi_libs.rb +++ b/setup/qi_libs.rb @@ -616,9 +616,9 @@ end def self.build(fn) system(%{ gem build #{fn}.gemspec }) end - def self.install(fn) + def self.install(vn) system(%{ - sudo gem install --local --no-document --verbose #{fn}.gem + sudo gem install --local --no-document --verbose sisu-#{vn}.gem }) end module Current @@ -653,11 +653,11 @@ end end def self.install_stable(version=:version_standard) vi=Version_info::Current.setting_stable - filename=((version==:version_git) \ + vn=((version==:version_git) \ && (Version_info.version_number_use(vi) != vi[:version_number])) \ - ? ('sisu-' + Version_info.version_number_use(vi) + '.gem') - : ('sisu-' + vi[:version_number] + '.gem') - Gemspecs.install(filename) + ? (Version_info.version_number_use(vi)) + : (vi[:version_number]) + Gemspecs.install(vn) end end end -- cgit v1.2.3