summaryrefslogtreecommitdiff
path: root/lib/rubygems/remote_fetcher.rb
diff options
context:
space:
mode:
-rw-r--r--lib/rubygems/remote_fetcher.rb6
1 files changed, 5 insertions, 1 deletions
@@ -326,7 +326,7 @@ class Gem::RemoteFetcher
def correct_for_windows_path(path)
if path[0].chr == '/' && path[1].chr =~ /[a-z]/i && path[2].chr == ':'
- path = path[1..-1]
else
path
end
@@ -352,6 +352,10 @@ class Gem::RemoteFetcher
uri.scheme.downcase == 'https'
end
protected
# we have our own signing code here to avoid a dependency on the aws-sdk gem