cocoapods-core 1.14.2 → 1.15.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
  SHA256:
3
- metadata.gz: a6037b2e2d62256e58072f0d66fa6e90332a5c71443912fa3738c459b5096926
4
- data.tar.gz: f38ee0ac1d0f0eb1e76875fc8d3df0342931c08abdbbea746b6f6118d3fbe50f
3
+ metadata.gz: bb431625f3bfcf990813dd0665ed5408dcbed85a61d88189a36eaca3b140a93c
4
+ data.tar.gz: cf33c6973f820bf76ef6b6df7ddc979466a3979d2778223d2563ba61cb74612f
5
5
  SHA512:
6
- metadata.gz: 52931dfe62074d717f89674c4510e072550fbf90d685946db9d4e8bc2819a6d9e54308dcd347f3d09a37f570139d66df88d98e67aba58da7db3b3b74b3680934
7
- data.tar.gz: 4f58599a9d6f8fce40f7e20151a4e0ee846ec5c8e8ca2c6ec0dec1e8161d3e5eb12387a87f1c735462371a981ad286db26c3f703d2e784d920aab3f715e5f22a
6
+ metadata.gz: 6c5849ca11b74be284baf348a4c90e509503fa434818c1cda8727bacb1c1ce346f6cb6f63ecbe4a89673b0bfd9c427bc27d5e155372aefb6c5d284d057e3aeb0
7
+ data.tar.gz: 8ec85b9291d7a2c3bf0b6a623cf517968704b533c7a30fc262ed12c5a32f275aaff8fa29963dce27004b65fbe632fab7c276eac648f1db13804da8e658f06a2c
@@ -1,5 +1,5 @@
1
1
  module Pod
2
2
  # The version of the cocoapods-core.
3
3
  #
4
- CORE_VERSION = '1.14.2'.freeze unless defined? Pod::CORE_VERSION
4
+ CORE_VERSION = '1.15.0'.freeze unless defined? Pod::CORE_VERSION
5
5
  end
@@ -485,7 +485,8 @@ module Pod
485
485
  # { "https://github.com/cocoapods/cocoapods.git" => ["Alamofire", "Moya"] }
486
486
  #
487
487
  def generate_spec_repos(spec_repos)
488
- Hash[spec_repos.map do |source, specs|
488
+ output = Hash.new {|h, k| h[k] = Array.new(0)}
489
+ spec_repos.each do |source, specs|
489
490
  next unless source
490
491
  next if specs.empty?
491
492
  key = source.url || source.name
@@ -493,9 +494,18 @@ module Pod
493
494
  # save `trunk` as 'trunk' so that the URL itself can be changed without lockfile churn
494
495
  key = Pod::TrunkSource::TRUNK_REPO_NAME if source.name == Pod::TrunkSource::TRUNK_REPO_NAME
495
496
 
496
- value = specs.map { |s| s.root.name }.uniq
497
- [key, YAMLHelper.sorted_array(value)]
498
- end.compact]
497
+ value = specs.map { |s| s.root.name }
498
+
499
+ if output.has_key?(key)
500
+ value = value + output[key]
501
+ end
502
+
503
+ if value.length > 0
504
+ output[key] = YAMLHelper.sorted_array(value.uniq)
505
+ end
506
+ end
507
+
508
+ output.compact
499
509
  end
500
510
 
501
511
  # Generates the information of the external sources.
@@ -48,6 +48,12 @@ module Pod
48
48
  # Allow `Platform.new('macos')` to be equivalent to `Platform.macos`
49
49
  if input == 'macos'
50
50
  input = 'osx'
51
+ elsif input == 'xros'
52
+ # To address the issue of the mismatch between the platform: xros in the XCFramework and the platform:
53
+ # visionos in Cocoapods.
54
+ #
55
+ # This will ensure proper alignment between the platform information in the XCFramework and Cocoapods.
56
+ input = 'visionos'
51
57
  end
52
58
  @symbolic_name = input.to_sym
53
59
  target = target[:deployment_target] if target.is_a?(Hash)
@@ -331,6 +331,13 @@ module Pod
331
331
  def subspec_by_name(relative_name, raise_if_missing = true, include_non_library_specifications = false)
332
332
  if relative_name.nil? || relative_name == base_name
333
333
  self
334
+ elsif base_name.nil?
335
+ if raise_if_missing
336
+ raise Informative, "Trying to access a `#{relative_name}` " \
337
+ "specification from `#{defined_in_file}`, which has no contents."
338
+ else
339
+ return nil
340
+ end
334
341
  elsif relative_name.downcase == base_name.downcase
335
342
  raise Informative, "Trying to access a `#{relative_name}` " \
336
343
  "specification from `#{base_name}`, which has a different case."
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: 1.14.2
4
+ version: 1.15.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: 2023-10-26 00:00:00.000000000 Z
12
+ date: 2024-01-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -224,14 +224,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
224
224
  requirements:
225
225
  - - ">="
226
226
  - !ruby/object:Gem::Version
227
- version: '2.7'
227
+ version: '2.6'
228
228
  required_rubygems_version: !ruby/object:Gem::Requirement
229
229
  requirements:
230
230
  - - ">="
231
231
  - !ruby/object:Gem::Version
232
232
  version: '0'
233
233
  requirements: []
234
- rubygems_version: 3.1.6
234
+ rubygems_version: 3.2.3
235
235
  signing_key:
236
236
  specification_version: 4
237
237
  summary: The models of CocoaPods