From a807940bb16d54bdf837a306b822b4250e8e8715 Mon Sep 17 00:00:00 2001 From: Marius Rackwitz <git@mariusrackwitz.de> Date: Fri, 25 Mar 2016 02:02:45 +0700 Subject: [PATCH 1/2] [Http] Pick up the .netrc file Fixes #53. --- lib/cocoapods-downloader/http.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cocoapods-downloader/http.rb b/lib/cocoapods-downloader/http.rb index 962149f..fa6df11 100644 --- a/lib/cocoapods-downloader/http.rb +++ b/lib/cocoapods-downloader/http.rb @@ -90,7 +90,7 @@ def filename_with_type(type = :zip) end def download_file(full_filename) - curl! '-f', '-L', '-o', full_filename, url, '--create-dirs' + curl! '-f', '-L', '-o', full_filename, url, '--create-dirs', '--netrc' end def extract_with_type(full_filename, type = :zip) From 7f02d9569cf9bbcb8ae54cc69532240d0010b487 Mon Sep 17 00:00:00 2001 From: Samuel Giddins <segiddins@segiddins.me> Date: Thu, 14 Apr 2016 16:03:28 -0500 Subject: [PATCH 2/2] [CHANGELOG] Add entry for curl --netrc --- CHANGELOG.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 23b9f8f..51c3bbc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,11 @@ ##### Enhancements -* None. +* When downloading via `HTTP`, `curl` will take into account the user's + `~/.netrc` file to determine authentication credentials. + [Marius Rackwitz](https://github.com/mrackwitz) + [#53](https://github.com/CocoaPods/cocoapods-downloader/issues/53) + [CocoaPods#5055](https://github.com/CocoaPods/CocoaPods/issues/5055) ##### Bug Fixes