cocoapods-downloader 1.1.1 → 1.1.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/lib/cocoapods-downloader/gem_version.rb +1 -1
- data/lib/cocoapods-downloader/git.rb +12 -14
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f1c22c552d9acba1c4334d829ac7b47c38cf5e28
|
|
4
|
+
data.tar.gz: 5437c465396801ab459439533e6299b7dbb22f38
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a6c728feeb8ea74a48ce36399a53db00cf65f9f3e7b3ecfc6d6249be099bcbd665246b825dc890682c820faf6a0d6c1b59771850f6287e159ac8ab323032526c
|
|
7
|
+
data.tar.gz: b356fdf33f8e305f3777cea8eae2cc220099183682759f1bd00119db5cb7c219d57a1bd2a5bd4c98ffb44758851f0768012d0c4b141ce476bbb3f20e0532203b
|
|
@@ -13,13 +13,11 @@ module Pod
|
|
|
13
13
|
end
|
|
14
14
|
|
|
15
15
|
def checkout_options
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
options
|
|
22
|
-
end
|
|
16
|
+
options = {}
|
|
17
|
+
options[:git] = url
|
|
18
|
+
options[:commit] = target_git('rev-parse', 'HEAD').chomp
|
|
19
|
+
options[:submodules] = true if self.options[:submodules]
|
|
20
|
+
options
|
|
23
21
|
end
|
|
24
22
|
|
|
25
23
|
def self.preprocess_options(options)
|
|
@@ -92,9 +90,7 @@ module Pod
|
|
|
92
90
|
|
|
93
91
|
def update_submodules
|
|
94
92
|
return unless options[:submodules]
|
|
95
|
-
|
|
96
|
-
git! %w(submodule update --init --recursive)
|
|
97
|
-
end
|
|
93
|
+
target_git %w(submodule update --init --recursive)
|
|
98
94
|
end
|
|
99
95
|
|
|
100
96
|
# The arguments to pass to `git` to clone the repo.
|
|
@@ -128,10 +124,12 @@ module Pod
|
|
|
128
124
|
# Checks out a specific commit of the cloned repo.
|
|
129
125
|
#
|
|
130
126
|
def checkout_commit
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
127
|
+
target_git 'checkout', '--quiet', options[:commit]
|
|
128
|
+
update_submodules
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
def target_git(*args)
|
|
132
|
+
git!(['-C', target_path] + args)
|
|
135
133
|
end
|
|
136
134
|
end
|
|
137
135
|
end
|
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.1.
|
|
4
|
+
version: 1.1.2
|
|
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: 2016-
|
|
12
|
+
date: 2016-10-19 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description:
|
|
15
15
|
email:
|