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

ruby-changes:72133

From: David <ko1@a...>
Date: Sat, 11 Jun 2022 18:43:50 +0900 (JST)
Subject: [ruby-changes:72133] a9077af75b (master): [rubygems/rubygems] No need to overwrite path when there's a remote

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

From a9077af75be7f71e02150343c1172287a4ad05fd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...>
Date: Thu, 9 Jun 2022 01:19:45 +0200
Subject: [rubygems/rubygems] No need to overwrite path when there's a remote

https://github.com/rubygems/rubygems/commit/d86fb2c316
---
 lib/bundler/source/rubygems.rb | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib/bundler/source/rubygems.rb b/lib/bundler/source/rubygems.rb
index 1373e39cca..8ca43efa19 100644
--- a/lib/bundler/source/rubygems.rb
+++ b/lib/bundler/source/rubygems.rb
@@ -168,6 +168,9 @@ module Bundler https://github.com/ruby/ruby/blob/trunk/lib/bundler/source/rubygems.rb#L168
             Bundler.rm_rf(path)
             raise
           end
+        else
+          path = cached_gem(spec)
+          raise GemNotFound, "Could not find #{spec.file_name} for installation" unless path
         end
 
         unless Bundler.settings[:no_install]
@@ -175,8 +178,6 @@ module Bundler https://github.com/ruby/ruby/blob/trunk/lib/bundler/source/rubygems.rb#L178
           message += " with native extensions" if spec.extensions.any?
           Bundler.ui.confirm message
 
-          path = cached_gem(spec)
-          raise GemNotFound, "Could not find #{spec.file_name} for installation" unless path
           if requires_sudo?
             install_path = Bundler.tmp(spec.full_name)
             bin_path     = install_path.join("bin")
-- 
cgit v1.2.1


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

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