cocoapods-core 1.15.1 → 1.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b41aa3d6eda2f5a621fe1c92ab00de30bb9224df7b3fb61a54dcebbf2dcacf07
4
- data.tar.gz: 9d974ef615d52d6c6a73c611a97ec217176ff29aebcab5f91e4e4dcb6a642d3d
3
+ metadata.gz: f9a99c42eb6c9b2fd0f033ef171e3d0f60a5f8a4b9df8ade161d457dd4c57a41
4
+ data.tar.gz: fd55b1ae792a53fdf15bf3d613038aed4ba8d430d52f05fefafc3111488fe71f
5
5
  SHA512:
6
- metadata.gz: 0d277f4163a01d298eddd6f18d97726e41c38a98902567c1b741e64c8cea1ad9df0d9bcc6f0ec0ca3c7bf08a83d0a4f3785727bab4f1cba30378ca46f7381f2c
7
- data.tar.gz: df2e1eadab0bf45ef9018713c0d04f54cc8504e477022f2a5233f9c4b5e0bcbe99b3e6baa90cc1b34cd61b12e0b2b22d043d11771a4e59f15acd2a15ab1cca5a
6
+ metadata.gz: 5f24ebc97fca9be15e00fe0494c2c97e68fe9a8481a5526a5f28ea3cdf90d025f87553637fa93b05f3f4edba31ba8cc758f64c48f6ff56d5bdc41ab88b91d701
7
+ data.tar.gz: 4e957a34d9548f150a6f61f91b1d97b7eccdfa0d9729f17663a0fbec455380fdce21dda9caa17e036987e60b8f46c797b9621cb37ca1a35ce267e398cb07d8e4
data/README.md CHANGED
@@ -34,7 +34,7 @@ All CocoaPods development happens on GitHub, there is a repository for
34
34
  specs](https://github.com/CocoaPods/Specs). Contributing patches or Pods is
35
35
  really easy and gratifying.
36
36
 
37
- Follow [@CocoaPods](http://twitter.com/CocoaPods) to get up to date
37
+ Follow [@CocoaPods](http://x.com/CocoaPods) to get up to date
38
38
  information about what's going on in the CocoaPods world.
39
39
 
40
40
  ## License
@@ -10,6 +10,7 @@ module Pod
10
10
  class CDNSource < Source
11
11
  include Concurrent
12
12
 
13
+ MAX_CONCURRENCY = (ENV['COCOAPODS_CDN_MAX_CONCURRENCY'] || 200).to_i
13
14
  MAX_NUMBER_OF_RETRIES = (ENV['COCOAPODS_CDN_MAX_NUMBER_OF_RETRIES'] || 5).to_i
14
15
  # Single thread executor for all network activity.
15
16
  HYDRA_EXECUTOR = Concurrent::SingleThreadExecutor.new
@@ -116,7 +117,7 @@ module Pod
116
117
  pod_path_actual = pod_path(name)
117
118
  pod_path_relative = relative_pod_path(name)
118
119
 
119
- return nil if @version_arrays_by_fragment_by_name[fragment][name].nil?
120
+ return nil if @version_arrays_by_fragment_by_name.dig(fragment, name).nil?
120
121
 
121
122
  concurrent_requests_catching_errors do
122
123
  loaders = []
@@ -282,14 +283,19 @@ module Pod
282
283
  # We use those because you can't get a directory listing from a CDN.
283
284
  index_file_name = index_file_name_for_fragment(fragment)
284
285
  download_file(index_file_name)
285
- versions_raw = local_file(index_file_name, &:to_a).map(&:chomp)
286
- @version_arrays_by_fragment_by_name[fragment] = versions_raw.reduce({}) do |hash, row|
287
- row = row.split('/')
288
- pod = row.shift
289
- versions = row
290
-
291
- hash[pod] = versions
292
- hash
286
+ file_okay = local_file_okay?(index_file_name)
287
+ if file_okay
288
+ versions_raw = local_file(index_file_name, &:to_a).map(&:chomp)
289
+ @version_arrays_by_fragment_by_name[fragment] = versions_raw.reduce({}) do |hash, row|
290
+ row = row.split('/')
291
+ pod = row.shift
292
+ versions = row
293
+
294
+ hash[pod] = versions
295
+ hash
296
+ end
297
+ else
298
+ debug "CDN: #{name} Relative path: #{index_file_name} not available in this source set"
293
299
  end
294
300
  end
295
301
 
@@ -484,7 +490,7 @@ module Pod
484
490
  end
485
491
 
486
492
  def queue_request(request)
487
- @hydra ||= Typhoeus::Hydra.new
493
+ @hydra ||= Typhoeus::Hydra.new(:max_concurrency => MAX_CONCURRENCY)
488
494
 
489
495
  # Queue the request into the Hydra (libcurl reactor).
490
496
  @hydra.queue(request)
@@ -1,5 +1,5 @@
1
1
  module Pod
2
2
  # The version of the cocoapods-core.
3
3
  #
4
- CORE_VERSION = '1.15.1'.freeze unless defined? Pod::CORE_VERSION
4
+ CORE_VERSION = '1.16.0'.freeze unless defined? Pod::CORE_VERSION
5
5
  end
@@ -225,6 +225,9 @@ module Pod
225
225
 
226
226
  if comparison = lhs <=> rhs
227
227
  return comparison
228
+ else
229
+ return -1 if lhs.is_a?(Numeric) && rhs.is_a?(String)
230
+ return 1 if rhs.is_a?(Numeric) && lhs.is_a?(String)
228
231
  end
229
232
  end
230
233
  end
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.15.1
4
+ version: 1.16.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: 2024-02-05 00:00:00.000000000 Z
12
+ date: 2024-10-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport