diff options
author | Akira Matsuda <ronnie@dio.jp> | 2017-05-19 21:10:38 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2017-05-19 21:10:38 +0900 |
commit | 9a1ec74ec348652427736dc525abb84e0fb5aee8 (patch) | |
tree | ba232277cfc8c70a9fbcf0b93334044c8ae62604 /lib | |
parent | f7c8723b49bde57d83667cc5182df108705f46a9 (diff) | |
download | rake-compiler-9a1ec74ec348652427736dc525abb84e0fb5aee8.tar.gz |
:warning: shadowing outer local variable - pkg
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rake/extensiontask.rb | 8 |
1 files changed, 4 insertions, 4 deletions
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 |