qi (quick install) gem install version
authorRalph Amissah <ralph@amissah.com>
Mon, 18 May 2015 00:21:13 +0000 (20:21 -0400)
committerRalph Amissah <ralph@amissah.com>
Mon, 18 May 2015 00:21:13 +0000 (20:21 -0400)
setup/qi_libs.rb

index e58547b1c2e05a8905939d225f1d460371b8ab13..aa3f7706a1e6c311b2fc0b1d0c5dccb13de27569 100644 (file)
@@ -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