Skip to content

Commit

Permalink
- Removed use of Gem.default_exec_format. gem is now just gem.
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//src/hoe/dev/": change = 13971]
  • Loading branch information
zenspider committed Nov 16, 2023
1 parent b9a0f95 commit 3a217df
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/hoe/package.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3a217df

Please sign in to comment.