1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Prepend DebugSystem to VCS class only

And revert 24e5f1c982, pepending to
Kernel did not affect the top level methods before 3.0.
This commit is contained in:
Nobuyoshi Nakada 2021-07-26 15:43:46 +09:00
parent 24e5f1c982
commit b8386f7f7f
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
2 changed files with 1 additions and 4 deletions

View file

@ -52,9 +52,6 @@ module DebugSystem
ret
end
end
module Kernel
prepend(DebugSystem)
end
class VCS
prepend(DebugSystem) if defined?(DebugSystem)

View file

@ -56,7 +56,7 @@ PACKAGES = {
"zip" => %w".zip zip -Xqr",
}
DEFAULT_PACKAGES = PACKAGES.keys - ["tar"]
if !$no7z and system("7z", out: IO::NULL, exception: false)
if !$no7z and system("7z", out: IO::NULL)
PACKAGES["gzip"] = %w".tar.gz 7z a dummy -tgzip -mx -so"
PACKAGES["zip"] = %w".zip 7z a -tzip -l -mx -mtc=off" << {out: IO::NULL}
elsif gzip = ENV.delete("GZIP")