Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance 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.4.1/lib/rubygems/deprecate.rb, line 150
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.3 · 3.2 · 3.1 · 3.0