# File lib/rubygems/spec_fetcher.rb, line 58 def cache_dir(uri) File.join @dir, "#{uri.host}%#{uri.port}", File.dirname(uri.path) end