Sha256: ded792645795c638e9e33d4d9c902716b8d2db4395892a3d67b94d906d6db4b3

Contents?: true

Size: 854 Bytes

Versions: 12

Compression:

Stored size: 854 Bytes

Contents

begin
  require "http"
  __http_gem_found__ = true
rescue LoadError
  __http_gem_found__ = false
end

if __http_gem_found__
  WebMock::VersionChecker.new("HTTP Gem", HTTP::VERSION, "0.6.0").check_version!

  module WebMock
    module HttpLibAdapters
      class HttpGemAdapter < HttpLibAdapter
        adapter_for :http_gem

        class << self
          def enable!
            @enabled = true
          end

          def disable!
            @enabled = false
          end

          def enabled?
            @enabled
          end
        end
      end
    end
  end

  require "webmock/http_lib_adapters/http_gem/client"
  require "webmock/http_lib_adapters/http_gem/request"
  require "webmock/http_lib_adapters/http_gem/response"
  require "webmock/http_lib_adapters/http_gem/streamer"
  require "webmock/http_lib_adapters/http_gem/webmock"
end

Version data entries

12 entries across 10 versions & 3 rubygems

Version Path
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/http_gem_adapter.rb
honeybadger-2.4.0 vendor/gems/ruby/1.9.1/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/http_gem_adapter.rb
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/http_gem_adapter.rb
webmock-1.20.4 lib/webmock/http_lib_adapters/http_gem_adapter.rb
webmock-1.20.3 lib/webmock/http_lib_adapters/http_gem_adapter.rb
webmock-1.20.2 lib/webmock/http_lib_adapters/http_gem_adapter.rb
webmock-1.20.1 lib/webmock/http_lib_adapters/http_gem_adapter.rb
webmock-1.20.0 lib/webmock/http_lib_adapters/http_gem_adapter.rb
webmock-1.19.0 lib/webmock/http_lib_adapters/http_gem_adapter.rb
whos_dated_who-0.1.0 vendor/bundle/gems/webmock-1.18.0/lib/webmock/http_lib_adapters/http_gem_adapter.rb
whos_dated_who-0.0.1 vendor/bundle/gems/webmock-1.18.0/lib/webmock/http_lib_adapters/http_gem_adapter.rb
webmock-1.18.0 lib/webmock/http_lib_adapters/http_gem_adapter.rb