diff options
author | Olle Jonsson <olle.jonsson@gmail.com> | 2021-04-08 05:33:56 +0200 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-04-08 12:37:24 +0900 |
commit | ec355813b08d0371024f91eab33195d8c7891805 (patch) | |
tree | 9682e1277ec318d9a3f2f8d6926e05e466edbcf0 /lib/optparse | |
parent | a5ecce9187a275497895eca3fdb080ca60297931 (diff) |
[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>
Diffstat (limited to 'lib/optparse')
-rw-r--r-- | lib/optparse/optparse.gemspec | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/optparse/optparse.gemspec b/lib/optparse/optparse.gemspec index b8ec8cf5d8..ae6596678c 100644 --- a/lib/optparse/optparse.gemspec +++ b/lib/optparse/optparse.gemspec @@ -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"] |