mirror of
https://github.com/ruby/ruby.git
synced 2026-01-26 20:19:19 +00:00
[ruby/resolv] Exclude unneeded files
https://github.com/ruby/resolv/commit/60bf151a1d
This commit is contained in:
parent
79342334e0
commit
063aea8ce4
@ -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"]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user