diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-07-31 07:54:45 +0800 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-08-05 18:44:46 +0900 |
commit | 8eb2921f568f0ebc1a0f61b45297c77516f602b5 (patch) | |
tree | 09056c21aebfb67297ea0ba2698fbafdc258f08d /lib/rubygems | |
parent | 5a8d848849bf96de2d2a26db1d6c0cd0999b2078 (diff) | |
download | ruby-8eb2921f568f0ebc1a0f61b45297c77516f602b5.tar.gz |
[rubygems/rubygems] Fixed to warn with shadowing outer local variable.
https://github.com/rubygems/rubygems/commit/b0588a87b1
Diffstat (limited to 'lib/rubygems')
-rw-r--r-- | lib/rubygems/ext/ext_conf_builder.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/rubygems/ext/ext_conf_builder.rb b/lib/rubygems/ext/ext_conf_builder.rb index 97681fa1ac..88be7ecfe8 100644 --- a/lib/rubygems/ext/ext_conf_builder.rb +++ b/lib/rubygems/ext/ext_conf_builder.rb @@ -45,12 +45,12 @@ class Gem::Ext::ExtConfBuilder < Gem::Ext::Builder cmd.push(*args) begin - run(cmd, results) do |status, results| + run(cmd, results) do |s, r| if File.exist? 'mkmf.log' - unless status.success? - results << "To see why this extension failed to compile, please check" \ + unless s.success? + r << "To see why this extension failed to compile, please check" \ " the mkmf.log which can be found here:\n" - results << " " + File.join(dest_path, 'mkmf.log') + "\n" + r << " " + File.join(dest_path, 'mkmf.log') + "\n" end FileUtils.mv 'mkmf.log', dest_path end |