cocoapods-downloader 0.7.2 → 0.8.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 65525beb4889730013a64bf195c72153f5916fda
4
- data.tar.gz: dcc5e05077d04952762dfc49946c062ed1406518
3
+ metadata.gz: 7f983978f8becd06c6d0a16d593b5f7cc9ad52a8
4
+ data.tar.gz: 64c97afee1bd09c8bf7eafb86d0f526e6e2b5c6f
5
5
  SHA512:
6
- metadata.gz: 8f0c7598747396d1ac4f004de4e8dd8a65e19af439badd70faf861e9ce4b5f30efd089e0b2f1349241c99415aa4a7d0d54b0deb4d106fc33613d3f3d5a907ad7
7
- data.tar.gz: 64668c107e549505955a18725c3732c63b2fd2f9b8b2326efd246c2e68606a4ab629791956b2cbfe4b139688467a617fefdc0d8f76b8df43495d2d3c1f79b3dd
6
+ metadata.gz: 7f43e20e591ace30ca4f997c205431ffb58fc8636416fae8c16aab383457d0e186ca10d179e4a28560a7f9a55a4cc1553410d95130282f5d8af640ed855fabe6
7
+ data.tar.gz: 24541f612c9ed6238aa950f32cb174a41db29aa60a4ccea93b6d3ff1612d2b30d34d0bb8e7ef2b25fab9e158b826daf75c60054edaa8febb72255a45af5a1d03
@@ -3,6 +3,6 @@ module Pod
3
3
  # @return [String] Downloader’s version, following
4
4
  # [semver](http://semver.org).
5
5
  #
6
- VERSION = '0.7.2'
6
+ VERSION = '0.8.0'
7
7
  end
8
8
  end
@@ -51,15 +51,16 @@ module Pod
51
51
  end
52
52
 
53
53
  def type_with_url(url)
54
- if url =~ /.zip$/
54
+ path = URI.parse(url).path
55
+ if path =~ /.zip$/
55
56
  :zip
56
- elsif url =~ /.(tgz|tar\.gz)$/
57
+ elsif path =~ /.(tgz|tar\.gz)$/
57
58
  :tgz
58
- elsif url =~ /.tar$/
59
+ elsif path =~ /.tar$/
59
60
  :tar
60
- elsif url =~ /.(tbz|tar\.bz2)$/
61
+ elsif path =~ /.(tbz|tar\.bz2)$/
61
62
  :tbz
62
- elsif url =~ /.(txz|tar\.xz)$/
63
+ elsif path =~ /.(txz|tar\.xz)$/
63
64
  :txz
64
65
  else
65
66
  nil
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.7.2
4
+ version: 0.8.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: 2014-10-07 00:00:00.000000000 Z
12
+ date: 2014-11-15 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description:
15
15
  email:
@@ -43,7 +43,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - '>='
45
45
  - !ruby/object:Gem::Version
46
- version: '0'
46
+ version: 2.0.0
47
47
  required_rubygems_version: !ruby/object:Gem::Requirement
48
48
  requirements:
49
49
  - - '>='
@@ -56,4 +56,3 @@ signing_key:
56
56
  specification_version: 3
57
57
  summary: A small library for downloading files from remotes in a folder.
58
58
  test_files: []
59
- has_rdoc: