[前][次][番号順一覧][スレッド一覧]

ruby-changes:69606

From: David <ko1@a...>
Date: Fri, 5 Nov 2021 23:21:10 +0900 (JST)
Subject: [ruby-changes:69606] d47831d554 (master): [rubygems/rubygems] Bin dir should fall inside destdir

https://git.ruby-lang.org/ruby.git/commit/?id=d47831d554

From d47831d554a9fa3ba4a78371914cb2ceb1fec1f7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...>
Date: Fri, 5 Nov 2021 13:51:11 +0100
Subject: [rubygems/rubygems] Bin dir should fall inside destdir

Since that's what happens in real life when `--destdir` is passed.

https://github.com/rubygems/rubygems/commit/55637bdc8a
---
 test/rubygems/test_gem_commands_setup_command.rb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/test/rubygems/test_gem_commands_setup_command.rb b/test/rubygems/test_gem_commands_setup_command.rb
index b712c8a2a7f..59ff45b61e5 100644
--- a/test/rubygems/test_gem_commands_setup_command.rb
+++ b/test/rubygems/test_gem_commands_setup_command.rb
@@ -245,9 +245,8 @@ class TestGemCommandsSetupCommand < Gem::TestCase https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_commands_setup_command.rb#L245
   def test_install_default_bundler_gem_with_destdir_flag
     @cmd.extend FileUtils
 
-    bin_dir = File.join(@gemhome, 'bin')
-
     destdir = File.join(@tempdir, 'foo')
+    bin_dir = File.join(destdir, 'bin')
 
     @cmd.options[:destdir] = destdir
 
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]