cocoapods-core 0.25.0 → 0.26.0

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: 0747551216b8eae2637c46bc6d036857aa9d3f07
4
- data.tar.gz: 67336f56b3a1835367eee3845fbdd9c5e58a16ce
3
+ metadata.gz: 3ac9323830a4c63bb23da992cb8664b491f4d6da
4
+ data.tar.gz: e54c471df8341b4af4d85cab2cd4b13acb0c1c2e
5
5
  SHA512:
6
- metadata.gz: 5e2c569452087333e69618f77cd72e06ab246d4f2d52cb5f7db22b41ffa628d6d0e598d2b4bfd248a5d6edaf7fa779998d67575d92d51edf66ee349584449cdf
7
- data.tar.gz: 772837fb61c5395dd824e91495ed9fb5f361f01c7ef461244403722c3c3c7a00764304584b1e28c1e24822fe8ab3878b63212ce8d46fbbc5f88f736c3227b751
6
+ metadata.gz: feb69b7e85e3e5384996791778a54b5d12b5b72c1dc1341e63bd13582e84721cbc71b1a3ba4d57f3200b4cd6a73d60e6215ffecf1f5602007f4afcc835f9f397
7
+ data.tar.gz: 8067736a31cf175c42173c99d02185d80fc78516c798300f18b0dc2fb92bcd1ccc189d233f5775b753d7a7eaa8f176fe16862140258fa3b751384bbdf5f787e7
@@ -2,5 +2,5 @@ module Pod
2
2
 
3
3
  # The version of the cocoapods-core.
4
4
  #
5
- CORE_VERSION = '0.25.0' unless defined? Pod::CORE_VERSION
5
+ CORE_VERSION = '0.26.0' unless defined? Pod::CORE_VERSION
6
6
  end
@@ -150,10 +150,7 @@ module Pod
150
150
  def search(dependency)
151
151
  pod_sets.find do |set|
152
152
  # First match the (top level) name, which does not yet load the spec from disk
153
- set.name == dependency.root_name &&
154
- # Now either check if it's a dependency on the top level spec, or if it's not
155
- # check if the requested subspec exists in the top level spec.
156
- set.specification.subspec_by_name(dependency.name)
153
+ set.name == dependency.root_name
157
154
  end
158
155
  end
159
156
 
@@ -302,6 +302,22 @@ module Pod
302
302
 
303
303
  #------------------#
304
304
 
305
+ # @!method documentation_url=(documentation_url)
306
+ #
307
+ # An URL for the documentation of the Pod which will be honored by
308
+ # CocoaPods web properties.
309
+ #
310
+ # @example
311
+ #
312
+ # spec.documentation_url = 'www.example.com/docs.html'
313
+ #
314
+ # @param [String] documentation_url
315
+ # The link of the web documentation of the Pod.
316
+ #
317
+ root_attribute :documentation_url
318
+
319
+ #------------------#
320
+
305
321
  # @!method prepare_command=(command)
306
322
  #
307
323
  # A bash script that will be executed after the Pod is downloaded. This
@@ -390,7 +406,38 @@ module Pod
390
406
 
391
407
  #------------------#
392
408
 
393
- # The deployment targets of the supported platforms.
409
+ # The minimum deployment targets of the supported platforms.
410
+ #
411
+ # ---
412
+ #
413
+ # The following behavior is regarding the use of GCD and the
414
+ # `OS_OBJECT_USE_OBJC` flag. When set to `0`, it will allow code to use
415
+ # `dispatch_release()` on >= iOS 6.0 and OS X >= 10.8.
416
+ #
417
+ # * New libraries that do *not* require ARC don’t need to care about this
418
+ # issue at all.
419
+ #
420
+ # * New libraries that *do* require ARC _and_ have a deployment target of
421
+ # >= iOS 6.0 or OS X >= 10.8:
422
+ #
423
+ # These *no longer* use `dispatch_release()` and should have the
424
+ # `OS_OBJECT_USE_OBJC` flag set to `1`.
425
+ #
426
+ # **Note:** this means that these libraries *have* to specify the
427
+ # deployment target in their specifications in order to have
428
+ # CocoaPods set the flag to `1` and ensure proper behavior.
429
+ #
430
+ # * New libraries that *do* require ARC, but have a deployment target of
431
+ # < iOS 6.0 or OS X < 10.8:
432
+ #
433
+ # These contain `dispatch_release()` calls and as such need the
434
+ # `OS_OBJECT_USE_OBJC` flag set to `0`.
435
+ #
436
+ # **Note:** libraries that do *not* specify a platform version are
437
+ # assumed to have a deployment target of < iOS 6.0 or OS X < 10.8.
438
+ #
439
+ # For more information, see: http://opensource.apple.com/source/libdispatch/libdispatch-228.18/os/object.h
440
+ #
394
441
  #
395
442
  # @example
396
443
  #
@@ -201,7 +201,11 @@ module Pod
201
201
  end
202
202
 
203
203
  def _validate_version(v)
204
- error "The version of the spec should be higher than 0." unless v > Version::ZERO
204
+ if v.to_s.empty?
205
+ error "A version is required."
206
+ else
207
+ error "The version of the spec should be higher than 0." unless v > Version::ZERO
208
+ end
205
209
  end
206
210
 
207
211
  # Performs validations related to the `summary` attribute.
@@ -3,7 +3,7 @@ module Pod
3
3
  module DSL
4
4
 
5
5
  # Provides the accessors methods for the root attributes. Root attributes
6
- # do not support multiplatform values and inheritance.
6
+ # do not support multi-platform values and inheritance.
7
7
  #
8
8
  module RootAttributesAccessors
9
9
 
@@ -35,7 +35,7 @@ module Pod
35
35
  # @return [Hash] a hash containing the authors as the keys and their
36
36
  # email address as the values.
37
37
  #
38
- # @note The value is coherced to a hash with a nil email if needed.
38
+ # @note The value is coerced to a hash with a nil email if needed.
39
39
  #
40
40
  # @example Possible values
41
41
  #
@@ -111,13 +111,21 @@ module Pod
111
111
  # @return [Array<String>] The list of the URL for the screenshots of the
112
112
  # Pod.
113
113
  #
114
- # @note The value is coherced to an array.
114
+ # @note The value is coerced to an array.
115
115
  #
116
116
  def screenshots
117
117
  value = attributes_hash["screenshots"]
118
118
  [*value]
119
119
  end
120
120
 
121
+ # @return [String, Nil] The documentation URL of the Pod if specified.
122
+ #
123
+ def documentation_url
124
+ attributes_hash["documentation_url"]
125
+ end
126
+
127
+ # @return [String, Nil] The prepare command of the Pod if specified.
128
+ #
121
129
  def prepare_command
122
130
  attributes_hash["prepare_command"]
123
131
  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.25.0
4
+ version: 0.26.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: 2013-09-20 00:00:00.000000000 Z
12
+ date: 2013-10-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport