cocoapods-core 1.0.0.beta.1 → 1.0.0.beta.2

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: e18c7dc1ff175a43cf2b37bc3bebf90248145ec5
4
- data.tar.gz: 0bef178f77551fbf32d34d06a0de11f7cc3776d4
3
+ metadata.gz: 5c46c2b94d7609c8e8670ee44d014675305bbda0
4
+ data.tar.gz: 7f3969b645f87aa6e328352014a8d873b63467cc
5
5
  SHA512:
6
- metadata.gz: 4339a0143abdc6bc7ecea329512f2933c5a52d33b2cfb378f9171c650857ab0f1146b84106c1974153f491111e78a8a8bfb9fe8a448f4cdafc29dde1ee4e6dbb
7
- data.tar.gz: 93e5dc9d9c650e0b0e540ee3aaab823ecdc327423841df5a435c926e90d803b2c23048f7fc100711a92cfeba7cc5c89f97ab044abf74930404350bd6e802b41e
6
+ metadata.gz: 734616dc29c304891a67a3d45c4f59dc5eb712a80ac02d25983d674e313a8ec69bb82ff853c99caf8571f01fd441036b6793e3eee6435edd1a9b06aa3930c6f0
7
+ data.tar.gz: 768e07f278330b95cf658079a20e08b610c62fd72ebcc2864a9825d70b19ea7e7fc44f3444b5a53bfdfb5fdd7a4163afd271d9594195dc5683f9ca4c56376c8e
@@ -340,6 +340,8 @@ module Pod
340
340
  # part by clients that need to create a dependency equal to the
341
341
  # original one.
342
342
  #
343
+ # @todo Remove the `HEAD` code once everyone has migrated past 1.0.
344
+ #
343
345
  # @return [Dependency] the dependency described by the string.
344
346
  #
345
347
  def self.from_string(string)
@@ -348,6 +350,9 @@ module Pod
348
350
  version = match_data[2]
349
351
  version = version.gsub(/[()]/, '') if version
350
352
  case version
353
+ when ' HEAD'
354
+ CoreUI.warn "Ignoring obsolete `HEAD` specifier in `#{string}`"
355
+ Dependency.new(name)
351
356
  when nil, /from `(.*)(`|')/
352
357
  Dependency.new(name)
353
358
  else
@@ -1,5 +1,5 @@
1
1
  module Pod
2
2
  # The version of the cocoapods-core.
3
3
  #
4
- CORE_VERSION = '1.0.0.beta.1'.freeze unless defined? Pod::CORE_VERSION
4
+ CORE_VERSION = '1.0.0.beta.2'.freeze unless defined? Pod::CORE_VERSION
5
5
  end
@@ -284,13 +284,12 @@ module Pod
284
284
  # return true for any asked pod.
285
285
  #
286
286
  def inhibits_warnings_for_pod?(pod_name)
287
- if inhibit_warnings_hash['all']
287
+ if raw_inhibit_warnings_hash['all']
288
288
  true
289
289
  elsif !root? && parent.inhibits_warnings_for_pod?(pod_name)
290
290
  true
291
291
  else
292
- inhibit_warnings_hash['for_pods'] ||= []
293
- inhibit_warnings_hash['for_pods'].include? pod_name
292
+ Array(inhibit_warnings_hash['for_pods']).include? pod_name
294
293
  end
295
294
  end
296
295
 
@@ -303,7 +302,7 @@ module Pod
303
302
  # @return [void]
304
303
  #
305
304
  def inhibit_all_warnings=(flag)
306
- inhibit_warnings_hash['all'] = flag
305
+ raw_inhibit_warnings_hash['all'] = flag
307
306
  end
308
307
 
309
308
  # Inhibits warnings for a specific pod during compilation.
@@ -314,8 +313,8 @@ module Pod
314
313
  # @return [void]
315
314
  #
316
315
  def inhibit_warnings_for_pod(pod_name)
317
- inhibit_warnings_hash['for_pods'] ||= []
318
- inhibit_warnings_hash['for_pods'] << pod_name
316
+ raw_inhibit_warnings_hash['for_pods'] ||= []
317
+ raw_inhibit_warnings_hash['for_pods'] << pod_name
319
318
  end
320
319
 
321
320
  #--------------------------------------#
@@ -392,8 +391,8 @@ module Pod
392
391
  #
393
392
  def whitelist_pod_for_configuration(pod_name, configuration_name)
394
393
  configuration_name = configuration_name.to_s
395
- configuration_pod_whitelist[configuration_name] ||= []
396
- configuration_pod_whitelist[configuration_name] << pod_name
394
+ list = raw_configuration_pod_whitelist[configuration_name] ||= []
395
+ list << pod_name
397
396
  end
398
397
 
399
398
  # @return [Array<String>] unique list of all configurations for which
@@ -626,13 +625,18 @@ module Pod
626
625
  internal_hash[key] ||= base_value
627
626
  end
628
627
 
628
+ def raw_inhibit_warnings_hash
629
+ get_hash_value('inhibit_warnings', {})
630
+ end
631
+ private :raw_inhibit_warnings_hash
632
+
629
633
  # Returns the inhibit_warnings hash pre-populated with default values.
630
634
  #
631
635
  # @return [Hash<String, Array>] Hash with :all key for inhibiting all
632
636
  # warnings, and :for_pods key for inhibiting warnings per Pod.
633
637
  #
634
638
  def inhibit_warnings_hash
635
- inhibit_hash = get_hash_value('inhibit_warnings', {})
639
+ inhibit_hash = raw_inhibit_warnings_hash
636
640
  if exclusive?
637
641
  inhibit_hash
638
642
  else
@@ -640,6 +644,11 @@ module Pod
640
644
  end
641
645
  end
642
646
 
647
+ def raw_configuration_pod_whitelist
648
+ get_hash_value('configuration_pod_whitelist', {})
649
+ end
650
+ private :raw_configuration_pod_whitelist
651
+
643
652
  # Returns the configuration_pod_whitelist hash
644
653
  #
645
654
  # @return [Hash<String, Array>] Hash with configuration name as key,
@@ -647,7 +656,7 @@ module Pod
647
656
  # as value.
648
657
  #
649
658
  def configuration_pod_whitelist
650
- whitelist_hash = get_hash_value('configuration_pod_whitelist', {})
659
+ whitelist_hash = raw_configuration_pod_whitelist
651
660
  if exclusive?
652
661
  whitelist_hash
653
662
  else
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: 1.0.0.beta.1
4
+ version: 1.0.0.beta.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: 2015-12-30 00:00:00.000000000 Z
12
+ date: 2016-01-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport