cocoapods-art 0.9.1 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +75 -0
- data/README.md +43 -1
- data/lib/cocoapods_art.rb +1 -1
- data/lib/cocoapods_plugin.rb +17 -19
- data/lib/pod/command/repo_art/add.rb +1 -1
- data/lib/pod/command/repo_art/update.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99fb37607505c1847ee231e02b7bd031e4964f73
|
4
|
+
data.tar.gz: 1ebc2e9f98c340bb6f9f78ff7f01c761f6c78e3c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7496ab46a4a92b482cff767753afcb06a0ce05039bf853c72b3164a1639af7f2f453eb17bed7861ad7870039c8b2fbb0ddff9113de9545dd0049b605c2bc465d
|
7
|
+
data.tar.gz: 042b02eeca5a61b2739da907c52a6e140d054c76e501a2d2773af1213f0a9792f2c2de3822b88e87ae561997ac1dc1931b6bb49c9fc0f51ee8ae54a806c91cc2
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,75 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
cocoapods-art (0.9.1)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
activesupport (4.2.5)
|
10
|
+
i18n (~> 0.7)
|
11
|
+
json (~> 1.7, >= 1.7.7)
|
12
|
+
minitest (~> 5.1)
|
13
|
+
thread_safe (~> 0.3, >= 0.3.4)
|
14
|
+
tzinfo (~> 1.1)
|
15
|
+
claide (0.9.1)
|
16
|
+
cocoapods (0.39.0)
|
17
|
+
activesupport (>= 4.0.2)
|
18
|
+
claide (~> 0.9.1)
|
19
|
+
cocoapods-core (= 0.39.0)
|
20
|
+
cocoapods-downloader (~> 0.9.3)
|
21
|
+
cocoapods-plugins (~> 0.4.2)
|
22
|
+
cocoapods-search (~> 0.1.0)
|
23
|
+
cocoapods-stats (~> 0.6.2)
|
24
|
+
cocoapods-trunk (~> 0.6.4)
|
25
|
+
cocoapods-try (~> 0.5.1)
|
26
|
+
colored (~> 1.2)
|
27
|
+
escape (~> 0.0.4)
|
28
|
+
molinillo (~> 0.4.0)
|
29
|
+
nap (~> 1.0)
|
30
|
+
xcodeproj (~> 0.28.2)
|
31
|
+
cocoapods-core (0.39.0)
|
32
|
+
activesupport (>= 4.0.2)
|
33
|
+
fuzzy_match (~> 2.0.4)
|
34
|
+
nap (~> 1.0)
|
35
|
+
cocoapods-downloader (0.9.3)
|
36
|
+
cocoapods-plugins (0.4.2)
|
37
|
+
nap
|
38
|
+
cocoapods-search (0.1.0)
|
39
|
+
cocoapods-stats (0.6.2)
|
40
|
+
cocoapods-trunk (0.6.4)
|
41
|
+
nap (>= 0.8, < 2.0)
|
42
|
+
netrc (= 0.7.8)
|
43
|
+
cocoapods-try (0.5.1)
|
44
|
+
colored (1.2)
|
45
|
+
escape (0.0.4)
|
46
|
+
fuzzy_match (2.0.4)
|
47
|
+
i18n (0.7.0)
|
48
|
+
json (1.8.3)
|
49
|
+
minitest (5.8.3)
|
50
|
+
molinillo (0.4.1)
|
51
|
+
nap (1.0.0)
|
52
|
+
netrc (0.7.8)
|
53
|
+
rake (0.9.6)
|
54
|
+
thread_safe (0.3.5)
|
55
|
+
tzinfo (1.2.2)
|
56
|
+
thread_safe (~> 0.1)
|
57
|
+
xcodeproj (0.28.2)
|
58
|
+
activesupport (>= 3)
|
59
|
+
claide (~> 0.9.1)
|
60
|
+
colored (~> 1.2)
|
61
|
+
|
62
|
+
PLATFORMS
|
63
|
+
x64-mingw32
|
64
|
+
|
65
|
+
DEPENDENCIES
|
66
|
+
bundler (~> 1.3)
|
67
|
+
claide
|
68
|
+
cocoapods
|
69
|
+
cocoapods-art!
|
70
|
+
cocoapods-core
|
71
|
+
cocoapods-downloader
|
72
|
+
rake (~> 0)
|
73
|
+
|
74
|
+
BUNDLED WITH
|
75
|
+
1.11.2
|
data/README.md
CHANGED
@@ -1,2 +1,44 @@
|
|
1
1
|
# cocoapods-art
|
2
|
-
CocoaPods Plugin to work
|
2
|
+
A CocoaPods Plugin to work with Artifactory Repository
|
3
|
+
|
4
|
+
## Installation
|
5
|
+
`gem install cocoapods-art`
|
6
|
+
|
7
|
+
## Client Configuration
|
8
|
+
To add an Artifactory repository named 'myRepo' to your client:
|
9
|
+
```
|
10
|
+
pod repo-art add http://art-prod.company.com:8081/artifactory/api/pods/myRepo
|
11
|
+
```
|
12
|
+
|
13
|
+
To use 'myRepo' to resolve pods when installing you must add the following to your Podfile:
|
14
|
+
```ruby
|
15
|
+
plugin 'cocoapods-art', :sources => [
|
16
|
+
'<local_specs_repo_name>'
|
17
|
+
]
|
18
|
+
```
|
19
|
+
More than one source can be included, separated by commas.
|
20
|
+
|
21
|
+
For authenticated access, please add the user and password to your .netrc file:
|
22
|
+
```
|
23
|
+
machine art-prod.company.com
|
24
|
+
login admin
|
25
|
+
password password
|
26
|
+
```
|
27
|
+
You can also use an encrypted Artifactory password or your API key
|
28
|
+
|
29
|
+
## Artifactory Configuration
|
30
|
+
See the [Artifactory User Guide](https://www.jfrog.com/confluence/display/RTF/CocoaPods+Repositories)
|
31
|
+
|
32
|
+
## The cocoapods-art plugin exposes all `pod repo` commands by using `pod repo-art`:
|
33
|
+
```
|
34
|
+
pod repo-art add
|
35
|
+
pod repo-art lint
|
36
|
+
pod repo-art list
|
37
|
+
pod repo-art push
|
38
|
+
pod repo-art remove
|
39
|
+
pod repo-art update
|
40
|
+
```
|
41
|
+
## Special notes
|
42
|
+
Contrary to the default behavior, the cocoapods-art plugin does not implicitly update your sources when actions such as `add` or `push` run. To update a repo use `pod repo-art update`
|
43
|
+
|
44
|
+
`pod repo-art update` is an accumulative operation, meaning that it does not remove entries which do not exist in the Artifactory backend in order to preserve entries that were created with the `--local-only` flag. To have all such entries removed use the update command with the `--prune` flag.
|
data/lib/cocoapods_art.rb
CHANGED
data/lib/cocoapods_plugin.rb
CHANGED
@@ -44,8 +44,13 @@ end
|
|
44
44
|
module Pod
|
45
45
|
module Downloader
|
46
46
|
class Http
|
47
|
+
# Force flattening of index downloads with :indexDownload => true
|
48
|
+
def self.options
|
49
|
+
[:type, :flatten, :sha1, :sha256, :indexDownload]
|
50
|
+
end
|
51
|
+
|
47
52
|
alias_method :orig_download_file, :download_file
|
48
|
-
alias_method :
|
53
|
+
alias_method :orig_should_flatten?, :should_flatten?
|
49
54
|
|
50
55
|
def download_file(full_filename)
|
51
56
|
curl! '-n', '-f', '-L', '-o', full_filename, url, '--create-dirs'
|
@@ -53,24 +58,17 @@ module Pod
|
|
53
58
|
|
54
59
|
# Note that we disabled flattening here for the ENTIRE client to deal with
|
55
60
|
# flattening messing up tarballs incoming
|
56
|
-
def
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
tar! 'xfj', unpack_from, '-C', unpack_to
|
68
|
-
when :txz
|
69
|
-
tar! 'xf', unpack_from, '-C', unpack_to
|
70
|
-
when :dmg
|
71
|
-
extract_dmg(unpack_from, unpack_to)
|
72
|
-
else
|
73
|
-
raise UnsupportedFileTypeError, "Unsupported file type: #{type}"
|
61
|
+
def should_flatten?
|
62
|
+
# TODO uncomment when Artifactory stops sending the :flatten flag
|
63
|
+
# if options.key?(:flatten)
|
64
|
+
# true
|
65
|
+
# else
|
66
|
+
# false
|
67
|
+
# end
|
68
|
+
if options.key?(:indexDownload)
|
69
|
+
true
|
70
|
+
else
|
71
|
+
false
|
74
72
|
end
|
75
73
|
end
|
76
74
|
|
@@ -40,7 +40,7 @@ module Pod
|
|
40
40
|
|
41
41
|
repo_dir_specs = "#{repo_dir_root}/Specs"
|
42
42
|
begin
|
43
|
-
downloader = Pod::Downloader::Http.new(repo_dir_specs, "#{@url}/index/fetchIndex", :type => 'tgz')
|
43
|
+
downloader = Pod::Downloader::Http.new(repo_dir_specs, "#{@url}/index/fetchIndex", :type => 'tgz', :indexDownload => true)
|
44
44
|
downloader.download
|
45
45
|
rescue => e
|
46
46
|
FileUtils.remove_entry_secure(repo_dir_root, :force => true)
|
@@ -76,7 +76,7 @@ module Pod
|
|
76
76
|
# Performs a 'soft' update which appends any changes from the remote without deleting out-of-sync entries
|
77
77
|
#
|
78
78
|
def soft_update(source, url)
|
79
|
-
downloader = Pod::Downloader::Http.new("#{source.repo}", "#{url}/index/fetchIndex", :type => 'tgz')
|
79
|
+
downloader = Pod::Downloader::Http.new("#{source.repo}", "#{url}/index/fetchIndex", :type => 'tgz', :indexDownload => true)
|
80
80
|
downloader.download
|
81
81
|
UTIL.cleanup_index_download("#{source.repo}")
|
82
82
|
UTIL.del_redundant_spec_dir("#{source.repo}/Specs/Specs")
|
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: 0.9.
|
4
|
+
version: 0.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Feldman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -47,6 +47,7 @@ extensions: []
|
|
47
47
|
extra_rdoc_files: []
|
48
48
|
files:
|
49
49
|
- Gemfile
|
50
|
+
- Gemfile.lock
|
50
51
|
- LICENSE
|
51
52
|
- README.md
|
52
53
|
- Rakefile
|