cocoapods-art 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b36b9dd247fa1cae66a684202bbf9459fa1b3f5bfe344a78d4f546a4b3f477b5
4
- data.tar.gz: 806e92e75bcbfb4f1c42724eb0322c56f3e34c2f7f171c01c45586c3048b7279
3
+ metadata.gz: 1938e90af52017a5a970f6d3aafc76e84f1764d98aecf128d33f468a360813ac
4
+ data.tar.gz: 736d4629bc9a42782df8a7b1c362562d46819ebe1016156e1ef85de69f1c8fe0
5
5
  SHA512:
6
- metadata.gz: 889d38f712bb9563396190e31d6ea9b3de324e5defcfa2885ad5ebccbbc87b38d4e69be16df7795fd16195f04e7769a8477dd9cd3c45d3dc71b7f36323796a74
7
- data.tar.gz: d281ba0bd834eec021cce1cdc41bdb9d8908defe754f11bd8e8cae2020b66efb0aea36e79c671586a876ac7abddec272409ee761958b257210e9695cca9234c1
6
+ metadata.gz: 8f2e23338d648172375e2611c6f13b404bf9a868fd265707b2624c453fbca62fe510bd1b5cb8a069e55d36ebeb866d38f2f56be61210535959e4dd8b3a739264
7
+ data.tar.gz: 9427dab4fc839d1c7d6d0fe6ee32b17aeb3e9e88a8e82360b0aea6b71ce0fff10e607dc3877c8589903c52c0fbc90d2e387dd0afafec77509ae54f8e1e52eca8
@@ -17,10 +17,10 @@ GEM
17
17
  json (>= 1.5.1)
18
18
  atomos (0.1.3)
19
19
  claide (1.0.3)
20
- cocoapods (1.8.0)
20
+ cocoapods (1.9.3)
21
21
  activesupport (>= 4.0.2, < 5)
22
22
  claide (>= 1.0.2, < 2.0)
23
- cocoapods-core (= 1.8.0)
23
+ cocoapods-core (= 1.9.3)
24
24
  cocoapods-deintegrate (>= 1.0.3, < 2.0)
25
25
  cocoapods-downloader (>= 1.2.2, < 2.0)
26
26
  cocoapods-plugins (>= 1.0.0, < 2.0)
@@ -36,14 +36,14 @@ GEM
36
36
  nap (~> 1.0)
37
37
  ruby-macho (~> 1.4)
38
38
  xcodeproj (>= 1.11.1, < 2.0)
39
- cocoapods-core (1.8.0)
39
+ cocoapods-core (1.9.3)
40
40
  activesupport (>= 4.0.2, < 6)
41
41
  algoliasearch (~> 1.0)
42
42
  concurrent-ruby (~> 1.0)
43
43
  fuzzy_match (~> 2.0.4)
44
44
  nap (~> 1.0)
45
45
  cocoapods-deintegrate (1.0.4)
46
- cocoapods-downloader (1.2.2)
46
+ cocoapods-downloader (1.4.0)
47
47
  cocoapods-plugins (1.0.0)
48
48
  nap
49
49
  cocoapods-search (1.0.0)
@@ -0,0 +1,2 @@
1
+ git fetch origin pull/$1/head:pr-$1
2
+ git checkout pr-$1
@@ -0,0 +1,23 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'cocoapods_art'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'cocoapods-art'
8
+ spec.version = CocoaPodsArt::VERSION
9
+ spec.authors = ['Dan Feldman']
10
+ spec.email = ['art-dev@jfrog.com']
11
+ spec.description = %q{Enables you to use Artifactory as your spec repo, as well as a repository for your pods}
12
+ spec.summary = %q{Artifactory support for CocoaPods}
13
+ spec.homepage = 'https://github.com/JFrogDev/cocoapods-art'
14
+ spec.license = 'Apache-2.0'
15
+
16
+ spec.files = Dir['lib/**/*.rb']
17
+ spec.files += Dir['[A-Z]*'] + Dir['test/**/*']
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ['lib']
20
+
21
+ spec.add_development_dependency 'bundler', '~> 2.0.2'
22
+ spec.add_development_dependency 'rake', '~> 0'
23
+ end
@@ -2,5 +2,5 @@
2
2
  # The namespace of the CocoaPods Artifactory plugin.
3
3
  #
4
4
  module CocoaPodsArt
5
- VERSION = '1.0.4'
5
+ VERSION = '1.0.5'
6
6
  end
@@ -44,19 +44,29 @@ module Pod
44
44
  class Http
45
45
  # Force flattening of index downloads with :indexDownload => true
46
46
  def self.options
47
- [:type, :flatten, :sha1, :sha256, :indexDownload]
47
+ [:type, :flatten, :sha1, :sha256, :indexDownload, :headers]
48
48
  end
49
49
 
50
50
  alias_method :orig_download_file, :download_file
51
51
  alias_method :orig_should_flatten?, :should_flatten?
52
52
 
53
53
  def download_file(full_filename)
54
- curl_options = ["-f", "-L", "-o", full_filename, url, "--create-dirs", "--netrc-optional"]
54
+ parameters = ["-f", "-L", "-o", full_filename, url, "--create-dirs", "--netrc-optional", '--retry', '2']
55
+ parameters << user_agent_argument if headers.nil? ||
56
+ headers.none? { |header| header.casecmp(USER_AGENT_HEADER).zero? }
57
+
58
+ ssl_conf = ["--cert", `git config --global http.sslcert`.gsub("\n", ""), "--key", `git config --global http.sslkey`.gsub("\n", "")]
59
+ parameters.concat(ssl_conf) if !ssl_conf.any?(&:blank?)
55
60
 
56
61
  netrc_path = ENV["COCOAPODS_ART_NETRC_PATH"]
57
- curl_options.concat(["--netrc-file", Pathname.new(netrc_path).expand_path]) if netrc_path
62
+ parameters.concat(["--netrc-file", Pathname.new(netrc_path).expand_path]) if netrc_path
63
+
64
+ headers.each do |h|
65
+ parameters << '-H'
66
+ parameters << h
67
+ end unless headers.nil?
58
68
 
59
- curl! curl_options
69
+ curl! parameters
60
70
  end
61
71
 
62
72
  # Note that we disabled flattening here for the ENTIRE client to deal with
@@ -110,7 +120,7 @@ module Pod
110
120
  class Manager
111
121
 
112
122
  alias_method :orig_source_from_path, :source_from_path
113
-
123
+
114
124
  # @return [Source] The Source at a given path.
115
125
  #
116
126
  # @param [Pathname] path
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-art
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Feldman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-09 00:00:00.000000000 Z
11
+ date: 2020-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -51,6 +51,8 @@ files:
51
51
  - LICENSE
52
52
  - README.md
53
53
  - Rakefile
54
+ - checkout.sh
55
+ - cocoapods_art.gemspec
54
56
  - lib/art_source.rb
55
57
  - lib/cocoapods_art.rb
56
58
  - lib/cocoapods_plugin.rb
@@ -82,8 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
84
  - !ruby/object:Gem::Version
83
85
  version: '0'
84
86
  requirements: []
85
- rubyforge_project:
86
- rubygems_version: 2.7.6
87
+ rubygems_version: 3.0.3
87
88
  signing_key:
88
89
  specification_version: 4
89
90
  summary: Artifactory support for CocoaPods