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

ruby-changes:72681

From: Peter <ko1@a...>
Date: Tue, 26 Jul 2022 05:29:30 +0900 (JST)
Subject: [ruby-changes:72681] 8fa66467de (master): Fix sync_default_gems.rb to use absolute path

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

From 8fa66467de82f787ead9dd901ad06694c79d88dc Mon Sep 17 00:00:00 2001
From: Peter Zhu <peter@p...>
Date: Mon, 25 Jul 2022 15:49:11 -0400
Subject: Fix sync_default_gems.rb to use absolute path

---
 tool/sync_default_gems.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb
index 47f6f1c840..a33c056861 100755
--- a/tool/sync_default_gems.rb
+++ b/tool/sync_default_gems.rb
@@ -88,7 +88,7 @@ def sync_default_gems(gem) https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L88
   repo = REPOSITORIES[gem.to_sym]
   puts "Sync #{repo}"
 
-  upstream = File.join("..", "..", repo)
+  upstream = File.join(__dir__, "../..", repo)
 
   case gem
   when "rubygems"
-- 
cgit v1.2.1


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

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