From f53f6d928475564433302a18f9498048bbd69b26 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sat, 27 Nov 2021 16:04:09 +0900 Subject: [PATCH] [ruby/cgi] Exclude unused files from built package https://github.com/ruby/cgi/commit/e840b6c368 --- lib/cgi/cgi.gemspec | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/cgi/cgi.gemspec b/lib/cgi/cgi.gemspec index c964eb36da..3ba62b93f6 100644 --- a/lib/cgi/cgi.gemspec +++ b/lib/cgi/cgi.gemspec @@ -23,10 +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 2>/dev/null`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } + `git ls-files -z 2>/dev/null`.split("\x0").reject { |f| f.match(%r{\A(?:(?:test|spec|features)/|\.git)}) } end spec.extensions = ["ext/cgi/escape/extconf.rb"] - spec.bindir = "exe" spec.executables = [] spec.require_paths = ["lib"] end