diff options
| author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2025-01-29 19:59:13 +0100 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2025-02-06 13:07:55 +0900 |
| commit | 03a0c4e079e4ab94cd8d4ee403f1b67e6f566f49 (patch) | |
| tree | 36d6ae66cf0507f8aa31ace7e6e5292d8b16eaba /lib | |
| parent | 433f4e30b3af853ef5b33948e3b4be4826d3f104 (diff) | |
Rename "gem" to "name"
The name "gem" could be confused with RubyGems activation method.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/bundled_gems.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/bundled_gems.rb b/lib/bundled_gems.rb index b274887342..590a55fd64 100644 --- a/lib/bundled_gems.rb +++ b/lib/bundled_gems.rb @@ -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]}." + def self.build_message(name) + msg = " #{RUBY_VERSION < SINCE[name] ? "will no longer be" : "is not"} part of the default gems starting from Ruby #{SINCE[name]}." if defined?(Bundler) - msg += "\nYou can add #{gem} to your Gemfile or gemspec to silence this warning." + msg += "\nYou can add #{name} 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." + msg += "\nAlso please contact the author of #{caller_gem} to request adding #{name} into its gemspec." end end else - msg += " Install #{gem} from RubyGems." + msg += " Install #{name} from RubyGems." end msg |
