summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2023-10-18 12:40:41 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-10-18 14:51:48 +0900
commitac8ece81f26f29dc2f9d77fcdb0620a51ba26f1e (patch)
tree82c8b42af8db5dd6a2381bbf5dec5c373818151d
parent46766e922b46cb3bdc42fa0b2052265c2f6c2a65 (diff)
Tweak the grammar
-rw-r--r--lib/bundled_gems.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundled_gems.rb b/lib/bundled_gems.rb
index 1ce2ff9a42..f60c53bd48 100644
--- a/lib/bundled_gems.rb
+++ b/lib/bundled_gems.rb
@@ -90,10 +90,10 @@ module Gem::BUNDLED_GEMS
end
def self.build_message(gem)
- msg = " which #{RUBY_VERSION < SINCE[gem] ? "will be" : "is"} not part of the default gems since Ruby #{SINCE[gem]}."
+ msg = " which #{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."
+ msg += " Add #{gem} to your Gemfile or gemspec."
location = caller_locations(2,2)[0]&.path
if File.file?(location) && !location.start_with?(Gem::BUNDLED_GEMS::LIBDIR)
caller_gem = nil