From 12ee4e38950efaefaabafb552f06e9412d082d00 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 7 Nov 2016 03:47:46 +0000 Subject: vcs.rb: suppress warning * 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 --- tool/vcs.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tool') diff --git a/tool/vcs.rb b/tool/vcs.rb index 5ef77e424d..43b18e4879 100644 --- a/tool/vcs.rb +++ b/tool/vcs.rb @@ -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 -- cgit v1.2.3