ruby-changes:42687
From: nobu <ko1@a...>
Date: Mon, 25 Apr 2016 15:59:30 +0900 (JST)
Subject: [ruby-changes:42687] nobu:r54760 (trunk): extmk.rb: refactor
nobu 2016-04-25 16:56:03 +0900 (Mon, 25 Apr 2016) New Revision: 54760 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54760 Log: extmk.rb: refactor * ext/extmk.rb: extract non-blank part without intermediate objects. Modified files: trunk/ext/extmk.rb Index: ext/extmk.rb =================================================================== --- ext/extmk.rb (revision 54759) +++ ext/extmk.rb (revision 54760) @@ -627,7 +627,7 @@ void Init_ext(void)\n{\n#$extinit} https://github.com/ruby/ruby/blob/trunk/ext/extmk.rb#L627 ['SETUP', $setup], ['EXTLIBS', $extlibs.join(' ')], ['EXTLDFLAGS', $extflags] ].map {|n, v| - "#{n}=#{v}" if v and !(v = v.strip).empty? + "#{n}=#{v}" if v &&= v[/\S(?:.*\S)?/] }.compact puts(*conf) $stdout.flush -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/