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

ruby-changes:67403

From: David <ko1@a...>
Date: Tue, 31 Aug 2021 19:06:46 +0900 (JST)
Subject: [ruby-changes:67403] c6e5267a77 (master): [rubygems/rubygems] Remove unnecessary check

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

From c6e5267a77871cba26152a00dcbaa05c1544bd13 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...>
Date: Fri, 23 Jul 2021 22:01:40 +0200
Subject: [rubygems/rubygems] Remove unnecessary check

This error can only be raised when loading the cache, and we only load
the cache if this condition is met.

https://github.com/rubygems/rubygems/commit/86d692edb8
---
 lib/bundler/cli/install.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/bundler/cli/install.rb b/lib/bundler/cli/install.rb
index 3f3d893..42b9a3f 100644
--- a/lib/bundler/cli/install.rb
+++ b/lib/bundler/cli/install.rb
@@ -84,7 +84,7 @@ module Bundler https://github.com/ruby/ruby/blob/trunk/lib/bundler/cli/install.rb#L84
 
       Bundler::CLI::Common.output_fund_metadata_summary
     rescue GemNotFound
-      if options[:local] && Bundler.app_cache.exist?
+      if options[:local]
         Bundler.ui.warn "Some gems seem to be missing from your #{Bundler.settings.app_cache_path} directory."
       end
 
-- 
cgit v1.1


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

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