End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::Doctor#doctor
doctor
lib/rubygems/doctor.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/rubygems/doctor.rb, line 68
def doctor
@orig_home = Gem.dir
@orig_path = Gem.path
say "Checking #{@gem_repository}"
Gem.use_paths @gem_repository.to_s
unless gem_repository?
say "This directory does not appear to be a RubyGems repository, " +
"skipping"
say
return
end
doctor_children
say
ensure
Gem.use_paths @orig_home, *@orig_path
end
Cleans up uninstalled files and invalid gem specifications