[ruby/resolv] Exclude unneeded files

https://github.com/ruby/resolv/commit/60bf151a1d
This commit is contained in:
Nobuyoshi Nakada 2025-11-09 21:39:38 +09:00 committed by git
parent 79342334e0
commit 063aea8ce4

View File

@ -21,9 +21,8 @@ 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{^(test|spec|features)/}) }
end
excludes = %W[/.git* /bin /test /*file /#{File.basename(__FILE__)}]
spec.files = IO.popen(%W[git -C #{__dir__} ls-files -z --] + excludes.map {|e| ":^#{e}"}, &:read).split("\x0")
spec.bindir = "exe"
spec.executables = []
spec.require_paths = ["lib"]