diff options
-rw-r--r-- | lib/rubygems/spec_fetcher.rb | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -76,7 +76,8 @@ class Gem::SpecFetcher # Returns the local directory to write +uri+ to. def cache_dir(uri) - escaped_path = uri.path.sub(%r[^/([a-z]):/]i, '/\\1-/') # Correct for windows paths File.join @dir, "#{uri.host}%#{uri.port}", File.dirname(escaped_path) end @@ -86,8 +87,14 @@ class Gem::SpecFetcher # false, all platforms are returned. If +prerelease+ is true, # prerelease versions are included. - def fetch_with_errors(dependency, all = false, matching_platform = true, prerelease = false) - specs_and_sources, errors = find_matching_with_errors dependency, all, matching_platform, prerelease ss = specs_and_sources.map do |spec_tuple, source_uri| [fetch_spec(spec_tuple, URI.parse(source_uri)), source_uri] |