[ruby/win32-registry] Exclude rake files from packages [ci skip]
https://github.com/ruby/win32-registry/commit/e7b2eeb885
This commit is contained in:
parent
34d800ebcd
commit
72b8fa9e03
@ -15,10 +15,13 @@ Gem::Specification.new do |spec|
|
|||||||
|
|
||||||
# Specify which files should be added to the gem when it is released.
|
# 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.
|
# 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
|
spec.files = Dir.chdir(__dir__) do
|
||||||
`git ls-files -z`.split("\x0").reject do |f|
|
`git ls-files -z`.split("\x0").reject do |f|
|
||||||
(File.expand_path(f) == __FILE__) ||
|
File.identical?(f, __FILE__) || f.start_with?(*excludes)
|
||||||
f.start_with?(*%w[bin/ test/ spec/ features/ .git .github .mailmap appveyor Gemfile])
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
spec.bindir = "exe"
|
spec.bindir = "exe"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user