aboutsummaryrefslogtreecommitdiffhomepage
path: root/setup/qi_libs.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2015-05-17 11:01:29 -0400
committerRalph Amissah <ralph@amissah.com>2015-05-17 11:08:07 -0400
commit164ba294b6193d11f3ff5505f452ac0eb7e07cd1 (patch)
treee58b27b6eba34c7c62dab27dd8c9844421a916a8 /setup/qi_libs.rb
parentbin/sisu , install name check (stable & git versions) (diff)
qi (quick install) gem install git version option
Diffstat (limited to 'setup/qi_libs.rb')
-rw-r--r--setup/qi_libs.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/setup/qi_libs.rb b/setup/qi_libs.rb
index 5f325302..e58547b1 100644
--- a/setup/qi_libs.rb
+++ b/setup/qi_libs.rb
@@ -651,8 +651,13 @@ end
def self.build_stable
Gemspecs.build(filename)
end
- def self.install_stable
- Gemspecs.install(filename_stable)
+ def self.install_stable(version=:version_standard)
+ vi=Version_info::Current.setting_stable
+ filename=((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)
end
end
end