We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a1da62b + dedd733 commit bb18b98Copy full SHA for bb18b98
configs/components/_base-rubygem.rb
@@ -41,9 +41,11 @@
41
# in its component file rubygem-<compoment>, before the instance_eval of this file.
42
gem_install_options = settings["#{pkg.get_name}_gem_install_options".to_sym]
43
remove_older_versions = settings["#{pkg.get_name}_remove_older_versions".to_sym]
44
+# Set a default gem_uninstall
45
+gem_uninstall = settings[:gem_uninstall] || "#{settings[:host_gem]} uninstall --all --ignore-dependencies"
46
pkg.install do
47
steps = []
- steps << "#{settings[:gem_uninstall]} #{name}" if remove_older_versions
48
+ steps << "#{gem_uninstall} #{name}" if remove_older_versions
49
steps << if gem_install_options.nil?
50
"#{settings[:gem_install]} #{name}-#{version}.gem"
51
else
0 commit comments