End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::Source#update_cache?
update_cache?
lib/rubygems/source.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/rubygems/source.rb, line 120
def update_cache?
@update_cache ||=
begin
File.stat(Gem.user_home).uid == Process.uid
rescue Errno::ENOENT
false
end
end
Returns true when it is possible and safe to update the cache directory.