Skip to content

Commit

Permalink
gemspec: Explicit files list (#10)
Browse files Browse the repository at this point in the history
This avoid shelling out, and includes a narrower list of files.

Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
  • Loading branch information
olleolleolle and nobu committed Apr 8, 2021
1 parent d55d928 commit f3ca83c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions optparse.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit f3ca83c

Please sign in to comment.