diff options
author | Nobuyoshi Nakada <[email protected]> | 2021-03-29 15:26:18 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2021-03-29 18:24:56 +0900 |
commit | e97f21afcd0abbc1b03a070f9385ec7b765e5a71 (patch) | |
tree | 33ae6644c07fa2c684e65dd24178c168ec99ee77 /lib | |
parent | 7846f3201a1381cf07ff7477b8a1d6744a853c78 (diff) |
[ruby/optparse] Exclude unnecessary files from the package
https://github.com/ruby/optparse/commit/dfd9380231
Diffstat (limited to 'lib')
-rw-r--r-- | lib/optparse/optparse.gemspec | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/optparse/optparse.gemspec b/lib/optparse/optparse.gemspec index afb90420f0..831c787ac7 100644 --- a/lib/optparse/optparse.gemspec +++ b/lib/optparse/optparse.gemspec @@ -23,7 +23,9 @@ Gem::Specification.new do |spec| 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)/}) } + `git ls-files -z`.split("\x0").reject { |f| + f.match(%r{\A(?:(?:test|spec|features)/|Gemfile|\.(?:editor|git))}) + } end spec.bindir = "exe" spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) } |