[rubygems/rubygems] Fix gemspec file filter
Explicitly match directory separator to not match files in repo root accidentally. https://github.com/rubygems/rubygems/commit/b936805ea9 Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
This commit is contained in:
parent
72591eb73f
commit
93f0749a64
@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
|
|||||||
# 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.
|
||||||
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__) || f.start_with?(*%w[bin test spec features .git .circleci appveyor])
|
(File.expand_path(f) == __FILE__) || f.start_with?(*%w[bin/ test/ spec/ features/ .git .circleci appveyor])
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
spec.bindir = "exe"
|
spec.bindir = "exe"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user