Skip to content

Commit 23b8a67

Browse files
Fix added upstream, it should be good now
1 parent 8e317fc commit 23b8a67

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

Rakefile

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -26,29 +26,4 @@ Hoe.spec 'net-http-persistent' do
2626
ENV['TRAVIS_MATRIX'] == 'pipeline'
2727
end
2828

29-
##
30-
# Override Hoe::Package#install_gem that does not work with RubyGems 3
31-
32-
module Hoe::Package
33-
remove_method :install_gem
34-
def install_gem name, version = nil, rdoc = true
35-
should_not_sudo = Hoe::WINDOZE || ENV["NOSUDO"] || File.writable?(Gem.dir)
36-
null_dev = Hoe::WINDOZE ? "> NUL 2>&1" : "> /dev/null 2>&1"
37-
38-
gem_cmd = Gem.default_exec_format % "gem"
39-
sudo = "sudo " unless should_not_sudo
40-
local = "--local" unless version
41-
version = %(--version "#{version}") if version
42-
43-
cmd = "#{sudo}#{gem_cmd} install #{local} #{name} #{version}"
44-
cmd += " --no-document" unless rdoc
45-
cmd += " #{null_dev}" unless Rake.application.options.trace
46-
47-
puts cmd if Rake.application.options.trace
48-
result = system cmd
49-
Gem::Specification.reset
50-
result
51-
end
52-
end
53-
5429
# vim: syntax=Ruby

0 commit comments

Comments
 (0)