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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9d377a6d06e0bfbd7d45bf3db915a0158b2d6a18
4
- data.tar.gz: 33ce72c4fff0d49e5f8b7d356c7ae67b35862b07
3
+ metadata.gz: 2bb6603dfac244bd22a6fbeb5bd5739b1a037e61
4
+ data.tar.gz: 8bbcdc339f6ce129704084b6350cd097d4104bcd
5
5
  SHA512:
6
- metadata.gz: 9ece45c163428cac9a408830c76e18d36c41708b7b94922b21a007efd7dfdcb01f2d8cedbd336c1a66d48b7bdd605d1a9aa7d322610a749027e5d74b077c9e1a
7
- data.tar.gz: cf877d611978080d7c7794d9a042a2925c1f3e1681c4cf9742668b79f8c1537ee3279443a0d17f1b9bb68717a5afb84351431e7b992a3a01f38f77135121f024
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.
@@ -4,7 +4,7 @@ module Pod
4
4
  # @return [String] Downloader’s version, following
5
5
  # [semver](http://semver.org).
6
6
  #
7
- VERSION = '0.1.1'
7
+ VERSION = '0.1.2'
8
8
 
9
9
  end
10
10
  end
@@ -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
- git! "init"
91
- git! "remote add origin '#{clone_url}'"
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.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-05-23 00:00:00.000000000 Z
12
+ date: 2013-08-02 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description:
15
15
  email: