ruby-changes:50736
From: nobu <ko1@a...>
Date: Sun, 25 Mar 2018 10:52:28 +0900 (JST)
Subject: [ruby-changes:50736] nobu:r62912 (trunk): extmk.rb: get rid of shadowing outer local variable
nobu 2018-03-25 10:52:22 +0900 (Sun, 25 Mar 2018) New Revision: 62912 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62912 Log: extmk.rb: get rid of shadowing outer local variable Modified files: trunk/ext/extmk.rb Index: ext/extmk.rb =================================================================== --- ext/extmk.rb (revision 62911) +++ ext/extmk.rb (revision 62912) @@ -505,7 +505,7 @@ cond = proc {|ext, *| https://github.com/ruby/ruby/blob/trunk/ext/extmk.rb#L505 } incl.sort! excl.sort!.collect! {|d| d+"/"} - nil while incl.reject! {|d| excl << d+"/" if excl.any? {|e| d.start_with?(e)}} + nil while incl.reject! {|d| excl << d+"/" if excl.any? {|x| d.start_with?(x)}} exts |= incl if $LIBRUBYARG_SHARED.empty? and CONFIG["EXTSTATIC"] == "static" exts.delete_if {|d| File.fnmatch?("-*", d)} -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/