Filter gem contents
This commit is contained in:
parent
54cc88ef95
commit
d554af13bf
1 changed files with 3 additions and 4 deletions
|
@ -33,15 +33,14 @@ Gem::Specification.new do |spec|
|
||||||
spec.metadata['source_code_uri'] = home
|
spec.metadata['source_code_uri'] = home
|
||||||
# spec.metadata['bug_tracker_uri'] = FIXME: bugs
|
# spec.metadata['bug_tracker_uri'] = FIXME: bugs
|
||||||
spec.metadata['documentation_uri'] = docs
|
spec.metadata['documentation_uri'] = docs
|
||||||
# spec.metadata['changelog_uri'] = 'TODO: changelog'
|
# spec.metadata['changelog_uri'] = TODO: changelog
|
||||||
|
|
||||||
spec.bindir = 'exe'
|
spec.bindir = 'exe'
|
||||||
spec.require_paths = ['lib']
|
spec.require_paths = ['lib']
|
||||||
|
|
||||||
spec.files = Dir.chdir __dir__ do
|
spec.files = Dir.chdir __dir__ do
|
||||||
`git ls-files -z`.split("\x0").reject do |f|
|
`git ls-files -z`.split("\x0").select do |f|
|
||||||
(File.expand_path(f) == __FILE__) ||
|
f.start_with?(*%w[exe/ lib/ LICENSE])
|
||||||
f.start_with?(*%w[.git bin/ test/ spec/ features/ Gemfile])
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue