Skip to content

Commit

Permalink
Merge pull request #4534 from daipom/gemspec-remove-unnecessary-files…
Browse files Browse the repository at this point in the history
…-from-gem

gemspec: Remove unnecessary files from gem file
  • Loading branch information
ashie authored Jul 6, 2024
2 parents e5ca1c7 + d2553f0 commit 329c9ae
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions fluentd.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@ Gem::Specification.new do |gem|
gem.summary = %q{Fluentd event collector}
gem.homepage = "https://www.fluentd.org/"

gem.files = `git ls-files`.split($\)
gem.files = Dir.chdir(__dir__) do
`git ls-files -z`.split("\x0").reject do |f|
(File.expand_path(f) == __FILE__) ||
f.start_with?(*%w[test/ .git Gemfile])
end
end
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.require_paths = ["lib"]
gem.license = "Apache-2.0"

Expand Down

0 comments on commit 329c9ae

Please sign in to comment.