diff options
author | David RodrÃguez <[email protected]> | 2025-01-29 19:59:13 +0100 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2025-02-06 13:07:55 +0900 |
commit | 03a0c4e079e4ab94cd8d4ee403f1b67e6f566f49 () | |
tree | 36d6ae66cf0507f8aa31ace7e6e5292d8b16eaba /lib/bundled_gems.rb | |
parent | 433f4e30b3af853ef5b33948e3b4be4826d3f104 (diff) |
Rename "gem" to "name"
The name "gem" could be confused with RubyGems activation method.
-rw-r--r-- | lib/bundled_gems.rb | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -137,11 +137,11 @@ module Gem::BUNDLED_GEMS # :nodoc: end + build_message(name) end - def self.build_message(gem) - msg = " #{RUBY_VERSION < SINCE[gem] ? "will no longer be" : "is not"} part of the default gems starting from Ruby #{SINCE[gem]}." if defined?(Bundler) - msg += "\nYou can add #{gem} to your Gemfile or gemspec to silence this warning." # We detect the gem name from caller_locations. First we walk until we find `require` # then take the first frame that's not from `require`. @@ -179,11 +179,11 @@ module Gem::BUNDLED_GEMS # :nodoc: end end if caller_gem - msg += "\nAlso please contact the author of #{caller_gem} to request adding #{gem} into its gemspec." end end else - msg += " Install #{gem} from RubyGems." end msg |