vcs.rb: old version cannot refine modules
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
eab10990ac
commit
78c81718d2
11
tool/vcs.rb
11
tool/vcs.rb
@ -86,7 +86,11 @@ else
|
|||||||
super
|
super
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
refine Kernel do
|
ensure
|
||||||
|
$VERBOSE = verbose unless verbose.nil?
|
||||||
|
end
|
||||||
|
using DebugPOpen
|
||||||
|
module DebugSystem
|
||||||
def system(*args, exception: true, **opts)
|
def system(*args, exception: true, **opts)
|
||||||
STDERR.puts [*args, **opts].inspect if $DEBUG
|
STDERR.puts [*args, **opts].inspect if $DEBUG
|
||||||
ret = super(*args, **opts, exception: exception)
|
ret = super(*args, **opts, exception: exception)
|
||||||
@ -94,10 +98,9 @@ else
|
|||||||
ret
|
ret
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
ensure
|
module Kernel
|
||||||
$VERBOSE = verbose unless verbose.nil?
|
prepend(DebugSystem)
|
||||||
end
|
end
|
||||||
using DebugPOpen
|
|
||||||
end
|
end
|
||||||
|
|
||||||
class VCS
|
class VCS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user