ruby-changes:50099
From: nobu <ko1@a...>
Date: Mon, 5 Feb 2018 12:19:43 +0900 (JST)
Subject: [ruby-changes:50099] nobu:r62217 (trunk): vcs.rb: for old ruby
nobu 2018-02-05 12:19:39 +0900 (Mon, 05 Feb 2018) New Revision: 62217 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62217 Log: vcs.rb: for old ruby * tool/vcs.rb (DebugSystem#system): pop option hash for old version ruby which does not support `system` options. Modified files: trunk/tool/vcs.rb Index: tool/vcs.rb =================================================================== --- tool/vcs.rb (revision 62216) +++ tool/vcs.rb (revision 62217) @@ -103,6 +103,7 @@ else https://github.com/ruby/ruby/blob/trunk/tool/vcs.rb#L103 exception = opts.fetch(:exception) {opts[:exception] = true} elsif opts exception = opts.delete(:exception) {true} + args.pop if opts.empty? end ret = super(*args) raise "Command failed with status (#$?): #{args[0]}" if exception and !ret -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/