mirror of
https://github.com/samsonjs/wordexp.git
synced 2026-04-27 14:57:42 +00:00
Take extension files into account in verify_gemspec_files task
This commit is contained in:
parent
193e0b9ba7
commit
5740ef1542
1 changed files with 2 additions and 1 deletions
3
Rakefile
3
Rakefile
|
|
@ -38,8 +38,9 @@ Rake::Task[:build].enhance [:disable_overcommit]
|
||||||
|
|
||||||
task :verify_gemspec_files do
|
task :verify_gemspec_files do
|
||||||
git_files = `git ls-files -z`.split("\x0")
|
git_files = `git ls-files -z`.split("\x0")
|
||||||
|
ext_files = Dir['**/*.bundle']
|
||||||
gemspec_files = Gem::Specification.load('wordexp.gemspec').files.sort
|
gemspec_files = Gem::Specification.load('wordexp.gemspec').files.sort
|
||||||
ignored_by_git = gemspec_files - git_files
|
ignored_by_git = gemspec_files - git_files - ext_files
|
||||||
next if ignored_by_git.empty?
|
next if ignored_by_git.empty?
|
||||||
|
|
||||||
raise <<~ERROR
|
raise <<~ERROR
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue