cocoapods-downloader 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f2a8c6ba1b53755689a018930d9931d2baa89dd4
4
- data.tar.gz: 906aec19853b5ae60c68dcf3393094760c2066a7
3
+ metadata.gz: f1c22c552d9acba1c4334d829ac7b47c38cf5e28
4
+ data.tar.gz: 5437c465396801ab459439533e6299b7dbb22f38
5
5
  SHA512:
6
- metadata.gz: 2cfe41fbd3273b680ac42ab2bc056e760c97db7f83884d6618e62a454ce02483becee34f07ca2e54dc1ff5944b53a291513297e832d49108f6608053d7c92c9c
7
- data.tar.gz: 0911ea461c6adbaf69c03775a26e9ac7f3bc9021fb13f7967928450dd27e5b87b46b22f3e4acc194a67fcc42ec94d6cc93fdc48fc77f50f04fa144099f4f905e
6
+ metadata.gz: a6c728feeb8ea74a48ce36399a53db00cf65f9f3e7b3ecfc6d6249be099bcbd665246b825dc890682c820faf6a0d6c1b59771850f6287e159ac8ab323032526c
7
+ data.tar.gz: b356fdf33f8e305f3777cea8eae2cc220099183682759f1bd00119db5cb7c219d57a1bd2a5bd4c98ffb44758851f0768012d0c4b141ce476bbb3f20e0532203b
@@ -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.1'.freeze
6
+ VERSION = '1.1.2'.freeze
7
7
  end
8
8
  end
@@ -13,13 +13,11 @@ module Pod
13
13
  end
14
14
 
15
15
  def checkout_options
16
- Dir.chdir(target_path) do
17
- options = {}
18
- options[:git] = url
19
- options[:commit] = `git rev-parse HEAD`.chomp
20
- options[:submodules] = true if self.options[:submodules]
21
- options
22
- end
16
+ options = {}
17
+ options[:git] = url
18
+ options[:commit] = target_git('rev-parse', 'HEAD').chomp
19
+ options[:submodules] = true if self.options[:submodules]
20
+ options
23
21
  end
24
22
 
25
23
  def self.preprocess_options(options)
@@ -92,9 +90,7 @@ module Pod
92
90
 
93
91
  def update_submodules
94
92
  return unless options[:submodules]
95
- Dir.chdir(target_path) do
96
- git! %w(submodule update --init --recursive)
97
- end
93
+ target_git %w(submodule update --init --recursive)
98
94
  end
99
95
 
100
96
  # The arguments to pass to `git` to clone the repo.
@@ -128,10 +124,12 @@ module Pod
128
124
  # Checks out a specific commit of the cloned repo.
129
125
  #
130
126
  def checkout_commit
131
- Dir.chdir(target_path) do
132
- git! 'checkout', '--quiet', options[:commit]
133
- update_submodules
134
- end
127
+ target_git 'checkout', '--quiet', options[:commit]
128
+ update_submodules
129
+ end
130
+
131
+ def target_git(*args)
132
+ git!(['-C', target_path] + args)
135
133
  end
136
134
  end
137
135
  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.1
4
+ version: 1.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: 2016-08-30 00:00:00.000000000 Z
12
+ date: 2016-10-19 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description:
15
15
  email: