Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v1_9_3_392) is shown here.
cache_dir(uri)
public
Returns the local directory to write uri to.
# File lib/rubygems/spec_fetcher.rb, line 72
def cache_dir(uri)
# Correct for windows paths
escaped_path = uri.path.sub(/^\/([a-z]):\//, '/\1-/')
File.join @dir, "#{uri.host}%#{uri.port}", File.dirname(escaped_path)
end