Sha256: 8f1ecdfecffeb53d617a102d0bf0188cc2e31793375bea9d64fe734a2bcc877e

Contents?: true

Size: 329 Bytes

Versions: 253

Compression:

Stored size: 329 Bytes

Contents

module WebMock
  class HttpLibAdapterRegistry
    include Singleton

    attr_accessor :http_lib_adapters

    def initialize
      @http_lib_adapters = {}
    end

    def register(lib, adapter)
      @http_lib_adapters[lib] = adapter
    end

    def each_adapter(&block)
      @http_lib_adapters.each(&block)
    end
  end
end

Version data entries

253 entries across 242 versions & 16 rubygems

Version Path
cloudsmith-api-2.0.15 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/http_lib_adapter_registry.rb
cloudsmith-api-2.0.14 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/http_lib_adapter_registry.rb
cloudsmith-api-2.0.13 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/http_lib_adapter_registry.rb
cloudsmith-api-2.0.12 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/http_lib_adapter_registry.rb
cloudsmith-api-2.0.11 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/http_lib_adapter_registry.rb
cloudsmith-api-2.0.10 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/http_lib_adapter_registry.rb
cloudsmith-api-2.0.9 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/http_lib_adapter_registry.rb
cloudsmith-api-2.0.8 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/http_lib_adapter_registry.rb
cloudsmith-api-2.0.7 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/http_lib_adapter_registry.rb
cloudsmith-api-2.0.6 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/http_lib_adapter_registry.rb
cloudsmith-api-2.0.5 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/http_lib_adapter_registry.rb
cloudsmith-api-2.0.4 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/http_lib_adapter_registry.rb
cloudsmith-api-2.0.3 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/http_lib_adapter_registry.rb
cloudsmith-api-2.0.2 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/http_lib_adapter_registry.rb
fluent-plugin-google-cloud-logging-on-prem-0.1.0 vendor/ruby/3.1.0/gems/webmock-3.18.1/lib/webmock/http_lib_adapters/http_lib_adapter_registry.rb
cloudsmith-api-2.0.1 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/http_lib_adapter_registry.rb
cloudsmith-api-2.0.0 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/http_lib_adapter_registry.rb
cloudsmith-api-1.142.3 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/http_lib_adapter_registry.rb
webmock-3.18.1 lib/webmock/http_lib_adapters/http_lib_adapter_registry.rb
webmock-3.18.0 lib/webmock/http_lib_adapters/http_lib_adapter_registry.rb