* tool/vcs.rb (DebugPOpen): suppress refinements warning in 2.0.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2016-11-07 03:47:46 +00:00
Родитель ba8006533c
Коммит 12ee4e3895
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -79,12 +79,15 @@ if RUBY_VERSION < "2.0"
end
else
module DebugPOpen
verbose, $VERBOSE = $VERBOSE, nil if RUBY_VERSION < "2.1"
refine IO.singleton_class do
def popen(*args)
STDERR.puts args.inspect if $DEBUG
super
end
end
ensure
$VERBOSE = verbose unless verbose.nil?
end
using DebugPOpen
end