End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::Deprecate#rubygems_deprecate_command
rubygems_deprecate_command
lib/rubygems/deprecate.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/rubygems/deprecate.rb, line 99
def rubygems_deprecate_command
class_eval do
define_method "deprecated?" do
true
end
define_method "deprecation_warning" do
msg = [ "#{self.command} command is deprecated",
". It will be removed in Rubygems #{Gem::Deprecate.next_rubygems_major_version}.\n",
]
alert_warning "#{msg.join}" 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 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1