Sha256: 8b2fd66f2eb667be69462827ba101e2348a0a257c2e7e83d8e11b04cb5eb7c9e

Contents?: true

Size: 392 Bytes

Versions: 13

Compression:

Stored size: 392 Bytes

Contents

# frozen_string_literal: true

module HTTP
  class Client
    alias_method :__perform__, :perform

    def perform(request, options)
      return __perform__(request, options) unless webmock_enabled?

      WebMockPerform.new(request, options) { __perform__(request, options) }.exec
    end

    def webmock_enabled?
      ::WebMock::HttpLibAdapters::HttpRbAdapter.enabled?
    end
  end
end

Version data entries

13 entries across 13 versions & 4 rubygems

Version Path
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/webmock-3.23.1/lib/webmock/http_lib_adapters/http_rb/client.rb
webmock-3.24.0 lib/webmock/http_lib_adapters/http_rb/client.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/webmock-3.23.1/lib/webmock/http_lib_adapters/http_rb/client.rb
webmock-3.23.0 lib/webmock/http_lib_adapters/http_rb/client.rb
webmock-3.22.0 lib/webmock/http_lib_adapters/http_rb/client.rb
webmock-3.21.2 lib/webmock/http_lib_adapters/http_rb/client.rb
webmock-3.21.1 lib/webmock/http_lib_adapters/http_rb/client.rb
webmock-3.21.0 lib/webmock/http_lib_adapters/http_rb/client.rb
webmock-3.20.0 lib/webmock/http_lib_adapters/http_rb/client.rb
honeybadger-5.4.0 vendor/bundle/ruby/3.2.0/gems/webmock-3.19.1/lib/webmock/http_lib_adapters/http_rb/client.rb
honeybadger-5.3.0 vendor/bundle/ruby/3.2.0/gems/webmock-3.19.1/lib/webmock/http_lib_adapters/http_rb/client.rb
webmock-3.19.1 lib/webmock/http_lib_adapters/http_rb/client.rb
webmock-3.19.0 lib/webmock/http_lib_adapters/http_rb/client.rb