Filter gem contents

This commit is contained in:
Alex Kotov 2024-10-18 19:01:41 +04:00
parent 54cc88ef95
commit d554af13bf
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08

View file

@ -33,15 +33,14 @@ Gem::Specification.new do |spec|
spec.metadata['source_code_uri'] = home
# spec.metadata['bug_tracker_uri'] = FIXME: bugs
spec.metadata['documentation_uri'] = docs
# spec.metadata['changelog_uri'] = 'TODO: changelog'
# spec.metadata['changelog_uri'] = TODO: changelog
spec.bindir = 'exe'
spec.require_paths = ['lib']
spec.files = Dir.chdir __dir__ do
`git ls-files -z`.split("\x0").reject do |f|
(File.expand_path(f) == __FILE__) ||
f.start_with?(*%w[.git bin/ test/ spec/ features/ Gemfile])
`git ls-files -z`.split("\x0").select do |f|
f.start_with?(*%w[exe/ lib/ LICENSE])
end
end