instance method
Gem::Deprecate#rubygems_deprecate_command
rubygems_deprecate_command(version = nil)
lib/rubygems/deprecate.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/rubygems/deprecate.rb, line 151
def rubygems_deprecate_command(version = nil)
class_eval do
define_method "deprecated?" do
true
end
define_method "deprecation_warning" do
version ||= Gem::Deprecate.next_rubygems_major_version
msg = [
"#{command} command is deprecated",
". It will be removed in Rubygems #{version}.\n",
]
alert_warning msg.join.to_s unless Gem::Deprecate.skip
end
end
end
Deprecation method to deprecate Rubygems commands
See also
.rubygems_deprecate_command
#rubygems_deprecate
#skip_during
#deprecate
also in
4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0