From 9a1ec74ec348652427736dc525abb84e0fb5aee8 Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Fri, 19 May 2017 21:10:38 +0900 Subject: :warning: shadowing outer local variable - pkg --- lib/rake/extensiontask.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/rake/extensiontask.rb b/lib/rake/extensiontask.rb index 38f7319..56cf9aa 100644 --- a/lib/rake/extensiontask.rb +++ b/lib/rake/extensiontask.rb @@ -283,12 +283,12 @@ Java extension should be preferred. callback.call(spec) if callback # Generate a package for this gem - pkg = Gem::PackageTask.new(spec) do |pkg| - pkg.need_zip = false - pkg.need_tar = false + pkg = Gem::PackageTask.new(spec) do |p| + p.need_zip = false + p.need_tar = false # Do not copy any files per PackageTask, because # we need the files from the staging directory - pkg.package_files.clear + p.package_files.clear end # copy other gem files to staging directory if added by the callback -- cgit v1.2.1