Sha256: c9af2a880665c67fea484e15710d538a0d2a107839bd43592e032bfcaaae8120
Contents?: true
Size: 361 Bytes
Versions: 9
Compression:
Stored size: 361 Bytes
Contents
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
9 entries across 9 versions & 2 rubygems