1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/open-uri] Remove unused files from the packages

https://github.com/ruby/open-uri/commit/b2d9efbaf8
This commit is contained in:
Nobuyoshi Nakada 2022-10-11 09:32:35 +09:00 committed by git
parent 1bafa4a59b
commit 1dd774f53a

View file

@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
spec.metadata["source_code_uri"] = spec.homepage spec.metadata["source_code_uri"] = spec.homepage
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } `git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A((bin|test|spec|features)/|\.git|[Rr]ake|Gemfile)|\.gemspec\z}) }
end end
spec.executables = [] spec.executables = []
spec.require_paths = ["lib"] spec.require_paths = ["lib"]