Skip to content

Commit 3add63e

Browse files
authored
🔀 Merge pull request #299 from ruby/gemspec-ignore
📦 Don't keep .github, .gitignore, .mailmap in gem
2 parents ad4d9aa + 0924b7e commit 3add63e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

net-imap.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ Gem::Specification.new do |spec|
2525

2626
# Specify which files should be added to the gem when it is released.
2727
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
28-
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
28+
spec.files = Dir.chdir(__dir__) 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)