cocoapods-downloader 1.1.0 → 1.1.1

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: ec3aeaa63a0bde59b725c1bedb3197803ef16bec
4
- data.tar.gz: 73b1647fe1560d7c110479a9c65e43e1554754c9
3
+ metadata.gz: f2a8c6ba1b53755689a018930d9931d2baa89dd4
4
+ data.tar.gz: 906aec19853b5ae60c68dcf3393094760c2066a7
5
5
  SHA512:
6
- metadata.gz: f9dd8ff98b0af317733a9b56ff1d62eb657c9e0520d61112c31e182fe10ec71b03ac17be17653f4e29d66dfb13abcce13ec6ca9a3f83055ce4edbb98264c3ca3
7
- data.tar.gz: ae72d264ad1ea26b4c914b1865b861eecd3456a4c73cc4fee41022ed0b772d59586d429f516fffdea246e623f046f950b3666ea96a4f28be85911de484d0f691
6
+ metadata.gz: 2cfe41fbd3273b680ac42ab2bc056e760c97db7f83884d6618e62a454ce02483becee34f07ca2e54dc1ff5944b53a291513297e832d49108f6608053d7c92c9c
7
+ data.tar.gz: 0911ea461c6adbaf69c03775a26e9ac7f3bc9021fb13f7967928450dd27e5b87b46b22f3e4acc194a67fcc42ec94d6cc93fdc48fc77f50f04fa144099f4f905e
@@ -3,6 +3,6 @@ module Pod
3
3
  # @return [String] Downloader’s version, following
4
4
  # [semver](http://semver.org).
5
5
  #
6
- VERSION = '1.1.0'.freeze
6
+ VERSION = '1.1.1'.freeze
7
7
  end
8
8
  end
@@ -79,12 +79,7 @@ module Pod
79
79
  ui_sub_action('Git download') do
80
80
  begin
81
81
  git! clone_arguments(force_head, shallow_clone)
82
-
83
- if options[:submodules]
84
- Dir.chdir(target_path) do
85
- git! %w(submodule update --init --recursive)
86
- end
87
- end
82
+ update_submodules
88
83
  rescue DownloaderError => e
89
84
  if e.message =~ /^fatal:.*does not support --depth$/im
90
85
  clone(force_head, false)
@@ -95,6 +90,13 @@ module Pod
95
90
  end
96
91
  end
97
92
 
93
+ def update_submodules
94
+ return unless options[:submodules]
95
+ Dir.chdir(target_path) do
96
+ git! %w(submodule update --init --recursive)
97
+ end
98
+ end
99
+
98
100
  # The arguments to pass to `git` to clone the repo.
99
101
  #
100
102
  # @param [Bool] force_head
@@ -128,6 +130,7 @@ module Pod
128
130
  def checkout_commit
129
131
  Dir.chdir(target_path) do
130
132
  git! 'checkout', '--quiet', options[:commit]
133
+ update_submodules
131
134
  end
132
135
  end
133
136
  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.0
4
+ version: 1.1.1
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-07-11 00:00:00.000000000 Z
12
+ date: 2016-08-30 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description:
15
15
  email:
@@ -41,17 +41,17 @@ require_paths:
41
41
  - lib
42
42
  required_ruby_version: !ruby/object:Gem::Requirement
43
43
  requirements:
44
- - - '>='
44
+ - - ">="
45
45
  - !ruby/object:Gem::Version
46
46
  version: 2.0.0
47
47
  required_rubygems_version: !ruby/object:Gem::Requirement
48
48
  requirements:
49
- - - '>='
49
+ - - ">="
50
50
  - !ruby/object:Gem::Version
51
51
  version: '0'
52
52
  requirements: []
53
53
  rubyforge_project:
54
- rubygems_version: 2.6.5
54
+ rubygems_version: 2.4.5.1
55
55
  signing_key:
56
56
  specification_version: 3
57
57
  summary: A small library for downloading files from remotes in a folder.