method

download_cache_path

download_cache_path(spec)
private

Returns the global cache path of the calling Rubygems::Source object.

Note that the Source determines the path’s subdirectory. We use this subdirectory in the global cache path so that gems with the same name – and possibly different versions – from different sources are saved to their respective subdirectories and do not override one another.

@param [Gem::Specification] specification

@return [Pathname] The global cache path.