cocoapods-core 1.15.2 → 1.16.1
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 +4 -4
- data/README.md +1 -1
- data/lib/cocoapods-core/cdn_source.rb +16 -10
- data/lib/cocoapods-core/gem_version.rb +1 -1
- data/lib/cocoapods-core/version.rb +3 -0
- metadata +3 -3
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 43bade2d218e9cf1bfd5533519d34cbe0674aa76859ae1f9f73234e1f3e35a5b
         | 
| 4 | 
            +
              data.tar.gz: 61e2ce6d666172fe861b9da5bf5866f99428d2ebbd17d6f497a4ed931a71933a
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 870af46dc69fb8b38830ec2303e47d11f1e5bed3b8c2d8aacd6b4bcda86fa8563a32978ee45df80547f8490f1d33990c148fa0117cc7072845d0409658668210
         | 
| 7 | 
            +
              data.tar.gz: f18f8b545f8f218a2cd01a4515645c971ccb7e7567dd9a5b2cb270dfaca11346306154a0f6ee4a06b476a68eb57f854a60315d815a2d4858efc98c8d65193f26
         | 
    
        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:// | 
| 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 | 
| 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 | 
            -
                   | 
| 286 | 
            -
                   | 
| 287 | 
            -
                     | 
| 288 | 
            -
                     | 
| 289 | 
            -
             | 
| 290 | 
            -
             | 
| 291 | 
            -
             | 
| 292 | 
            -
             | 
| 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)
         | 
    
        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. | 
| 4 | 
            +
              version: 1.16.1
         | 
| 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- | 
| 12 | 
            +
            date: 2024-10-29 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. | 
| 234 | 
            +
            rubygems_version: 3.5.22
         | 
| 235 235 | 
             
            signing_key:
         | 
| 236 236 | 
             
            specification_version: 4
         | 
| 237 237 | 
             
            summary: The models of CocoaPods
         |