From 3a217df342ef6341352fe8e85bf1a2fa96d62f4a Mon Sep 17 00:00:00 2001 From: Ryan Davis Date: Thu, 16 Nov 2023 13:00:52 -0800 Subject: [PATCH] - Removed use of Gem.default_exec_format. gem is now just gem. [git-p4: depot-paths = "//src/hoe/dev/": change = 13971] --- lib/hoe/package.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/hoe/package.rb b/lib/hoe/package.rb index 462b0a0..5564a98 100644 --- a/lib/hoe/package.rb +++ b/lib/hoe/package.rb @@ -95,12 +95,11 @@ def install_gem name, version = nil, rdoc = true should_not_sudo = Hoe::WINDOZE || ENV["NOSUDO"] || File.writable?(Gem.dir) null_dev = Hoe::WINDOZE ? "> NUL 2>&1" : "> /dev/null 2>&1" - gem_cmd = Gem.default_exec_format % "gem" sudo = "sudo " unless should_not_sudo local = "--local" unless version version = "--version '#{version}'" if version - cmd = "#{sudo}#{gem_cmd} install #{local} #{name} #{version}" + cmd = "#{sudo}gem install #{local} #{name} #{version}" cmd += " --no-document" unless rdoc cmd += " #{null_dev}" unless Rake.application.options.trace