instance method
Gem::Doctor#doctor
doctor
lib/rubygems/doctor.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/rubygems/doctor.rb, line 69
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