ruby-changes:44585
From: nobu <ko1@a...>
Date: Mon, 7 Nov 2016 12:47:50 +0900 (JST)
Subject: [ruby-changes:44585] nobu:r56658 (trunk): vcs.rb: suppress warning
nobu 2016-11-07 12:47:46 +0900 (Mon, 07 Nov 2016) New Revision: 56658 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56658 Log: vcs.rb: suppress warning * tool/vcs.rb (DebugPOpen): suppress refinements warning in 2.0. Modified files: trunk/tool/vcs.rb Index: tool/vcs.rb =================================================================== --- tool/vcs.rb (revision 56657) +++ tool/vcs.rb (revision 56658) @@ -79,12 +79,15 @@ if RUBY_VERSION < "2.0" https://github.com/ruby/ruby/blob/trunk/tool/vcs.rb#L79 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/