cocoapods-core 0.35.0.rc2 → 0.35.0

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: 5c025af4a27d6c1a0cc69644b4b8f3e88a2d31c9
4
- data.tar.gz: a86d5560da6a0e0f99683cb412cde15e85dcd371
3
+ metadata.gz: bcbca71ceead035a92e4707de3007cc2ecad1d49
4
+ data.tar.gz: 0aecd4fdb9b8dea3df82280c80fddcf6a181acae
5
5
  SHA512:
6
- metadata.gz: c031202d296e7b9c4b0f505cca1075bf288d1a79129dc82159ddefac6e465082f83ff230877d0d3945d2720ac3ac2a587f05c36cb82fdb48d14d9191dbdb6388
7
- data.tar.gz: 82e323612e5df41aa0c5b83ddbe615c88b09c070677c6edff8b4a3ed801390a364de0d351df25c19d649bd87a043aa37706c0eb46f7d066286480e7f026236be
6
+ metadata.gz: a776fb7c8ccf469f3a1c94d1b9971e33b5a3b6a2789f4a7e15a318d2d532294ac80651d42fc4a1bc7bfc31aa92965c7862e179d87479d018ead16d500e69a7de
7
+ data.tar.gz: a1150d9acc6638be13f1c864508f5c6464a6299d85aab96d4b369ad8dbbdc7a32d5bed4fdaa3497515d72f0bbbcbee3156cfc13da6aa933570dbcad9f7f6f145
@@ -1,5 +1,5 @@
1
1
  module Pod
2
2
  # The version of the cocoapods-core.
3
3
  #
4
- CORE_VERSION = '0.35.0.rc2' unless defined? Pod::CORE_VERSION
4
+ CORE_VERSION = '0.35.0' unless defined? Pod::CORE_VERSION
5
5
  end
@@ -150,6 +150,23 @@ module Pod
150
150
  end
151
151
  end
152
152
 
153
+ # Returns the specific checkout options for the external source of the pod
154
+ # with the given name.
155
+ #
156
+ # @example Output
157
+ # {:commit => "919903db28535c3f387c4bbaa6a3feae4428e993"
158
+ # :git => "https://github.com/luisdelarosa/AFRaptureXMLRequestOperation.git"}
159
+ #
160
+ # @return [Hash] a hash of the checkout options for the external source of
161
+ # the pod with the given name.
162
+ #
163
+ # @param [String] name
164
+ # the name of the Pod.
165
+ #
166
+ def checkout_options_for_pod_named(name)
167
+ checkout_options_data[name]
168
+ end
169
+
153
170
  # @return [Version] The version of CocoaPods which generated this lockfile.
154
171
  #
155
172
  def cocoapods_version
@@ -186,6 +203,13 @@ module Pod
186
203
  @external_sources_data ||= internal_data['EXTERNAL SOURCES'] || {}
187
204
  end
188
205
 
206
+ # @return [Hash{String => Hash}] a hash where the name of the pods are the
207
+ # keys and the values are a hash of specific checkout options.
208
+ #
209
+ def checkout_options_data
210
+ @checkout_options_data ||= internal_data['CHECKOUT OPTIONS'] || {}
211
+ end
212
+
189
213
  # @return [Hash{String => Version}] a Hash containing the name of the root
190
214
  # specification of the installed Pods as the keys and their
191
215
  # corresponding {Version} as the values.
@@ -308,6 +332,7 @@ module Pod
308
332
  'PODS',
309
333
  'DEPENDENCIES',
310
334
  'EXTERNAL SOURCES',
335
+ 'CHECKOUT OPTIONS',
311
336
  'SPEC CHECKSUMS',
312
337
  'COCOAPODS',
313
338
  ]
@@ -334,11 +359,12 @@ module Pod
334
359
  #
335
360
  # @return [Lockfile] a new lockfile.
336
361
  #
337
- def generate(podfile, specs)
362
+ def generate(podfile, specs, checkout_options)
338
363
  hash = {
339
364
  'PODS' => generate_pods_data(specs),
340
365
  'DEPENDENCIES' => generate_dependencies_data(podfile),
341
366
  'EXTERNAL SOURCES' => generate_external_sources_data(podfile),
367
+ 'CHECKOUT OPTIONS' => checkout_options,
342
368
  'SPEC CHECKSUMS' => generate_checksums(specs),
343
369
  'COCOAPODS' => CORE_VERSION,
344
370
  }
@@ -600,19 +600,33 @@ module Pod
600
600
 
601
601
  # @!method requires_arc=(flag)
602
602
  #
603
- # Whether the library requires ARC to be compiled. If true the
604
- # `-fobjc-arc` flag will be added to the compiler flags.
603
+ # `requires_arc` allows you to specify which source_files use ARC.
604
+ # This can either be the files which support ARC, or true to indicate
605
+ # all of the source_files use ARC.
606
+ #
607
+ # Files which do not use ARC will have the `-fno-objc-arc` compiler
608
+ # flag.
609
+ #
605
610
  # The default value of this attribute is `true`.
606
611
  #
607
612
  # @example
608
613
  #
609
614
  # spec.requires_arc = false
610
615
  #
611
- # @param [Bool] flag
612
- # whether the source files require ARC.
616
+ # @example
617
+ #
618
+ # spec.requires_arc = 'Classes/Arc'
619
+ #
620
+ # @example
621
+ #
622
+ # spec.requires_arc = ['Classes/*ARC.m', 'Classes/ARC.mm']
623
+ #
624
+ # @param [Bool, String, Array<String>] flag
625
+ # whether the source files require ARC.
613
626
  #
614
627
  attribute :requires_arc,
615
- :types => [TrueClass, FalseClass],
628
+ :types => [TrueClass, FalseClass, String, Array],
629
+ :file_patterns => true,
616
630
  :default_value => true,
617
631
  :inherited => true
618
632
 
@@ -1035,10 +1049,11 @@ module Pod
1035
1049
  # A list of resources that should be copied into the target bundle.
1036
1050
  #
1037
1051
  # We strongly **recommend** library developers to adopt [resource
1038
- # bundles](http://docs.cocoapods.org/specification.html#resources) as
1039
- # there can be name collisions using the resources attribute. Moreover
1040
- # resources specified with this attribute are copied directly to the
1041
- # client target and therefore they are not optimized by Xcode.
1052
+ # bundles](http://guides.cocoapods.org/syntax/podspec.html#resource_bundles)
1053
+ # as there can be name collisions using the resources attribute.
1054
+ # Moreover resources specified with this attribute are copied
1055
+ # directly to the client target and therefore they are not
1056
+ # optimized by Xcode.
1042
1057
  #
1043
1058
  # @example
1044
1059
  #
@@ -76,13 +76,17 @@ module Pod
76
76
  attributes = DSL.attributes.values.select(&:file_patterns?)
77
77
  attributes.each do |attrb|
78
78
  patterns = consumer.send(attrb.name)
79
+
79
80
  if patterns.is_a?(Hash)
80
81
  patterns = patterns.values.flatten(1)
81
82
  end
82
- patterns.each do |pattern|
83
- if pattern.start_with?('/')
84
- results.add_error '[File Patterns] File patterns must be ' \
85
- "relative and cannot start with a slash (#{attrb.name})."
83
+
84
+ if patterns.respond_to?(:each)
85
+ patterns.each do |pattern|
86
+ if pattern.start_with?('/')
87
+ results.add_error '[File Patterns] File patterns must be ' \
88
+ "relative and cannot start with a slash (#{attrb.name})."
89
+ end
86
90
  end
87
91
  end
88
92
  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.35.0.rc2
4
+ version: 0.35.0
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: 2014-11-06 00:00:00.000000000 Z
12
+ date: 2014-11-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport