update_cache?()
Returns true when it is possible and safe to update the cache directory.
# File lib/rubygems/source.rb, line 126 def update_cache? @update_cache ||= begin File.stat(Gem.user_home).uid == Process.uid rescue Errno::ENOENT false end end