Skip to content

Commit

Permalink
Merge pull request #23 from ruby/unneeded-files
Browse files Browse the repository at this point in the history
Exclude unneeded files from the package
  • Loading branch information
nobu authored Mar 4, 2024
2 parents 634e28d + 0f0bbb0 commit c5990f2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tracer.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,14 @@ 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.
gemspec = File.basename(__FILE__)
spec.files =
Dir.chdir(__dir__) do
`git ls-files -z`.split("\x0")
.reject do |f|
(f == __FILE__) ||
(f == gemspec) ||
f.match(
%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|circleci)|appveyor)}
%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|circleci)|appveyor|(?:Rake|Gem)file)}
)
end
end
Expand Down

0 comments on commit c5990f2

Please sign in to comment.