ruby-changes:43972
From: nobu <ko1@a...>
Date: Wed, 31 Aug 2016 11:03:16 +0900 (JST)
Subject: [ruby-changes:43972] nobu:r56045 (trunk): extmk.rb: filter gems
nobu 2016-08-31 11:03:07 +0900 (Wed, 31 Aug 2016) New Revision: 56045 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56045 Log: extmk.rb: filter gems * ext/extmk.rb: filter gems as well as exts. Modified files: trunk/ext/extmk.rb Index: ext/extmk.rb =================================================================== --- ext/extmk.rb (revision 56044) +++ ext/extmk.rb (revision 56045) @@ -541,10 +541,12 @@ end https://github.com/ruby/ruby/blob/trunk/ext/extmk.rb#L541 FileUtils.makedirs('gems') ext_prefix = "#$top_srcdir/gems" -gems = Dir.glob("#{ext_prefix}/**/extconf.rb").collect {|d| +gems = Dir.glob(File.join(ext_prefix, ($extension || ''), '**/extconf.rb')).collect {|d| d = File.dirname(d) d.slice!(0, ext_prefix.length + 1) d +}.find_all {|ext| + with_config(ext, &cond) }.sort dir = Dir.pwd -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/