cocoapods-core 0.17.0.rc1 → 0.17.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9ec7156242ce09d5db9a9527275defb79e0727bb
4
- data.tar.gz: 4d33bcedda0b6089ebb42650bd02ac234d361330
3
+ metadata.gz: 5a836c9588ccd3360f815711c6fa330f3ba985bf
4
+ data.tar.gz: d73fd15ad606d93ed8341ca3ef011685cdfc4ca4
5
5
  SHA512:
6
- metadata.gz: 1ceabc9d9aedd42ebc5e9273779bd141b0d99e19ca8766824e3ee00dd63cec388ca84fd15d52c21ab74d0c9732e66b02ede288976f292f474cb4839d34df31ce
7
- data.tar.gz: 334537cee3087739db642d937b8bfa713f947d822b95224261c1b8f05d6c198f1a73c35f6d3db6eafde0175e73e0a72eb60e4386d7dd855ea2e95899ed6d7d49
6
+ metadata.gz: 97eec73f16675a02d3aec24c4c8256b48d78be78ecf8fddbc837707ae913d2c2a632fcc2e301476cefce9806ecd70c4accf23d89775ca6228ad9022aea964bce
7
+ data.tar.gz: 701710ba878f52dbfb270ec94430a2820085fa60abff0accc27a9b256920be72a5f664a72fd420487d7efabd0ef2cf491930e45e787931443d9161b2274c1d15
@@ -2,5 +2,5 @@ module Pod
2
2
 
3
3
  # The version of the cocoapods-core.
4
4
  #
5
- CORE_VERSION = '0.17.0.rc1' unless defined? Pod::CORE_VERSION
5
+ CORE_VERSION = '0.17.0.rc2' unless defined? Pod::CORE_VERSION
6
6
  end
@@ -274,10 +274,16 @@ module Pod
274
274
 
275
275
  # @return [Array<Pathname>] the directories where the sources are stored.
276
276
  #
277
+ # @note If the repos dir doesn't exits this will return an empty array.
278
+ #
277
279
  # @raise If the repos dir doesn't exits.
278
280
  #
279
281
  def dirs
280
- repos_dir.children.select(&:directory?)
282
+ if repos_dir.exist?
283
+ repos_dir.children.select(&:directory?)
284
+ else
285
+ []
286
+ end
281
287
  end
282
288
  end
283
289
  end
@@ -247,7 +247,7 @@ module Pod
247
247
  end
248
248
  end
249
249
  else
250
- value
250
+ new_value
251
251
  end
252
252
  end
253
253
 
@@ -293,8 +293,8 @@ module Pod
293
293
  # Check empty subspec attributes
294
294
  #
295
295
  def check_if_spec_is_empty
296
- methods = %w[ source_files resources preserve_paths subspecs ]
297
- empty = methods.all? { |m| consumer.send(m).empty? }
296
+ methods = %w[ source_files resources preserve_paths ]
297
+ empty = methods.all? { |m| consumer.send(m).empty? } && consumer.spec.subspecs.empty?
298
298
  if empty
299
299
  error "The spec appears to be empty (no source files, resources, or preserve paths)."
300
300
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0.rc1
4
+ version: 0.17.0.rc2
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-02-25 00:00:00.000000000 Z
12
+ date: 2013-02-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport