summaryrefslogtreecommitdiff
path: root/lib/rubygems
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2021-11-04 21:01:29 +0100
committergit <svn-admin@ruby-lang.org>2021-11-05 07:23:36 +0900
commit9503dd91a5b207d2215f7873b0442f52d2eb5c94 (patch)
treef65d0a7e739d69cd59c02f3efa8d08dc0ce588df /lib/rubygems
parent5e855be86be19240257e444a09a95e1ddb355043 (diff)
[rubygems/rubygems] Fix `--destdir` handling on Windows
Driver letters were not accounted for in one place. https://github.com/rubygems/rubygems/commit/fbe42460d7
Diffstat (limited to 'lib/rubygems')
-rw-r--r--lib/rubygems/commands/setup_command.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/rubygems/commands/setup_command.rb b/lib/rubygems/commands/setup_command.rb
index e3e313c6a7..90f17b9037 100644
--- a/lib/rubygems/commands/setup_command.rb
+++ b/lib/rubygems/commands/setup_command.rb
@@ -370,8 +370,7 @@ By default, this RubyGems will install gem as:
end
def install_default_bundler_gem(bin_dir)
- specs_dir = Gem.default_specifications_dir
- specs_dir = File.join(options[:destdir], specs_dir) unless Gem.win_platform?
+ specs_dir = prepend_destdir_if_present(Gem.default_specifications_dir)
mkdir_p specs_dir, :mode => 0755
bundler_spec = Dir.chdir("bundler") { Gem::Specification.load("bundler.gemspec") }