summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/bundled_gems.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/bundled_gems.rb b/lib/bundled_gems.rb
index 66e13cfece..6b13adf91d 100644
--- a/lib/bundled_gems.rb
+++ b/lib/bundled_gems.rb
@@ -106,17 +106,18 @@ module Gem::BUNDLED_GEMS
WARNED[name] = true
if gem == true
gem = name
+ "#{name} was loaded from the standard library, but"
elsif gem
return if WARNED[gem]
WARNED[gem] = true
- "#{name} is found in #{gem}"
+ "#{name} is found in #{gem}, which"
else
return
end + build_message(gem)
end
def self.build_message(gem)
- msg = " which #{RUBY_VERSION < SINCE[gem] ? "will no longer be" : "is not"} part of the default gems since Ruby #{SINCE[gem]}."
+ msg = " #{RUBY_VERSION < SINCE[gem] ? "will no longer be" : "is not"} part of the default gems since Ruby #{SINCE[gem]}."
if defined?(Bundler)
msg += " Add #{gem} to your Gemfile or gemspec."