[ruby/win32-registry] Exclude rake files from packages [ci skip]

https://github.com/ruby/win32-registry/commit/e7b2eeb885
This commit is contained in:
Nobuyoshi Nakada 2024-10-17 12:06:41 +09:00 committed by git
parent 34d800ebcd
commit 72b8fa9e03

View File

@ -15,10 +15,13 @@ Gem::Specification.new do |spec|
# Specify which files should be added to the gem when it is released.
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
excludes = %w[
bin/ test/ spec/ features/ rakelib/
.git .github .mailmap appveyor Rakefile Gemfile
]
spec.files = Dir.chdir(__dir__) do
`git ls-files -z`.split("\x0").reject do |f|
(File.expand_path(f) == __FILE__) ||
f.start_with?(*%w[bin/ test/ spec/ features/ .git .github .mailmap appveyor Gemfile])
File.identical?(f, __FILE__) || f.start_with?(*excludes)
end
end
spec.bindir = "exe"