Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Gem::Doctor#doctor
doctor
lib/rubygems/doctor.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/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