1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/optparse] gemspec: Explicit files list [ci skip]

This avoid shelling out, and includes a narrower list of files.

https://github.com/ruby/optparse/commit/f3ca83caff

Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
This commit is contained in:
Olle Jonsson 2021-04-08 05:33:56 +02:00 committed by Nobuyoshi Nakada
parent a5ecce9187
commit ec355813b0
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -22,11 +22,7 @@ Gem::Specification.new do |spec|
spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = spec.homepage
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
`git ls-files -z`.split("\x0").reject { |f|
f.match(%r{\A(?:(?:test|spec|features)/|Gemfile|\.(?:editor|git))})
}
end
spec.files = Dir["{doc,lib,misc}/**/*"] + %w[README.md ChangeLog COPYING]
spec.bindir = "exe"
spec.executables = []
spec.require_paths = ["lib"]