End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
Gem.pre_reset
pre_reset(&hook)
lib/rubygems.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/rubygems.rb, line 743
def self.pre_reset(&hook)
@pre_reset_hooks << hook
end
Adds a hook that will get run before Gem::Specification.reset is run.