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

Install only files explicitly referenced by bundled gems.

[Bug #13417]
[Fix GH-1580]
Author:    Vít Ondruch <vondruch@redhat.com>

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2017-04-11 12:20:21 +00:00
parent 8913e2946e
commit 7965327d13

View file

@ -678,10 +678,12 @@ module RbInstall
return if path == destination_dir
File.chmod(0700, destination_dir)
mode = pattern == "bin/*" ? $script_mode : $data_mode
install_recursive(path, without_destdir(destination_dir),
:glob => pattern,
:no_install => "*.gemspec",
:mode => mode)
spec.files.each do |f|
src = File.join(path, f)
dest = File.join(without_destdir(destination_dir), f)
makedirs(dest[/.*(?=\/)/m])
install src, dest, :mode => mode
end
File.chmod($dir_mode, destination_dir)
end
end