End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::Source#cache_dir
cache_dir(uri)
lib/rubygems/source.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/rubygems/source.rb, line 103
def cache_dir(uri)
# Correct for windows paths
escaped_path = uri.path.sub(/^\/([a-z]):\//i, '/\\1-/')
escaped_path.tap(&Gem::UNTAINT)
File.join Gem.spec_cache_dir, "#{uri.host}%#{uri.port}", File.dirname(escaped_path)
end
Returns the local directory to write uri to.