cocoapods-core 0.26.2 → 0.27.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1518d80dc6eb01c661185681c7e02e3c20c361d
|
4
|
+
data.tar.gz: d7dcf428683c02c3820b70d57f1a6ec1e6733110
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c162b33548f95d49f6853ae5faba940eb0de16803144d06cce2e37c312aa54b87cfc38d8e7e6bbc983f53b904e88b94dfcfe9883a0ab7897cf7df03a7ad9fd4
|
7
|
+
data.tar.gz: 1d59205b1c5d66e61dd3b2a6c871b445aa00caba184cd980038199f6fb15fe37e6a58e395a5278df76b42eac33c48ae32c68d52c404013dc7b098ec92ef418e4
|
@@ -36,8 +36,13 @@ module Pod
|
|
36
36
|
module DSL
|
37
37
|
|
38
38
|
# @!group Dependencies
|
39
|
-
# The Podfile specifies the dependencies of each user target.
|
40
|
-
|
39
|
+
# The Podfile specifies the dependencies of each user target.
|
40
|
+
#
|
41
|
+
# * `pod` is the way to declare a specific dependency.
|
42
|
+
# * `podspec` provides an easy creation API for local podspecs.
|
43
|
+
# * `target` allows you to scope your dependencies to specific
|
44
|
+
# targets in your Xcode projects.
|
45
|
+
|
41
46
|
#-----------------------------------------------------------------------#
|
42
47
|
|
43
48
|
# Specifies a dependency of the project.
|
@@ -45,21 +50,17 @@ module Pod
|
|
45
50
|
# A dependency requirement is defined by the name of the Pod and
|
46
51
|
# optionally a list of version requirements.
|
47
52
|
#
|
48
|
-
# ------
|
49
|
-
#
|
50
53
|
# When starting out with a project it is likely that you will want to use
|
51
54
|
# the latest version of a Pod. If this is the case, simply omit the
|
52
55
|
# version requirements.
|
53
56
|
#
|
54
57
|
# pod 'SSZipArchive'
|
55
58
|
#
|
56
|
-
#
|
57
59
|
# Later on in the project you may want to freeze to a specific version of
|
58
60
|
# a Pod, in which case you can specify that version number.
|
59
61
|
#
|
60
62
|
# pod 'Objection', '0.9'
|
61
63
|
#
|
62
|
-
#
|
63
64
|
# Besides no version, or a specific one, it is also possible to use
|
64
65
|
# operators:
|
65
66
|
#
|
@@ -246,19 +247,19 @@ module Pod
|
|
246
247
|
#-----------------------------------------------------------------------#
|
247
248
|
|
248
249
|
# @!group Target configuration
|
249
|
-
#
|
250
|
-
|
250
|
+
# These settings are used to control the CocoaPods generated project.
|
251
|
+
#
|
252
|
+
# This starts out simply with stating what `platform` you are working
|
253
|
+
# on. `xcodeproj` allows you to state specifically which project to
|
254
|
+
# link with.
|
255
|
+
|
251
256
|
#-----------------------------------------------------------------------#
|
252
257
|
|
253
258
|
# Specifies the platform for which a static library should be build.
|
254
259
|
#
|
255
|
-
# -----
|
256
|
-
#
|
257
260
|
# CocoaPods provides a default deployment target if one is not specified.
|
258
261
|
# The current default values are `4.3` for iOS and `10.6` for OS X.
|
259
262
|
#
|
260
|
-
# -----
|
261
|
-
#
|
262
263
|
# If the deployment target requires it (iOS < `4.3`), `armv6`
|
263
264
|
# architecture will be added to `ARCHS`.
|
264
265
|
#
|
@@ -345,18 +346,18 @@ module Pod
|
|
345
346
|
# @param [String, Array<String>] targets
|
346
347
|
# the target or the targets to link with.
|
347
348
|
#
|
348
|
-
# @example Link with
|
349
|
+
# @example Link with a user project target
|
349
350
|
#
|
350
351
|
# link_with 'MyApp'
|
351
352
|
#
|
352
|
-
# @example Link with
|
353
|
+
# @example Link with multiple user project targets
|
353
354
|
#
|
354
|
-
# link_with
|
355
|
+
# link_with 'MyApp', 'MyOtherApp'
|
355
356
|
#
|
356
357
|
# @return [void]
|
357
358
|
#
|
358
|
-
def link_with(targets)
|
359
|
-
current_target_definition.link_with = targets
|
359
|
+
def link_with(*targets)
|
360
|
+
current_target_definition.link_with = targets.flatten
|
360
361
|
end
|
361
362
|
|
362
363
|
# Inhibits **all** the warnings from the CocoaPods libraries.
|
@@ -498,7 +498,17 @@ module Pod
|
|
498
498
|
def dependency(*args)
|
499
499
|
name, *version_requirements = args
|
500
500
|
raise Informative, "A specification can't require itself as a subspec" if name == self.name
|
501
|
-
|
501
|
+
if @parent
|
502
|
+
composed_name = ""
|
503
|
+
@parent.name.split("/").each do |component|
|
504
|
+
composed_name << component
|
505
|
+
if name == composed_name
|
506
|
+
raise Informative, "A subspec can't require one of its parents specifications"
|
507
|
+
break
|
508
|
+
end
|
509
|
+
composed_name << "/"
|
510
|
+
end
|
511
|
+
end
|
502
512
|
raise Informative, "Unsupported version requirements" unless version_requirements.all? { |req| req.is_a?(String) }
|
503
513
|
attributes_hash["dependencies"] ||= {}
|
504
514
|
attributes_hash["dependencies"][name] = version_requirements
|
@@ -142,7 +142,7 @@ module Pod
|
|
142
142
|
all_specs.each do |current_spec|
|
143
143
|
current_spec.available_platforms.each do |platform|
|
144
144
|
@consumer = Specification::Consumer.new(current_spec, platform)
|
145
|
-
|
145
|
+
run_all_specs_validation_hooks
|
146
146
|
validate_file_patterns
|
147
147
|
check_tmp_arc_not_nil
|
148
148
|
check_if_spec_is_empty
|
@@ -160,7 +160,7 @@ module Pod
|
|
160
160
|
#
|
161
161
|
# @return [void]
|
162
162
|
#
|
163
|
-
def
|
163
|
+
def run_all_specs_validation_hooks
|
164
164
|
attributes = DSL.attributes.values.reject(&:root_only?)
|
165
165
|
attributes.each do |attr|
|
166
166
|
validation_hook = "_validate_#{attr.name}"
|
@@ -223,6 +223,10 @@ module Pod
|
|
223
223
|
warning "The description is shorter than the summary." if d.length < spec.summary.length
|
224
224
|
end
|
225
225
|
|
226
|
+
def _validate_homepage(h)
|
227
|
+
warning "The homepage has not been updated from default" if h =~ /http:\/\/EXAMPLE/
|
228
|
+
end
|
229
|
+
|
226
230
|
# Performs validations related to the `license` attribute.
|
227
231
|
#
|
228
232
|
def _validate_license(l)
|
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.
|
4
|
+
version: 0.27.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eloy Duran
|
@@ -9,22 +9,28 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-10-
|
12
|
+
date: 2013-10-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- -
|
18
|
+
- - '>='
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: 3.2.15
|
21
|
+
- - <
|
19
22
|
- !ruby/object:Gem::Version
|
20
|
-
version: '
|
23
|
+
version: '4'
|
21
24
|
type: :runtime
|
22
25
|
prerelease: false
|
23
26
|
version_requirements: !ruby/object:Gem::Requirement
|
24
27
|
requirements:
|
25
|
-
- -
|
28
|
+
- - '>='
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: 3.2.15
|
31
|
+
- - <
|
26
32
|
- !ruby/object:Gem::Version
|
27
|
-
version: '
|
33
|
+
version: '4'
|
28
34
|
- !ruby/object:Gem::Dependency
|
29
35
|
name: nap
|
30
36
|
requirement: !ruby/object:Gem::Requirement
|