Skip to content

Commit c5afa83

Browse files
committed
📦 Don't keep .github, .gitignore, .mailmap in gem
Previously, the gemspec's `spec.files` rejection regexp: * only matched directory names (missing `.mailmap`) * and didn't attempt to match `.github/` or `.gitignore`
1 parent ad4d9aa commit c5afa83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net-imap.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
2727
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
2828
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
2929
`git ls-files -z 2>/dev/null`.split("\x0")
30-
.grep_v(%r{^(\.git|\.mailmap|bin|test|spec|benchmarks|features|rfcs)/})
30+
.grep_v(%r{^(\.git(ignore)?|\.mailmap|(\.github|bin|test|spec|benchmarks|features|rfcs)/)})
3131
end
3232
spec.bindir = "exe"
3333
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }

0 commit comments

Comments
 (0)