mirror of
https://github.com/samsonjs/wordexp.git
synced 2026-03-25 08:45:54 +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
|
||||
git_files = `git ls-files -z`.split("\x0")
|
||||
ext_files = Dir['**/*.bundle']
|
||||
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?
|
||||
|
||||
raise <<~ERROR
|
||||
|
|
|
|||
Loading…
Reference in a new issue