Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
Gem::Deprecate.rubygems_deprecate_command
rubygems_deprecate_command(version = Gem::Deprecate.next_rubygems_major_version)
lib/rubygems/deprecate.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/rubygems/deprecate.rb, line 149
def rubygems_deprecate_command(version = Gem::Deprecate.next_rubygems_major_version)
class_eval do
define_method "deprecated?" do
true
end
define_method "deprecation_warning" do
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 · 4.0 · 3.4 · 3.2 · 3.1 · 3.0