[rubygems/rubygems] Initialize '@ran_rake' correctly, so we don't have to set it up later and cause confusion

https://github.com/rubygems/rubygems/commit/6ec3ba983c
This commit is contained in:
bronzdoc 2019-07-28 08:37:02 -06:00 committed by Hiroshi SHIBATA
parent 5824981d98
commit ab8d9a5325
No known key found for this signature in database
GPG Key ID: F9CF13417264FAC2

View File

@ -108,7 +108,7 @@ class Gem::Ext::Builder
@build_args = build_args
@gem_dir = spec.full_gem_path
@ran_rake = nil
@ran_rake = false
end
##
@ -202,9 +202,6 @@ EOF
FileUtils.rm_f @spec.gem_build_complete_path
# FIXME: action at a distance: @ran_rake modified deep in build_extension(). - @duckinator
@ran_rake = false # only run rake once
@spec.extensions.each do |extension|
break if @ran_rake