cocoapods 1.1.0.rc.1 → 1.1.0.rc.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +19 -13
- data/lib/cocoapods/command/lib/create.rb +1 -1
- data/lib/cocoapods/gem_version.rb +1 -1
- data/lib/cocoapods/validator.rb +21 -0
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aebcc4002b70feee0826ac1cbf41542ee77dc7fb
|
4
|
+
data.tar.gz: ec14f7a2ef3245902fbfbf8fb417d8ab934cee66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d31345327fe79582442d32038fcd9e514f5ec20baf9628c74e00c9bc3e1c0f80da70bb5b3e2ac07c59d518575a4a901e028610b7db7a09e1150374d7d3af3d1
|
7
|
+
data.tar.gz: 622983ea3bacabd5658dda55f5146bcbce917077d89dc338f472d6a1e3d539a7b61dcbe2d3e579a45ed2975c86c5133974e4cac0c2aa59594417e671ddde3113
|
data/CHANGELOG.md
CHANGED
@@ -4,22 +4,26 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides
|
|
4
4
|
|
5
5
|
To install release candidates run `[sudo] gem install cocoapods --pre`
|
6
6
|
|
7
|
-
##
|
7
|
+
## 1.1.0.rc.2 (2016-09-13)
|
8
8
|
|
9
9
|
##### Enhancements
|
10
10
|
|
11
|
-
*
|
11
|
+
* Use the SWIFT_VERSION when linting pods.
|
12
|
+
[Danielle Tomlinson](https://github.com/dantoml)
|
13
|
+
[#5841](https://github.com/CocoaPods/CocoaPods/pull/5841)
|
12
14
|
|
13
15
|
##### Bug Fixes
|
14
16
|
|
15
|
-
*
|
17
|
+
* Correctly pass Pod:VERSION in `pod lib create`.
|
18
|
+
[Danielle Tomlinson](https://github.com/dantoml)
|
19
|
+
[#5840](https://github.com/CocoaPods/CocoaPods/issues/5840)
|
16
20
|
|
17
21
|
|
18
22
|
## 1.1.0.rc.1 (2016-09-10)
|
19
23
|
|
20
24
|
##### Enhancements
|
21
25
|
|
22
|
-
*
|
26
|
+
*
|
23
27
|
|
24
28
|
##### Bug Fixes
|
25
29
|
|
@@ -45,26 +49,31 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
|
|
45
49
|
[#5510](https://github.com/CocoaPods/CocoaPods/pull/5510)
|
46
50
|
|
47
51
|
* Add support for building Messages applications.
|
48
|
-
[
|
52
|
+
[Ben Asher](https://github.com/benasher44)
|
49
53
|
[#5726](https://github.com/CocoaPods/CocoaPods/pull/5726)
|
50
54
|
|
51
55
|
* Improved messaging when missing host targets for embedded targets.
|
52
56
|
Improved support for framework-only projects.
|
53
|
-
[
|
57
|
+
[Ben Asher](https://github.com/benasher44)
|
54
58
|
[#5733](https://github.com/CocoaPods/CocoaPods/pull/5733)
|
55
59
|
|
56
60
|
* Set ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES when appropriate.
|
57
|
-
[
|
61
|
+
[Ben Asher](https://github.com/benasher44)
|
58
62
|
[#5732](https://github.com/CocoaPods/CocoaPods/pull/5732)
|
59
63
|
|
60
64
|
* Verify that embedded target platform and swift version matches the host.
|
61
|
-
[
|
65
|
+
[Ben Asher](https://github.com/benasher44)
|
62
66
|
[#5747](https://github.com/CocoaPods/CocoaPods/pull/5747)
|
63
67
|
|
64
68
|
* Pass the version of CocoaPods to `pod lib create`'s configure script.
|
65
69
|
[orta](https://github.com/orta)
|
66
70
|
[#5787](https://github.com/CocoaPods/CocoaPods/pull/5787)
|
67
71
|
|
72
|
+
* Improve host target detection for embedded targets
|
73
|
+
in sub-projects.
|
74
|
+
[Ben Asher](https://github.com/benasher44)
|
75
|
+
[#5622](https://github.com/CocoaPods/CocoaPods/issues/5622)
|
76
|
+
|
68
77
|
##### Bug Fixes
|
69
78
|
|
70
79
|
* Hash scope suffixes if they are over 50 characters to prevent file paths from being too long.
|
@@ -125,7 +134,7 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
|
|
125
134
|
|
126
135
|
* Improve handling of app extensions, watch os 1 extensions
|
127
136
|
and framework targets.
|
128
|
-
[
|
137
|
+
[Ben Asher](https://github.com/benasher44)
|
129
138
|
[#4203](https://github.com/CocoaPods/CocoaPods/issues/4203)
|
130
139
|
|
131
140
|
* Add a license type to generated acknowledgements file in plist.
|
@@ -194,10 +203,7 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
|
|
194
203
|
|
195
204
|
##### Enhancements
|
196
205
|
|
197
|
-
*
|
198
|
-
in sub-projects.
|
199
|
-
[Ben Asher](https://github.com/benasher44)
|
200
|
-
[#5622](https://github.com/CocoaPods/CocoaPods/issues/5622)
|
206
|
+
* None.
|
201
207
|
|
202
208
|
##### Bug Fixes
|
203
209
|
|
@@ -75,7 +75,7 @@ module Pod
|
|
75
75
|
UI.section("Configuring #{@name} template.") do
|
76
76
|
Dir.chdir(@name) do
|
77
77
|
if File.exist?('configure')
|
78
|
-
system({ 'COCOAPODS_VERSION' => Pod::
|
78
|
+
system({ 'COCOAPODS_VERSION' => Pod::VERSION }, './configure', @name, *@additional_args)
|
79
79
|
else
|
80
80
|
UI.warn 'Template does not have a configure file.'
|
81
81
|
end
|
data/lib/cocoapods/validator.rb
CHANGED
@@ -237,6 +237,19 @@ module Pod
|
|
237
237
|
Pathname(Dir.tmpdir) + 'CocoaPods/Lint'
|
238
238
|
end
|
239
239
|
|
240
|
+
# @return [String] the SWIFT_VERSION to use for validation.
|
241
|
+
#
|
242
|
+
def swift_version
|
243
|
+
@swift_version ||= dot_swift_version || '2.3'
|
244
|
+
end
|
245
|
+
|
246
|
+
# @return [String] the SWIFT_VERSION in the .swift-version file or nil.
|
247
|
+
#
|
248
|
+
def dot_swift_version
|
249
|
+
swift_version_path = file.dirname + '.swift-version'
|
250
|
+
swift_version_path.read if swift_version_path.exist?
|
251
|
+
end
|
252
|
+
|
240
253
|
#-------------------------------------------------------------------------#
|
241
254
|
|
242
255
|
private
|
@@ -388,10 +401,17 @@ module Pod
|
|
388
401
|
source_file_ref = app_project.new_group('App', 'App').new_file(source_file)
|
389
402
|
app_target = app_project.targets.first
|
390
403
|
app_target.add_file_references([source_file_ref])
|
404
|
+
add_swift_version(app_target)
|
391
405
|
add_xctest(app_target) if @installer.pod_targets.any? { |pt| pt.spec_consumers.any? { |c| c.frameworks.include?('XCTest') } }
|
392
406
|
app_project.save
|
393
407
|
end
|
394
408
|
|
409
|
+
def add_swift_version(app_target)
|
410
|
+
app_target.build_configurations.each do |configuration|
|
411
|
+
configuration.build_settings['SWIFT_VERSION'] = swift_version
|
412
|
+
end
|
413
|
+
end
|
414
|
+
|
395
415
|
def add_xctest(app_target)
|
396
416
|
app_target.build_configurations.each do |configuration|
|
397
417
|
search_paths = configuration.build_settings['FRAMEWORK_SEARCH_PATHS'] ||= '$(inherited)'
|
@@ -445,6 +465,7 @@ module Pod
|
|
445
465
|
next unless native_target = pod_target.native_target
|
446
466
|
native_target.build_configuration_list.build_configurations.each do |build_configuration|
|
447
467
|
(build_configuration.build_settings['OTHER_CFLAGS'] ||= '$(inherited)') << ' -Wincomplete-umbrella'
|
468
|
+
build_configuration.build_settings['SWIFT_VERSION'] = swift_version if pod_target.uses_swift?
|
448
469
|
end
|
449
470
|
end
|
450
471
|
if target.pod_targets.any?(&:uses_swift?) && consumer.platform_name == :ios &&
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.0.rc.
|
4
|
+
version: 1.1.0.rc.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eloy Duran
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2016-09-
|
14
|
+
date: 2016-09-13 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: cocoapods-core
|
@@ -19,14 +19,14 @@ dependencies:
|
|
19
19
|
requirements:
|
20
20
|
- - '='
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 1.1.0.rc.
|
22
|
+
version: 1.1.0.rc.2
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - '='
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 1.1.0.rc.
|
29
|
+
version: 1.1.0.rc.2
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: claide
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -193,14 +193,14 @@ dependencies:
|
|
193
193
|
requirements:
|
194
194
|
- - "~>"
|
195
195
|
- !ruby/object:Gem::Version
|
196
|
-
version: 0.5.
|
196
|
+
version: 0.5.1
|
197
197
|
type: :runtime
|
198
198
|
prerelease: false
|
199
199
|
version_requirements: !ruby/object:Gem::Requirement
|
200
200
|
requirements:
|
201
201
|
- - "~>"
|
202
202
|
- !ruby/object:Gem::Version
|
203
|
-
version: 0.5.
|
203
|
+
version: 0.5.1
|
204
204
|
- !ruby/object:Gem::Dependency
|
205
205
|
name: xcodeproj
|
206
206
|
requirement: !ruby/object:Gem::Requirement
|