cocoapods-core 1.13.0 → 1.15.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: 014e0c494cb3fbaa3cf22c0c67779de4fea4c913da936390f90a1e885fd241e1
4
- data.tar.gz: 972cc7a0888373e3136347d2c6d6df05e55b966bb5a0c1bd0440160519c7563e
3
+ metadata.gz: 28b58aee1d429faed6b698b36263cc7e86e1ebe4540b2c7e03d1883e28e74f59
4
+ data.tar.gz: 81da93773c4f3cff54ae532ef20b3fd9b3190fbca1fc4d7fa89e57da4c840ab3
5
5
  SHA512:
6
- metadata.gz: c6f64110d2957bea2488051ed8bd859856b3c017543f7c15e55051a68d7b8527fbe886fc4a0484d8b876e1362a90021459ac8e4ee8999f6a0e385dbf20dca23a
7
- data.tar.gz: 01b05cece5e45ae56ad8da66a3c35e0090be902f581df2ad73b8e0acabc6783702623e61c235b6adf7935ce3de48890af27565f3806efc8845bc5259fff10978
6
+ metadata.gz: 6ab7a1a1c329774e398f25080dd03f3fda96bc96be0c5582088010b317e2c64876f2d3b01e1ae4d0ea48f32839443ff907f90b9cd27aa681cf9a9e1c94eee43d
7
+ data.tar.gz: 7a82bc2bda4f3f2cf4f54bf70300bc5c633073696d5882cd282d302ec5b00d8a33072edd7cbaa60812b52525b51cce47ca10597dcefd1b82fb001c55e7852aa4
@@ -1,5 +1,5 @@
1
1
  module Pod
2
2
  # The version of the cocoapods-core.
3
3
  #
4
- CORE_VERSION = '1.13.0'.freeze unless defined? Pod::CORE_VERSION
4
+ CORE_VERSION = '1.15.2'.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.
@@ -45,11 +45,19 @@ module Pod
45
45
  @symbolic_name = input.name
46
46
  @deployment_target = input.deployment_target
47
47
  else
48
- # Allow `Platform.new('macos')` to be equivalent to `Platform.macos`
49
- if input == 'macos'
50
- input = 'osx'
51
- end
52
- @symbolic_name = input.to_sym
48
+ input = input.to_s.downcase
49
+
50
+ name = case input
51
+ when 'macos'
52
+ # Allow `Platform.new('macos')` to be equivalent to `Platform.macos`
53
+ 'osx'
54
+ when 'xros'
55
+ # Compatibility with older references to 'xrOS'
56
+ 'visionos'
57
+ else
58
+ input
59
+ end
60
+ @symbolic_name = name.to_sym
53
61
  target = target[:deployment_target] if target.is_a?(Hash)
54
62
  @deployment_target = Version.create(target)
55
63
  end
@@ -5,7 +5,7 @@ module Pod
5
5
  #
6
6
  def to_json(*a)
7
7
  require 'json'
8
- to_hash.to_json(*a) << "\n"
8
+ JSON.dump(to_hash, *a) << "\n"
9
9
  end
10
10
 
11
11
  # @return [String] the pretty json representation of the specification.
@@ -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."
@@ -14,6 +14,9 @@ module Pod
14
14
  require 'pathname'
15
15
  require 'cocoapods-core/vendor'
16
16
 
17
+ require 'active_support'
18
+ require 'active_support/core_ext'
19
+
17
20
  autoload :Version, 'cocoapods-core/version'
18
21
  autoload :Requirement, 'cocoapods-core/requirement'
19
22
  autoload :Dependency, 'cocoapods-core/dependency'
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.13.0
4
+ version: 1.15.2
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-09-22 00:00:00.000000000 Z
12
+ date: 2024-02-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -231,7 +231,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
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