ruby-changes:69589
From: David <ko1@a...>
Date: Fri, 5 Nov 2021 07:23:50 +0900 (JST)
Subject: [ruby-changes:69589] 9503dd91a5 (master): [rubygems/rubygems] Fix `--destdir` handling on Windows
https://git.ruby-lang.org/ruby.git/commit/?id=9503dd91a5 From 9503dd91a5b207d2215f7873b0442f52d2eb5c94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...> Date: Thu, 4 Nov 2021 21:01:29 +0100 Subject: [rubygems/rubygems] Fix `--destdir` handling on Windows Driver letters were not accounted for in one place. https://github.com/rubygems/rubygems/commit/fbe42460d7 --- lib/rubygems/commands/setup_command.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/rubygems/commands/setup_command.rb b/lib/rubygems/commands/setup_command.rb index e3e313c6a78..90f17b90374 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: https://github.com/ruby/ruby/blob/trunk/lib/rubygems/commands/setup_command.rb#L370 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") } -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/