From 42f368ead50bb51935026f54d698fe18780230d2 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Thu, 2 Nov 2023 15:48:28 +0900 Subject: [PATCH] Surpressing additional message if it missed to detect gem name --- lib/bundled_gems.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/bundled_gems.rb b/lib/bundled_gems.rb index a00de692ea..ceb546f580 100644 --- a/lib/bundled_gems.rb +++ b/lib/bundled_gems.rb @@ -108,7 +108,9 @@ module Gem::BUNDLED_GEMS break end end - msg += " Also contact author of #{caller_gem} to add #{gem} into its gemspec." + if caller_gem + msg += " Also contact author of #{caller_gem} to add #{gem} into its gemspec." + end end else msg += " Install #{gem} from RubyGems."