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