cocoapods-downloader 1.2.2 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of cocoapods-downloader might be problematic. Click here for more details.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b8678c1ca6b7e11a35732115f8a24930b39833be521123b79fcfdcdacbe793f
|
4
|
+
data.tar.gz: 336dda5a7586b04f9ec28dd75826c55d3432455e26508b420b740fbe880aaafe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b676a01ee65b3ac1fe20190078c1b5768e71b1aa61093b6621dfb969797b2a1bdb3930894908ed33877dff757a18f5d22e09c9d539b4bc9dd504bf951d2f9fb
|
7
|
+
data.tar.gz: '09a70d3cd823fd999ea82718440490c69443b55b5035688dcbd5d31ab2454b42ff135a91650f02001df1f1237b6c4dc7410ffa5a21a89596359878b5869fecd5'
|
@@ -8,7 +8,14 @@ module Pod
|
|
8
8
|
executable :curl
|
9
9
|
|
10
10
|
def download_file(full_filename)
|
11
|
-
|
11
|
+
parameters = ['-f', '-L', '-o', full_filename, url, '--create-dirs', '--netrc-optional', '--retry', '2']
|
12
|
+
|
13
|
+
headers.each do |h|
|
14
|
+
parameters << '-H'
|
15
|
+
parameters << h
|
16
|
+
end unless headers.nil?
|
17
|
+
|
18
|
+
curl! parameters
|
12
19
|
end
|
13
20
|
end
|
14
21
|
end
|
@@ -6,7 +6,7 @@ module Pod
|
|
6
6
|
module Downloader
|
7
7
|
class RemoteFile < Base
|
8
8
|
def self.options
|
9
|
-
[:type, :flatten, :sha1, :sha256]
|
9
|
+
[:type, :flatten, :sha1, :sha256, :headers]
|
10
10
|
end
|
11
11
|
|
12
12
|
class UnsupportedFileTypeError < StandardError; end
|
@@ -35,6 +35,10 @@ module Pod
|
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
38
|
+
def headers
|
39
|
+
options[:headers]
|
40
|
+
end
|
41
|
+
|
38
42
|
# @note The archive is flattened if it contains only one folder and its
|
39
43
|
# extension is either `tgz`, `tar`, `tbz` or the options specify
|
40
44
|
# it.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-downloader
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eloy Duran
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2019-11-14 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description:
|
15
15
|
email:
|
@@ -52,8 +52,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
52
52
|
- !ruby/object:Gem::Version
|
53
53
|
version: '0'
|
54
54
|
requirements: []
|
55
|
-
|
56
|
-
rubygems_version: 2.7.7
|
55
|
+
rubygems_version: 3.0.3
|
57
56
|
signing_key:
|
58
57
|
specification_version: 3
|
59
58
|
summary: A small library for downloading files from remotes in a folder.
|