cocoapods 1.7.1 → 1.7.2

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
  SHA256:
3
- metadata.gz: 133b1c673e6af75d8fb324a23f8ecfeea33c118e12c033e6312945e8cc875ff5
4
- data.tar.gz: 040ac7f7ab1f16404685f655258a212b23d2317fca9e62a5b239fde30abee5b7
3
+ metadata.gz: 237083dbe1df5dae9a901be3332d39e27cd85e246b8151a8bbe3ef7ebca217f6
4
+ data.tar.gz: dadd1db344174138e5683bd636a45f3d7138b0665888685ca23c4a851c69f62c
5
5
  SHA512:
6
- metadata.gz: 6fe30f17bfdcc4a10cc04e772941796d01536456fd6bec6e7c952b25dc3b55564035ada708526d0a478fe7ec8609f4baf296e67fe62ba3d84859f3e7afac2902
7
- data.tar.gz: c1e26fbc92fcc83b03126f6c5167348b740be8e56a8ff660c545c4bef42ca420037640d0b974c6f613b3277135c365bd1075944f293a7e09d8d34ef102293e16
6
+ metadata.gz: 05330b809bf5ef4d6ed82dcef769269a0879c0deda7e38a58d594c811168aae07b31d24226aaec63e061af6243e26e24efc34779e1fac62ae4f830a49e9263e0
7
+ data.tar.gz: f25da18ccbf9c774117f7371820d8037a34a78b23dfcf8119f3b68e7bea8422af0a051bf6691c3877340cd49cedbeb629a182357ae2080b52472b721b239e806
@@ -4,6 +4,23 @@ 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
+ ## 1.7.2 (2019-06-13)
8
+
9
+ ##### Enhancements
10
+
11
+ * None.
12
+
13
+ ##### Bug Fixes
14
+
15
+ * Prevent crash when configuring schemes for subspecs.
16
+ [Dimitris Koutsogiorgas](https://github.com/dnkoutso)
17
+ [#8880](https://github.com/CocoaPods/CocoaPods/issues/8880)
18
+
19
+ * Attempt to use Swift version for dependencies during lint.
20
+ [Dimitris Koutsogiorgas](https://github.com/dnkoutso)
21
+ [#8764](https://github.com/CocoaPods/CocoaPods/issues/8764)
22
+
23
+
7
24
  ## 1.7.1 (2019-05-30)
8
25
 
9
26
  ##### Enhancements
@@ -1,5 +1,5 @@
1
1
  module Pod
2
2
  # The version of the CocoaPods command line tool.
3
3
  #
4
- VERSION = '1.7.1'.freeze unless defined? Pod::VERSION
4
+ VERSION = '1.7.2'.freeze unless defined? Pod::VERSION
5
5
  end
@@ -219,6 +219,8 @@ module Pod
219
219
  end
220
220
 
221
221
  def configure_schemes_for_pod_target(project, pod_target, share_scheme)
222
+ # Ignore subspecs because they do not provide a scheme configuration due to the fact that they are always
223
+ # merged with the root spec scheme.
222
224
  specs = [pod_target.root_spec] + pod_target.test_specs + pod_target.app_specs
223
225
  specs.each do |spec|
224
226
  scheme_name = spec.spec_type == :library ? pod_target.label : pod_target.non_library_spec_label(spec)
@@ -186,7 +186,7 @@ module Pod
186
186
  def swift_version
187
187
  @swift_version ||= begin
188
188
  if spec_swift_versions.empty?
189
- target_definitions.map(&:swift_version).compact.uniq.first
189
+ target_definition_swift_version
190
190
  else
191
191
  spec_swift_versions.sort.reverse_each.find do |swift_version|
192
192
  target_definitions.all? do |td|
@@ -197,6 +197,13 @@ module Pod
197
197
  end
198
198
  end
199
199
 
200
+ # @return [String] the Swift version derived from the target definitions that integrate this pod. This is used for
201
+ # legacy reasons and only if the pod author has not specified the Swift versions their pod supports.
202
+ #
203
+ def target_definition_swift_version
204
+ target_definitions.map(&:swift_version).compact.uniq.first
205
+ end
206
+
200
207
  # @return [Array<Version>] the Swift versions supported. Might be empty if the author has not
201
208
  # specified any versions, most likely due to legacy reasons.
202
209
  #
@@ -483,6 +490,7 @@ module Pod
483
490
  # @return [Hash] The scheme configuration used or empty if none is specified.
484
491
  #
485
492
  def scheme_for_spec(spec)
493
+ return {} if spec.library_specification? && !spec.root?
486
494
  spec.consumer(platform).scheme
487
495
  end
488
496
 
@@ -603,10 +603,17 @@ module Pod
603
603
  (build_configuration.build_settings['OTHER_CFLAGS'] ||= '$(inherited)') << ' -Wincomplete-umbrella'
604
604
  if pod_target.uses_swift?
605
605
  # The Swift version for the target being validated can be overridden by `--swift-version` or the
606
- # `.swift-version` file so we always use the derived Swift version. For dependencies, we always use the
607
- # Swift version they specify, unless they don't in which case it will be inferred by the target that is
608
- # integrating them.
609
- swift_version = pod_target == validation_pod_target ? derived_swift_version : pod_target.swift_version
606
+ # `.swift-version` file so we always use the derived Swift version.
607
+ #
608
+ # For dependencies, if the derived Swift version is supported then it is the one used. Otherwise, the Swift
609
+ # version for dependencies is inferred by the target that is integrating them.
610
+ swift_version = if pod_target == validation_pod_target
611
+ derived_swift_version
612
+ else
613
+ pod_target.spec_swift_versions.map(&:to_s).find do |v|
614
+ v == derived_swift_version
615
+ end || pod_target.target_definition_swift_version
616
+ end
610
617
  build_configuration.build_settings['SWIFT_VERSION'] = swift_version
611
618
  end
612
619
  end
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.7.1
4
+ version: 1.7.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: 2019-05-30 00:00:00.000000000 Z
14
+ date: 2019-06-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.7.1
22
+ version: 1.7.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.7.1
29
+ version: 1.7.2
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: claide
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -207,7 +207,7 @@ dependencies:
207
207
  requirements:
208
208
  - - ">="
209
209
  - !ruby/object:Gem::Version
210
- version: 1.8.2
210
+ version: 1.10.0
211
211
  - - "<"
212
212
  - !ruby/object:Gem::Version
213
213
  version: '2.0'
@@ -217,7 +217,7 @@ dependencies:
217
217
  requirements:
218
218
  - - ">="
219
219
  - !ruby/object:Gem::Version
220
- version: 1.8.2
220
+ version: 1.10.0
221
221
  - - "<"
222
222
  - !ruby/object:Gem::Version
223
223
  version: '2.0'
@@ -275,7 +275,7 @@ dependencies:
275
275
  requirements:
276
276
  - - ">="
277
277
  - !ruby/object:Gem::Version
278
- version: 2.2.0
278
+ version: 2.3.0
279
279
  - - "<"
280
280
  - !ruby/object:Gem::Version
281
281
  version: '3.0'
@@ -285,7 +285,7 @@ dependencies:
285
285
  requirements:
286
286
  - - ">="
287
287
  - !ruby/object:Gem::Version
288
- version: 2.2.0
288
+ version: 2.3.0
289
289
  - - "<"
290
290
  - !ruby/object:Gem::Version
291
291
  version: '3.0'