File tree Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Original file line number Diff line number Diff line change @@ -26,29 +26,4 @@ Hoe.spec 'net-http-persistent' do
26
26
ENV [ 'TRAVIS_MATRIX' ] == 'pipeline'
27
27
end
28
28
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
-
54
29
# vim: syntax=Ruby
You can’t perform that action at this time.
0 commit comments