aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rubygems/installer_test_case.rb
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-03-05 03:32:58 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-03-05 03:32:58 +0000
commit08f8cfe14e0f8937e3bcf8a22becdc5ce60b920e (patch)
tree30977064b5f93f9ac5b01b2a676f6d6ffdcec652 /lib/rubygems/installer_test_case.rb
parent593505ac6f802d2b5bff469425b7c76b65cc9b10 (diff)
downloadruby-08f8cfe14e0f8937e3bcf8a22becdc5ce60b920e.tar.gz
Merge RubyGems upstream: 56c0bbb69e4506bda7ef7f447dfec5db820df20b
It fixed the multiple vulnerabilities. https://blog.rubygems.org/2019/03/05/security-advisories-2019-03.html git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rubygems/installer_test_case.rb')
-rw-r--r--lib/rubygems/installer_test_case.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rubygems/installer_test_case.rb b/lib/rubygems/installer_test_case.rb
index 6fdc2d6337..1c16959f5f 100644
--- a/lib/rubygems/installer_test_case.rb
+++ b/lib/rubygems/installer_test_case.rb
@@ -120,9 +120,9 @@ class Gem::InstallerTestCase < Gem::TestCase
# The executable is also written to the bin dir in @tmpdir and the installed
# gem directory for +spec+.
- def util_make_exec(spec = @spec, shebang = "#!/usr/bin/ruby")
+ def util_make_exec(spec = @spec, shebang = "#!/usr/bin/ruby", bindir = "bin")
spec.executables = %w[executable]
- spec.files << 'bin/executable'
+ spec.bindir = bindir
exec_path = spec.bin_file "executable"
write_file exec_path do |io|