File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -137,11 +137,11 @@ def self.warning?(name, specs: nil)
137
137
end + build_message ( name )
138
138
end
139
139
140
- def self . build_message ( gem )
141
- msg = " #{ RUBY_VERSION < SINCE [ gem ] ? "will no longer be" : "is not" } part of the default gems starting from Ruby #{ SINCE [ gem ] } ."
140
+ def self . build_message ( name )
141
+ msg = " #{ RUBY_VERSION < SINCE [ name ] ? "will no longer be" : "is not" } part of the default gems starting from Ruby #{ SINCE [ name ] } ."
142
142
143
143
if defined? ( Bundler )
144
- msg += "\n You can add #{ gem } to your Gemfile or gemspec to silence this warning."
144
+ msg += "\n You can add #{ name } to your Gemfile or gemspec to silence this warning."
145
145
146
146
# We detect the gem name from caller_locations. First we walk until we find `require`
147
147
# then take the first frame that's not from `require`.
@@ -179,11 +179,11 @@ def self.build_message(gem)
179
179
end
180
180
end
181
181
if caller_gem
182
- msg += "\n Also please contact the author of #{ caller_gem } to request adding #{ gem } into its gemspec."
182
+ msg += "\n Also please contact the author of #{ caller_gem } to request adding #{ name } into its gemspec."
183
183
end
184
184
end
185
185
else
186
- msg += " Install #{ gem } from RubyGems."
186
+ msg += " Install #{ name } from RubyGems."
187
187
end
188
188
189
189
msg
You can’t perform that action at this time.
0 commit comments