Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
Gem.pre_reset
pre_reset(&hook)
lib/rubygems.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/rubygems.rb, line 717
def self.pre_reset(&hook)
@pre_reset_hooks << hook
end
Adds a hook that will get run before Gem::Specification.reset is run.