cocoapods-core 0.17.0.rc3 → 0.17.0.rc4

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: 3fe88a6f9588e89807e637665aaa1e67f6c1b1dc
4
- data.tar.gz: 87c2e36c0d9f900e0b812a5fa2d31f5d8c5e8aac
3
+ metadata.gz: 896adda27172b8dcfa978bf08ff55246b8ca0590
4
+ data.tar.gz: 25daeb66ef4f1c3c35fc6c01620379a1e040ea3a
5
5
  SHA512:
6
- metadata.gz: 274290c605f8e34c8dd2aebaa8e5cf3b87ae49f53c0e8a922ee475d65e7e65091d4d064fc54d53e6a57b5aef6f9382722ffc586f01ea45201f5bd090e48894df
7
- data.tar.gz: 908d53de3c53997e9e2d249a06104888468469f32144880cfb188387aab1a51cfdfcc1939e65ee67b181bb61376df3cc0a9e8f12082399516fdd5b0ebb4697c0
6
+ metadata.gz: 30a685494b26ad501954300b8f1e1cfb7ce90adc2ce9f6893cd6fcad6a12e6813f0d912438d3507143ca2eb7852bcb3eca836695af10deae677305d2fdc3ee16
7
+ data.tar.gz: 3142de608a637b0f18bfc978953e1691db558da210fcfd9bced9d4263510dd3f6b7b3496094acafd506106855dcc34c99dbfde742de39dc5dd29dd28555c09af
@@ -2,5 +2,5 @@ module Pod
2
2
 
3
3
  # The version of the cocoapods-core.
4
4
  #
5
- CORE_VERSION = '0.17.0.rc3' unless defined? Pod::CORE_VERSION
5
+ CORE_VERSION = '0.17.0.rc4' unless defined? Pod::CORE_VERSION
6
6
  end
@@ -281,6 +281,10 @@ module Pod
281
281
  # explicit project and there is only **one** project in the same
282
282
  # directory as the Podfile then that project will be used.
283
283
  #
284
+ # It is possible also to specify whether the build settings of your
285
+ # custom build configurations should be modeled after the Release or
286
+ # the Debug build configuration.
287
+ #
284
288
  # @param [String] path
285
289
  # the path of the project to link with
286
290
  #
@@ -303,6 +307,11 @@ module Pod
303
307
  # xcodeproj `TestProject`
304
308
  # end
305
309
  #
310
+ # @example Using custom build configurations
311
+ #
312
+ # xcodeproj `TestProject`, 'Mac App Store' => :release, 'Test' => :debug
313
+ #
314
+ #
306
315
  # @return [void]
307
316
  #
308
317
  def xcodeproj(path, build_configurations = {})
@@ -423,11 +432,15 @@ module Pod
423
432
  # This hook allows you to make any changes to the Pods after they have
424
433
  # been downloaded but before they are installed.
425
434
  #
435
+ # It receives the
436
+ # `[Pod::Hooks::InstallerRepresentation](http://docs.cocoapods.org/cocoapods/pod/hooks/installerrepresentation/)`
437
+ # as its only argument.
438
+ #
426
439
  # @example Defining a pre install hook in a Podfile.
427
440
  #
428
- # pre_install do |installer|
429
- # # Do something fancy!
430
- # end
441
+ # pre_install do |installer_representation|
442
+ # # Do something fancy!
443
+ # end
431
444
  #
432
445
  #
433
446
  def pre_install(&block)
@@ -438,15 +451,19 @@ module Pod
438
451
  # project before it is written to disk, or any other tasks you might want
439
452
  # to perform.
440
453
  #
454
+ # It receives the
455
+ # `[Pod::Hooks::InstallerRepresentation](http://docs.cocoapods.org/cocoapods/pod/hooks/installerrepresentation/)`
456
+ # as its only argument.
457
+ #
441
458
  # @example Customizing the `OTHER_LDFLAGS` of all targets
442
459
  #
443
- # post_install do |installer|
444
- # installer.project.targets.each do |target|
445
- # target.build_configurations.each do |config|
446
- # config.build_settings['GCC_ENABLE_OBJC_GC'] = 'supported'
447
- # end
448
- # end
449
- # end
460
+ # post_install do |installer_representation|
461
+ # installer_representation.project.targets.each do |target|
462
+ # target.build_configurations.each do |config|
463
+ # config.build_settings['GCC_ENABLE_OBJC_GC'] = 'supported'
464
+ # end
465
+ # end
466
+ # end
450
467
  #
451
468
  # @return [void]
452
469
  #
@@ -125,6 +125,7 @@ module Pod
125
125
  #
126
126
  root_attribute :authors, {
127
127
  :types => [ String, Array, Hash ],
128
+ :container => Hash,
128
129
  :required => true,
129
130
  :singularize => true,
130
131
  }
@@ -376,18 +377,18 @@ module Pod
376
377
 
377
378
  #------------------#
378
379
 
379
- # The deployment targets of the supported platforms.
380
+ # The deployment targets of the supported platforms.
380
381
  #
381
- # @example
382
+ # @example
382
383
  #
383
- # spec.ios.deployment_target = "6.0"
384
+ # spec.ios.deployment_target = "6.0"
384
385
  #
385
- # @example
386
+ # @example
386
387
  #
387
- # spec.osx.deployment_target = "10.8"
388
+ # spec.osx.deployment_target = "10.8"
388
389
  #
389
- # @param [String] deployment_target
390
- # The deployment target of the platform.
390
+ # @param [String] deployment_target
391
+ # The deployment target of the platform.
391
392
  #
392
393
  def deployment_target=(*args)
393
394
  raise StandardError, "The deployment target can be declared only per platform."
@@ -912,20 +913,23 @@ module Pod
912
913
 
913
914
  # This is a convenience method which gets called after all pods have been
914
915
  # downloaded but before they have been installed, and the Xcode project
915
- # and related files have been generated.
916
- #
917
- # It receives the `Pod::LocalPod` instance generated form the
918
- # specification and the `Pod::Podfile::TargetDefinition` instance for the
916
+ # and related files have been generated. Note that this hook is called
917
+ # for each Pods library.
918
+ #
919
+ # It receives the
920
+ # `[Pod::Hooks::PodRepresentation](http://docs.cocoapods.org/cocoapods/pod/hooks/podrepresentation/)`
921
+ # instance generated form the
922
+ # specification and the
923
+ # `[Pod::Hooks::LibraryRepresentation](http://docs.cocoapods.org/cocoapods/pod/hooks/libraryrepresentation/)`
924
+ # instance for the
919
925
  # current target.
920
926
  #
921
927
  # Override this to, for instance, to run any build script.
922
928
  #
923
929
  # @example
924
930
  #
925
- # Pod::Spec.new do |spec|
926
- # spec.pre_install do |pod, target_definition|
927
- # Dir.chdir(pod.root){ `sh make.sh` }
928
- # end
931
+ # spec.pre_install do |pod, target_definition|
932
+ # Dir.chdir(pod.root){ `sh make.sh` }
929
933
  # end
930
934
  #
931
935
  def pre_install(&block)
@@ -934,21 +938,20 @@ module Pod
934
938
 
935
939
  # This is a convenience method which gets called after all pods have been
936
940
  # downloaded, installed, and the Xcode project and related files have
937
- # been generated.
941
+ # been generated. Note that this hook is called for each Pods library.
938
942
  #
939
- # It receives the `Pod::Installer::TargetInstaller` instance for the
940
- # current target.
943
+ # It receives a
944
+ # `[Pod::Hooks::LibraryRepresentation](http://docs.cocoapods.org/cocoapods/pod/hooks/libraryrepresentation/)`
945
+ # instance for the current target.
941
946
  #
942
947
  # Override this to, for instance, add to the prefix header.
943
948
  #
944
949
  # @example
945
950
  #
946
- # Pod::Spec.new do |spec|
947
- # spec.post_install do |target_installer|
948
- # prefix_header = config.project_pods_root + target_installer.prefix_header_filename
949
- # prefix_header.open('a') do |file|
950
- # file.puts('#ifdef __OBJC__\n#import "SSToolkitDefines.h"\n#endif')
951
- # end
951
+ # spec.post_install do |library_representation|
952
+ # prefix_header = library_representation.prefix_header_path
953
+ # prefix_header.open('a') do |file|
954
+ # file.puts('#ifdef __OBJC__\n#import "SSToolkitDefines.h"\n#endif')
952
955
  # end
953
956
  # end
954
957
  #
@@ -272,7 +272,7 @@ module Pod
272
272
  end
273
273
  patterns.each do |pattern|
274
274
  if pattern.is_a?(Rake::FileList)
275
- error "Rake::FileList is deprecated, use `exclude_files` (#{attrb.name})."
275
+ warning "Rake::FileList is deprecated, use `exclude_files` (#{attrb.name})."
276
276
  else
277
277
  if pattern.start_with?('/')
278
278
  error "File patterns must be relative and cannot start with a slash (#{attrb.name})."
@@ -294,9 +294,10 @@ module Pod
294
294
  #
295
295
  def check_if_spec_is_empty
296
296
  methods = %w[ source_files resources preserve_paths ]
297
- empty = methods.all? { |m| consumer.send(m).empty? } && consumer.spec.subspecs.empty?
297
+ empty_patterns = methods.all? { |m| consumer.send(m).empty? } && consumer.spec.subspecs.empty?
298
+ empty = empty_patterns && consumer.spec.subspecs.empty?
298
299
  if empty
299
- error "The spec appears to be empty (no source files, resources, or preserve paths)."
300
+ warning "The #{consumer.spec} spec appears to be empty (no source files, resources, preserve paths or subspecs)."
300
301
  end
301
302
  end
302
303
 
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.rc3
4
+ version: 0.17.0.rc4
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-03-09 00:00:00.000000000 Z
12
+ date: 2013-03-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport