cocoapods-art 1.0.0 → 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
- SHA1:
3
- metadata.gz: 5a57ec3a1f2bfe311aef6d7d2ca1537a326b4b3a
4
- data.tar.gz: 1c3c40007939b2d37af8c309460213a702bd32f4
2
+ SHA256:
3
+ metadata.gz: 1938e90af52017a5a970f6d3aafc76e84f1764d98aecf128d33f468a360813ac
4
+ data.tar.gz: 736d4629bc9a42782df8a7b1c362562d46819ebe1016156e1ef85de69f1c8fe0
5
5
  SHA512:
6
- metadata.gz: e1b189c95eeecc33a00b769790a9574d4d606c7003816c2846b824d390ece83626be84e0900b3336a1a580eb73e8bc964b4dafcc1cde713d4ad57df6d8d13197
7
- data.tar.gz: 23a95dc96bb0770e854b20ddd189e5a2900e8c53ee3c29d3d6eaa29af76d11525aa824d3708c2f9f03d2d5c5a66511956c3a3c4a397da34c3d2c366bc00c6cc8
6
+ metadata.gz: 8f2e23338d648172375e2611c6f13b404bf9a868fd265707b2624c453fbca62fe510bd1b5cb8a069e55d36ebeb866d38f2f56be61210535959e4dd8b3a739264
7
+ data.tar.gz: 9427dab4fc839d1c7d6d0fe6ee32b17aeb3e9e88a8e82360b0aea6b71ce0fff10e607dc3877c8589903c52c0fbc90d2e387dd0afafec77509ae54f8e1e52eca8
@@ -0,0 +1,95 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ cocoapods-art (1.0.4)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ CFPropertyList (3.0.1)
10
+ activesupport (4.2.11.1)
11
+ i18n (~> 0.7)
12
+ minitest (~> 5.1)
13
+ thread_safe (~> 0.3, >= 0.3.4)
14
+ tzinfo (~> 1.1)
15
+ algoliasearch (1.27.0)
16
+ httpclient (~> 2.8, >= 2.8.3)
17
+ json (>= 1.5.1)
18
+ atomos (0.1.3)
19
+ claide (1.0.3)
20
+ cocoapods (1.9.3)
21
+ activesupport (>= 4.0.2, < 5)
22
+ claide (>= 1.0.2, < 2.0)
23
+ cocoapods-core (= 1.9.3)
24
+ cocoapods-deintegrate (>= 1.0.3, < 2.0)
25
+ cocoapods-downloader (>= 1.2.2, < 2.0)
26
+ cocoapods-plugins (>= 1.0.0, < 2.0)
27
+ cocoapods-search (>= 1.0.0, < 2.0)
28
+ cocoapods-stats (>= 1.0.0, < 2.0)
29
+ cocoapods-trunk (>= 1.4.0, < 2.0)
30
+ cocoapods-try (>= 1.1.0, < 2.0)
31
+ colored2 (~> 3.1)
32
+ escape (~> 0.0.4)
33
+ fourflusher (>= 2.3.0, < 3.0)
34
+ gh_inspector (~> 1.0)
35
+ molinillo (~> 0.6.6)
36
+ nap (~> 1.0)
37
+ ruby-macho (~> 1.4)
38
+ xcodeproj (>= 1.11.1, < 2.0)
39
+ cocoapods-core (1.9.3)
40
+ activesupport (>= 4.0.2, < 6)
41
+ algoliasearch (~> 1.0)
42
+ concurrent-ruby (~> 1.0)
43
+ fuzzy_match (~> 2.0.4)
44
+ nap (~> 1.0)
45
+ cocoapods-deintegrate (1.0.4)
46
+ cocoapods-downloader (1.4.0)
47
+ cocoapods-plugins (1.0.0)
48
+ nap
49
+ cocoapods-search (1.0.0)
50
+ cocoapods-stats (1.1.0)
51
+ cocoapods-trunk (1.4.0)
52
+ nap (>= 0.8, < 2.0)
53
+ netrc (~> 0.11)
54
+ cocoapods-try (1.1.0)
55
+ colored2 (3.1.2)
56
+ concurrent-ruby (1.1.5)
57
+ escape (0.0.4)
58
+ fourflusher (2.3.1)
59
+ fuzzy_match (2.0.4)
60
+ gh_inspector (1.1.3)
61
+ httpclient (2.8.3)
62
+ i18n (0.9.5)
63
+ concurrent-ruby (~> 1.0)
64
+ json (2.2.0)
65
+ minitest (5.12.0)
66
+ molinillo (0.6.6)
67
+ nanaimo (0.2.6)
68
+ nap (1.1.0)
69
+ netrc (0.11.0)
70
+ rake (0.9.6)
71
+ ruby-macho (1.4.0)
72
+ thread_safe (0.3.6)
73
+ tzinfo (1.2.5)
74
+ thread_safe (~> 0.1)
75
+ xcodeproj (1.12.0)
76
+ CFPropertyList (>= 2.3.3, < 4.0)
77
+ atomos (~> 0.1.3)
78
+ claide (>= 1.0.2, < 2.0)
79
+ colored2 (~> 3.1)
80
+ nanaimo (~> 0.2.6)
81
+
82
+ PLATFORMS
83
+ ruby
84
+
85
+ DEPENDENCIES
86
+ bundler (~> 2.0.2)
87
+ claide
88
+ cocoapods
89
+ cocoapods-art!
90
+ cocoapods-core
91
+ cocoapods-downloader
92
+ rake (~> 0)
93
+
94
+ BUNDLED WITH
95
+ 2.0.2
data/README.md CHANGED
@@ -15,8 +15,8 @@ pod repo-art add artifactory-local http://art-prod.company.com:8081/artifactory/
15
15
  To use 'myRepo' to resolve pods when installing you must add the following to your Podfile:
16
16
  ```ruby
17
17
  plugin 'cocoapods-art', :sources => [
18
- '<local_specs_repo_name>'
19
- ]
18
+ '<local_specs_repo_name>'
19
+ ]
20
20
  ```
21
21
  More than one source can be included, separated by commas.
22
22
 
@@ -28,6 +28,11 @@ password password
28
28
  ```
29
29
  You can also use an encrypted Artifactory password or your API key
30
30
 
31
+ If your .netrc file is not located in your home directory, you can specify its location in the environmental variable:
32
+ ```
33
+ export COCOAPODS_ART_NETRC_PATH=$HOME/myproject/.netrc
34
+ ```
35
+
31
36
  ## Artifactory Configuration
32
37
  See the [Artifactory User Guide](https://www.jfrog.com/confluence/display/RTF/CocoaPods+Repositories)
33
38
 
@@ -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
@@ -23,5 +23,9 @@ module Pod
23
23
  File.read("#{repo}/.artpodrc") if File.exist?("#{dir}/.artpodrc")
24
24
  end
25
25
  end
26
+
27
+ def git?
28
+ false
29
+ end
26
30
  end
27
31
  end
@@ -2,5 +2,5 @@
2
2
  # The namespace of the CocoaPods Artifactory plugin.
3
3
  #
4
4
  module CocoaPodsArt
5
- VERSION = '1.0.0'
5
+ VERSION = '1.0.5'
6
6
  end
@@ -44,14 +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! '-n', '-f', '-L', '-o', full_filename, url, '--create-dirs'
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?)
60
+
61
+ netrc_path = ENV["COCOAPODS_ART_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?
68
+
69
+ curl! parameters
55
70
  end
56
71
 
57
72
  # Note that we disabled flattening here for the ENTIRE client to deal with
@@ -98,4 +113,33 @@ module Pod
98
113
  end
99
114
  end
100
115
  end
101
- end
116
+ end
117
+
118
+ module Pod
119
+ class Source
120
+ class Manager
121
+
122
+ alias_method :orig_source_from_path, :source_from_path
123
+
124
+ # @return [Source] The Source at a given path.
125
+ #
126
+ # @param [Pathname] path
127
+ # The local file path to one podspec repo.
128
+ #
129
+ def source_from_path(path)
130
+ @sources_by_path ||= Hash.new do |hash, key|
131
+ art_repo = "#{UTIL.get_repos_art_dir()}/#{key.basename}"
132
+ hash[key] = if key.basename.to_s == Pod::TrunkSource::TRUNK_REPO_NAME
133
+ TrunkSource.new(key)
134
+ elsif File.exist?("#{art_repo}/.artpodrc")
135
+ create_source_from_name(key.basename)
136
+ else
137
+ Source.new(key)
138
+ end
139
+ end
140
+ @sources_by_path[path]
141
+ end
142
+
143
+ end
144
+ end
145
+ end
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-art
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
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: 2017-03-13 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
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.3'
19
+ version: 2.0.2
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.3'
26
+ version: 2.0.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  description: Enables you to use Artifactory as your spec repo, as well as a repository
@@ -46,22 +46,25 @@ executables: []
46
46
  extensions: []
47
47
  extra_rdoc_files: []
48
48
  files:
49
+ - Gemfile
50
+ - Gemfile.lock
51
+ - LICENSE
52
+ - README.md
53
+ - Rakefile
54
+ - checkout.sh
55
+ - cocoapods_art.gemspec
49
56
  - lib/art_source.rb
50
57
  - lib/cocoapods_art.rb
51
58
  - lib/cocoapods_plugin.rb
52
59
  - lib/pod/artifactory_repo.rb
60
+ - lib/pod/command/repo_art.rb
53
61
  - lib/pod/command/repo_art/add.rb
54
62
  - lib/pod/command/repo_art/lint.rb
55
63
  - lib/pod/command/repo_art/list.rb
56
64
  - lib/pod/command/repo_art/push.rb
57
65
  - lib/pod/command/repo_art/remove.rb
58
66
  - lib/pod/command/repo_art/update.rb
59
- - lib/pod/command/repo_art.rb
60
67
  - lib/util/repo_util.rb
61
- - Gemfile
62
- - LICENSE
63
- - Rakefile
64
- - README.md
65
68
  homepage: https://github.com/JFrogDev/cocoapods-art
66
69
  licenses:
67
70
  - Apache-2.0
@@ -72,17 +75,16 @@ require_paths:
72
75
  - lib
73
76
  required_ruby_version: !ruby/object:Gem::Requirement
74
77
  requirements:
75
- - - '>='
78
+ - - ">="
76
79
  - !ruby/object:Gem::Version
77
80
  version: '0'
78
81
  required_rubygems_version: !ruby/object:Gem::Requirement
79
82
  requirements:
80
- - - '>='
83
+ - - ">="
81
84
  - !ruby/object:Gem::Version
82
85
  version: '0'
83
86
  requirements: []
84
- rubyforge_project:
85
- rubygems_version: 2.0.14
87
+ rubygems_version: 3.0.3
86
88
  signing_key:
87
89
  specification_version: 4
88
90
  summary: Artifactory support for CocoaPods