cocoapods-downloader 0.1.1 → 0.1.2
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 +4 -4
- data/lib/cocoapods-downloader/base.rb +1 -1
- data/lib/cocoapods-downloader/gem_version.rb +1 -1
- data/lib/cocoapods-downloader/git.rb +10 -2
- 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: 2bb6603dfac244bd22a6fbeb5bd5739b1a037e61
|
4
|
+
data.tar.gz: 8bbcdc339f6ce129704084b6350cd097d4104bcd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3991548c90380f032b1ba9629a8c2c0225bfc535f9a6ce335ea4e834c7605852db84584f5d55b46207b75a51ce1741e109f29a14e59f2eba7cc68fb997be308c
|
7
|
+
data.tar.gz: 8bff26624317c5c2acba439424b1fdb577146fc423bc83546d166daafd7eb6cb1412d351384942fa1510e214102ea464717a7238102ddf60024426c1c0be697e
|
@@ -157,7 +157,7 @@ module Pod
|
|
157
157
|
# @return [Pathname] The directory where the caches are stored.
|
158
158
|
#
|
159
159
|
def class_cache_dir
|
160
|
-
Pathname.new(File.expand_path(cache_root)) + name
|
160
|
+
Pathname.new(File.expand_path(Pathname.pwd + cache_root)) + name
|
161
161
|
end
|
162
162
|
|
163
163
|
# @return [Bool] Whether the downloader should use the cache.
|
@@ -77,6 +77,9 @@ module Pod
|
|
77
77
|
# @note Git fetch and checkout output to standard error and thus they
|
78
78
|
# are redirected to stdout.
|
79
79
|
#
|
80
|
+
# @note For performance if the cache is used the repo is inialized with
|
81
|
+
# git clone (see CocoaPods/CocoaPods#1077).
|
82
|
+
#
|
80
83
|
def download_tag
|
81
84
|
if use_cache?
|
82
85
|
if aggressive_cache?
|
@@ -87,8 +90,13 @@ module Pod
|
|
87
90
|
end
|
88
91
|
|
89
92
|
Dir.chdir(target_path) do
|
90
|
-
|
91
|
-
|
93
|
+
if use_cache?
|
94
|
+
git! "clone '#{clone_url}' '#{target_path}'"
|
95
|
+
else
|
96
|
+
git! "init"
|
97
|
+
git! "remote add origin '#{clone_url}'"
|
98
|
+
end
|
99
|
+
|
92
100
|
git! "fetch origin tags/#{options[:tag]} 2>&1"
|
93
101
|
git! "reset --hard FETCH_HEAD"
|
94
102
|
git! "checkout -b activated-pod-commit 2>&1"
|
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: 0.1.
|
4
|
+
version: 0.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: 2013-
|
12
|
+
date: 2013-08-02 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description:
|
15
15
|
email:
|