aboutsummaryrefslogtreecommitdiffhomepage
path: root/setup
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2015-05-17 20:21:13 -0400
committerRalph Amissah <ralph@amissah.com>2015-05-17 20:21:13 -0400
commit9979682ddbb658e7d0e4269109032b463d0d58ac (patch)
tree4753b8fac24d5ee07ccdeb1d2a45304755cf8e52 /setup
parentqi (quick install) gem install git version option (diff)
qi (quick install) gem install version
Diffstat (limited to 'setup')
-rw-r--r--setup/qi_libs.rb12
1 files 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