cocoapods-core 0.17.1 → 0.17.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/cocoapods-core/dependency.rb +5 -1
- data/lib/cocoapods-core/gem_version.rb +1 -1
- data/lib/cocoapods-core/podfile/target_definition.rb +8 -2
- data/lib/cocoapods-core/specification/dsl.rb +12 -12
- data/lib/cocoapods-core/specification/linter.rb +1 -2
- data/lib/cocoapods-core/specification.rb +2 -2
- metadata +10 -21
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 947ec8b96eb3185b766c593bb593b2581c52b638
|
4
|
+
data.tar.gz: 4a98493b105f0b2992122ece671512f3d479097a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 0eea0f9b451e7ece86fdcfb637a91b82517bb623d14a505c73f470b1826d9929672c15cd83c1fa7b027e85b797611beac28686f958b9ae2ffe0ab80f31895138
|
7
|
+
data.tar.gz: da57b1c31ee3fa64a5ea3948497307bb65812b9b50117a61cd0ebe4be3986d7ba19af02ca04d2296d34be31c2e5cd19849e4555548e79ce869755276d8bf2e17
|
@@ -66,11 +66,15 @@ module Pod
|
|
66
66
|
def initialize(name = nil, *requirements)
|
67
67
|
if requirements.last.is_a?(Hash)
|
68
68
|
@external_source = requirements.pop
|
69
|
+
unless requirements.empty?
|
70
|
+
raise Informative, "A dependency with an external source may not specify version requirements (#{name})."
|
71
|
+
end
|
72
|
+
|
69
73
|
elsif requirements.last == :head
|
70
74
|
@head = true
|
71
75
|
requirements.pop
|
72
76
|
unless requirements.empty?
|
73
|
-
raise
|
77
|
+
raise Informative, "A `:head` dependency may not specify version requirements (#{name})."
|
74
78
|
end
|
75
79
|
end
|
76
80
|
|
@@ -509,14 +509,20 @@ module Pod
|
|
509
509
|
|
510
510
|
# @return [Array<Dependency>] The dependencies inherited by the podspecs.
|
511
511
|
#
|
512
|
+
# @note The podspec directive is intended include the dependencies of a
|
513
|
+
# spec in the project where it is developed. For this reason the
|
514
|
+
# spec, or any of it subspecs, cannot be included in the
|
515
|
+
# dependencies. Otherwise it would generate an chicken-and-egg
|
516
|
+
# problem.
|
517
|
+
#
|
512
518
|
def podspec_dependencies
|
513
519
|
podspecs = get_hash_value('podspecs') || []
|
514
520
|
podspecs.map do |options|
|
515
521
|
file = podspec_path_from_options(options)
|
516
522
|
spec = Specification.from_file(file)
|
517
523
|
all_specs = [spec, *spec.recursive_subspecs]
|
518
|
-
all_specs.map{ |s| s.dependencies(platform) }
|
519
|
-
|
524
|
+
all_deps = all_specs.map{ |s| s.dependencies(platform) }.flatten
|
525
|
+
all_deps.reject { |dep| dep.root_name == spec.root.name }
|
520
526
|
end.flatten.uniq
|
521
527
|
end
|
522
528
|
|
@@ -359,7 +359,7 @@ module Pod
|
|
359
359
|
#
|
360
360
|
# spec.platform = :osx
|
361
361
|
#
|
362
|
-
# @param [Array<Symbol, String>]
|
362
|
+
# @param [Array<Symbol, String>] args
|
363
363
|
# A tuple where the first value is the name of the platform,
|
364
364
|
# (either `:ios` or `:osx`) and the second is the deployment
|
365
365
|
# target.
|
@@ -387,7 +387,7 @@ module Pod
|
|
387
387
|
#
|
388
388
|
# spec.osx.deployment_target = "10.8"
|
389
389
|
#
|
390
|
-
# @param [String]
|
390
|
+
# @param [String] args
|
391
391
|
# The deployment target of the platform.
|
392
392
|
#
|
393
393
|
def deployment_target=(*args)
|
@@ -914,16 +914,15 @@ module Pod
|
|
914
914
|
|
915
915
|
# This is a convenience method which gets called after all pods have been
|
916
916
|
# downloaded but before they have been installed, and the Xcode project
|
917
|
-
# and related files have been generated.
|
918
|
-
# for each Pods library
|
917
|
+
# and related files have been generated. Note that this hook is called
|
918
|
+
# for each Pods library and only for installations where the Pod is
|
919
|
+
# installed.
|
919
920
|
#
|
920
921
|
# It receives the
|
921
|
-
# `
|
922
|
-
#
|
923
|
-
#
|
924
|
-
#
|
925
|
-
# instance for the
|
926
|
-
# current target.
|
922
|
+
# [`Pod::Hooks::PodRepresentation`](http://docs.cocoapods.org/cocoapods/pod/hooks/podrepresentation/)
|
923
|
+
# and the
|
924
|
+
# [`Pod::Hooks::LibraryRepresentation`](http://docs.cocoapods.org/cocoapods/pod/hooks/libraryrepresentation/)
|
925
|
+
# instances.
|
927
926
|
#
|
928
927
|
# Override this to, for instance, to run any build script.
|
929
928
|
#
|
@@ -939,10 +938,11 @@ module Pod
|
|
939
938
|
|
940
939
|
# This is a convenience method which gets called after all pods have been
|
941
940
|
# downloaded, installed, and the Xcode project and related files have
|
942
|
-
# been generated. Note that this hook is called for each Pods library
|
941
|
+
# been generated. Note that this hook is called for each Pods library and
|
942
|
+
# only for installations where the Pod is installed.
|
943
943
|
#
|
944
944
|
# It receives a
|
945
|
-
# `
|
945
|
+
# [`Pod::Hooks::LibraryRepresentation`](http://docs.cocoapods.org/cocoapods/pod/hooks/libraryrepresentation/)
|
946
946
|
# instance for the current target.
|
947
947
|
#
|
948
948
|
# Override this to, for instance, add to the prefix header.
|
@@ -273,8 +273,7 @@ module Pod
|
|
273
273
|
end
|
274
274
|
patterns.each do |pattern|
|
275
275
|
if pattern.is_a?(Rake::FileList)
|
276
|
-
|
277
|
-
# warning "Rake::FileList is deprecated, use `exclude_files` (#{attrb.name})."
|
276
|
+
warning "Rake::FileList is deprecated, use `exclude_files` (#{attrb.name})."
|
278
277
|
else
|
279
278
|
if pattern.start_with?('/')
|
280
279
|
error "File patterns must be relative and cannot start with a slash (#{attrb.name})."
|
@@ -210,8 +210,8 @@ module Pod
|
|
210
210
|
subspec_name = remainder.split('/').shift
|
211
211
|
subspec = subspecs.find { |s| s.name == "#{self.name}/#{subspec_name}" }
|
212
212
|
unless subspec
|
213
|
-
raise
|
214
|
-
"`#{relative_name}` in `#{self.name}`."
|
213
|
+
raise Informative, "Unable to find a specification named " \
|
214
|
+
"`#{relative_name}` in `#{self.name} (#{self.version})`."
|
215
215
|
end
|
216
216
|
subspec.subspec_by_name(remainder)
|
217
217
|
end
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.17.
|
5
|
-
prerelease:
|
4
|
+
version: 0.17.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Eloy Duran
|
@@ -10,12 +9,11 @@ authors:
|
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date: 2013-03
|
12
|
+
date: 2013-04-03 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: activesupport
|
17
16
|
requirement: !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
17
|
requirements:
|
20
18
|
- - ~>
|
21
19
|
- !ruby/object:Gem::Version
|
@@ -23,7 +21,6 @@ dependencies:
|
|
23
21
|
type: :runtime
|
24
22
|
prerelease: false
|
25
23
|
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
none: false
|
27
24
|
requirements:
|
28
25
|
- - ~>
|
29
26
|
- !ruby/object:Gem::Version
|
@@ -31,7 +28,6 @@ dependencies:
|
|
31
28
|
- !ruby/object:Gem::Dependency
|
32
29
|
name: faraday
|
33
30
|
requirement: !ruby/object:Gem::Requirement
|
34
|
-
none: false
|
35
31
|
requirements:
|
36
32
|
- - ~>
|
37
33
|
- !ruby/object:Gem::Version
|
@@ -39,7 +35,6 @@ dependencies:
|
|
39
35
|
type: :runtime
|
40
36
|
prerelease: false
|
41
37
|
version_requirements: !ruby/object:Gem::Requirement
|
42
|
-
none: false
|
43
38
|
requirements:
|
44
39
|
- - ~>
|
45
40
|
- !ruby/object:Gem::Version
|
@@ -47,7 +42,6 @@ dependencies:
|
|
47
42
|
- !ruby/object:Gem::Dependency
|
48
43
|
name: octokit
|
49
44
|
requirement: !ruby/object:Gem::Requirement
|
50
|
-
none: false
|
51
45
|
requirements:
|
52
46
|
- - ~>
|
53
47
|
- !ruby/object:Gem::Version
|
@@ -55,7 +49,6 @@ dependencies:
|
|
55
49
|
type: :runtime
|
56
50
|
prerelease: false
|
57
51
|
version_requirements: !ruby/object:Gem::Requirement
|
58
|
-
none: false
|
59
52
|
requirements:
|
60
53
|
- - ~>
|
61
54
|
- !ruby/object:Gem::Version
|
@@ -63,7 +56,6 @@ dependencies:
|
|
63
56
|
- !ruby/object:Gem::Dependency
|
64
57
|
name: bacon
|
65
58
|
requirement: !ruby/object:Gem::Requirement
|
66
|
-
none: false
|
67
59
|
requirements:
|
68
60
|
- - ~>
|
69
61
|
- !ruby/object:Gem::Version
|
@@ -71,7 +63,6 @@ dependencies:
|
|
71
63
|
type: :development
|
72
64
|
prerelease: false
|
73
65
|
version_requirements: !ruby/object:Gem::Requirement
|
74
|
-
none: false
|
75
66
|
requirements:
|
76
67
|
- - ~>
|
77
68
|
- !ruby/object:Gem::Version
|
@@ -79,7 +70,6 @@ dependencies:
|
|
79
70
|
- !ruby/object:Gem::Dependency
|
80
71
|
name: rake
|
81
72
|
requirement: !ruby/object:Gem::Requirement
|
82
|
-
none: false
|
83
73
|
requirements:
|
84
74
|
- - ~>
|
85
75
|
- !ruby/object:Gem::Version
|
@@ -87,14 +77,14 @@ dependencies:
|
|
87
77
|
type: :runtime
|
88
78
|
prerelease: false
|
89
79
|
version_requirements: !ruby/object:Gem::Requirement
|
90
|
-
none: false
|
91
80
|
requirements:
|
92
81
|
- - ~>
|
93
82
|
- !ruby/object:Gem::Version
|
94
83
|
version: 10.0.0
|
95
|
-
description:
|
96
|
-
CocoaPods
|
97
|
-
|
84
|
+
description: |-
|
85
|
+
The CocoaPods-Core gem provides support to work with the models of CocoaPods.
|
86
|
+
|
87
|
+
It is intended to be used in place of the CocoaPods when the the installation of the dependencies is not needed.
|
98
88
|
email:
|
99
89
|
- eloy.de.enige@gmail.com
|
100
90
|
- fabiopelosin@gmail.com
|
@@ -141,25 +131,24 @@ files:
|
|
141
131
|
homepage: https://github.com/CocoaPods/CocoaPods
|
142
132
|
licenses:
|
143
133
|
- MIT
|
134
|
+
metadata: {}
|
144
135
|
post_install_message:
|
145
136
|
rdoc_options: []
|
146
137
|
require_paths:
|
147
138
|
- lib
|
148
139
|
required_ruby_version: !ruby/object:Gem::Requirement
|
149
|
-
none: false
|
150
140
|
requirements:
|
151
|
-
- -
|
141
|
+
- - '>='
|
152
142
|
- !ruby/object:Gem::Version
|
153
143
|
version: '0'
|
154
144
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
155
|
-
none: false
|
156
145
|
requirements:
|
157
|
-
- -
|
146
|
+
- - '>='
|
158
147
|
- !ruby/object:Gem::Version
|
159
148
|
version: '0'
|
160
149
|
requirements: []
|
161
150
|
rubyforge_project:
|
162
|
-
rubygems_version:
|
151
|
+
rubygems_version: 2.0.0
|
163
152
|
signing_key:
|
164
153
|
specification_version: 3
|
165
154
|
summary: The models of CocoaPods
|