Surpressing additional message if it missed to detect gem name

This commit is contained in:
Hiroshi SHIBATA 2023-11-02 15:48:28 +09:00
parent e10f7c9d5b
commit 42f368ead5
No known key found for this signature in database
GPG Key ID: F9CF13417264FAC2

View File

@ -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."