Skip to content

Commit

Permalink
🔀 Merge pull request #299 from ruby/gemspec-ignore
Browse files Browse the repository at this point in the history
📦 Don't keep .github, .gitignore, .mailmap in gem
  • Loading branch information
nevans authored Jun 16, 2024
2 parents ad4d9aa + 0924b7e commit 3add63e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net-imap.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ 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.
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
spec.files = Dir.chdir(__dir__) do
`git ls-files -z 2>/dev/null`.split("\x0")
.grep_v(%r{^(\.git|\.mailmap|bin|test|spec|benchmarks|features|rfcs)/})
.grep_v(%r{^(\.git(ignore)?|\.mailmap|(\.github|bin|test|spec|benchmarks|features|rfcs)/)})
end
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
Expand Down

0 comments on commit 3add63e

Please sign in to comment.