cocoapods-downloader 0.2.0 → 0.3.0
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/README.markdown +2 -2
- data/lib/cocoapods-downloader/gem_version.rb +1 -1
- data/lib/cocoapods-downloader/git.rb +6 -4
- data/lib/cocoapods-downloader/http.rb +7 -1
- 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: 0e28fef84925c83ab93ce7cb957dc72bbdfa737c
|
4
|
+
data.tar.gz: 4818acececd068574baf57d8814b59b17a1ec582
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 493f42df8b9495d6ebd51ef7958e7ca544f23fb7c1d4eaa573192184952728f3baa65341ae6319b1f87786199c5db1a39a3d3a6494c11ba4a82d11192e5f32f7
|
7
|
+
data.tar.gz: 2a306f3a6c3c8cef9fcfd3490d3e3dda876d6785c478cdf74bad15e627f5829efa61c05fb3ae9c3fb1f1fb2c724bb711ae49ace5b7d5f5eea44a75600fc0d2ac
|
data/README.markdown
CHANGED
@@ -65,9 +65,9 @@ This gem was extracted from [CocoaPods](https://github.com/CocoaPods/CocoaPods).
|
|
65
65
|
|
66
66
|
## Collaborate
|
67
67
|
|
68
|
-
All CocoaPods development happens on GitHub, there is a repository for [CocoaPods](https://github.com/CocoaPods/CocoaPods) and one for the [CocoaPods specs](https://github.com/CocoaPods/Specs). Contributing patches or Pods is really easy and gratifying
|
68
|
+
All CocoaPods development happens on GitHub, there is a repository for [CocoaPods](https://github.com/CocoaPods/CocoaPods) and one for the [CocoaPods specs](https://github.com/CocoaPods/Specs). Contributing patches or Pods is really easy and gratifying and for a lot of people is their first time.
|
69
69
|
|
70
|
-
Follow [@
|
70
|
+
Follow [@CocoaPods](http://twitter.com/CocoaPods) to get up to date information about what's going on in the CocoaPods world.
|
71
71
|
|
72
72
|
## License
|
73
73
|
|
@@ -62,9 +62,11 @@ module Pod
|
|
62
62
|
|
63
63
|
# @return [void] Convenience method to perform clones operations.
|
64
64
|
#
|
65
|
-
def clone(from, to)
|
65
|
+
def clone(from, to, flags = '')
|
66
66
|
ui_sub_action("Cloning to Pods folder") do
|
67
|
-
|
67
|
+
command = %Q|clone "#{from}" "#{to}"|
|
68
|
+
command << ' ' + flags if flags
|
69
|
+
git!(command)
|
68
70
|
end
|
69
71
|
end
|
70
72
|
|
@@ -91,7 +93,7 @@ module Pod
|
|
91
93
|
|
92
94
|
Dir.chdir(target_path) do
|
93
95
|
if use_cache?
|
94
|
-
|
96
|
+
clone(clone_url, target_path)
|
95
97
|
else
|
96
98
|
git! "init"
|
97
99
|
git! "remote add origin '#{clone_url}'"
|
@@ -210,7 +212,7 @@ module Pod
|
|
210
212
|
ui_sub_action("Creating cache git repo (#{cache_path})") do
|
211
213
|
cache_path.rmtree if cache_path.exist?
|
212
214
|
cache_path.mkpath
|
213
|
-
|
215
|
+
clone(url, cache_path, '--mirror')
|
214
216
|
end
|
215
217
|
end
|
216
218
|
|
@@ -43,7 +43,7 @@ module Pod
|
|
43
43
|
def should_flatten?
|
44
44
|
if options.has_key?(:flatten)
|
45
45
|
true
|
46
|
-
elsif [:tgz, :tar, :tbz].include?(type)
|
46
|
+
elsif [:tgz, :tar, :tbz, :txz].include?(type)
|
47
47
|
true # those archives flatten by default
|
48
48
|
else
|
49
49
|
false # all others (actually only .zip) default not to flatten
|
@@ -59,6 +59,8 @@ module Pod
|
|
59
59
|
:tar
|
60
60
|
elsif url =~ /.(tbz|tar\.bz2)$/
|
61
61
|
:tbz
|
62
|
+
elsif url =~ /.(txz|tar\.xz)$/
|
63
|
+
:txz
|
62
64
|
else
|
63
65
|
nil
|
64
66
|
end
|
@@ -74,6 +76,8 @@ module Pod
|
|
74
76
|
"file.tar"
|
75
77
|
when :tbz
|
76
78
|
"file.tbz"
|
79
|
+
when :txz
|
80
|
+
"file.txz"
|
77
81
|
else
|
78
82
|
raise UnsupportedFileTypeError.new "Unsupported file type: #{type}"
|
79
83
|
end
|
@@ -93,6 +97,8 @@ module Pod
|
|
93
97
|
tar! "xf '#{full_filename}' -C '#{target_path}'"
|
94
98
|
when :tbz
|
95
99
|
tar! "xfj '#{full_filename}' -C '#{target_path}'"
|
100
|
+
when :txz
|
101
|
+
tar! "xf '#{full_filename}' -C '#{target_path}'"
|
96
102
|
else
|
97
103
|
raise UnsupportedFileTypeError.new "Unsupported file type: #{type}"
|
98
104
|
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: 0.
|
4
|
+
version: 0.3.0
|
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-12-24 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description:
|
15
15
|
email:
|