mirror of
https://github.com/samsonjs/wordexp.git
synced 2026-04-12 11:45:51 +00:00
Merge pull request #5 from samsonjs/fix/verify-gemspec
Take extension files into account in verify_gemspec_files task
This commit is contained in:
commit
111a83bdc9
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