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: cf1fa4c5fb3da8df7c444f32589cb2df38e60c2eebe18f8e7ebcff0ee50bcbb7
4
- data.tar.gz: 24d3fe5d0ddbf3e5638c5781cfd09490864f4d4e673c2140de67560e819afb10
3
+ metadata.gz: 1b8678c1ca6b7e11a35732115f8a24930b39833be521123b79fcfdcdacbe793f
4
+ data.tar.gz: 336dda5a7586b04f9ec28dd75826c55d3432455e26508b420b740fbe880aaafe
5
5
  SHA512:
6
- metadata.gz: bddb10ca07f8081a4f0cef416bf150b623472d81b9dbb096d854ec5a810dd30709b63a6d4c2b487b9e617a80cc34fe20191bc0193bc37aa496a36b003baa8e93
7
- data.tar.gz: 6488ab1e8081b6b24f98fb519d259e6da8d709158d645abfaf7f732749ab942c994ba4f8e93d3337e024d27854bcf9149b01271da55fe77ecc3474b050780f46
6
+ metadata.gz: 4b676a01ee65b3ac1fe20190078c1b5768e71b1aa61093b6621dfb969797b2a1bdb3930894908ed33877dff757a18f5d22e09c9d539b4bc9dd504bf951d2f9fb
7
+ data.tar.gz: '09a70d3cd823fd999ea82718440490c69443b55b5035688dcbd5d31ab2454b42ff135a91650f02001df1f1237b6c4dc7410ffa5a21a89596359878b5869fecd5'
@@ -3,6 +3,6 @@ module Pod
3
3
  # @return [String] Downloader’s version, following
4
4
  # [semver](http://semver.org).
5
5
  #
6
- VERSION = '1.2.2'.freeze
6
+ VERSION = '1.3.0'.freeze
7
7
  end
8
8
  end
@@ -8,7 +8,14 @@ module Pod
8
8
  executable :curl
9
9
 
10
10
  def download_file(full_filename)
11
- curl! '-f', '-L', '-o', full_filename, url, '--create-dirs', '--netrc-optional', '--retry', '2'
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.2.2
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: 2018-10-16 00:00:00.000000000 Z
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
- rubyforge_project:
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.