Sha256: 5f95dedef560c88c59392dadc2589b3d404ed35cec1c27e93c991e2f37d701c8

Contents?: true

Size: 836 Bytes

Versions: 192

Compression:

Stored size: 836 Bytes

Contents

begin
  require "http"
rescue LoadError
  # HTTP gem not found
end

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

  module WebMock
    module HttpLibAdapters
      class HttpRbAdapter < HttpLibAdapter
        adapter_for :http_rb

        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_rb/client"
  require "webmock/http_lib_adapters/http_rb/request"
  require "webmock/http_lib_adapters/http_rb/response"
  require "webmock/http_lib_adapters/http_rb/streamer"
  require "webmock/http_lib_adapters/http_rb/webmock"
end

Version data entries

192 entries across 183 versions & 13 rubygems

Version Path
logstash-output-scalyr-0.1.21.beta vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/lib/webmock/http_lib_adapters/http_rb_adapter.rb
logstash-output-scalyr-0.1.20.beta vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/lib/webmock/http_lib_adapters/http_rb_adapter.rb
webmock-3.14.0 lib/webmock/http_lib_adapters/http_rb_adapter.rb
logstash-output-scalyr-0.1.19.beta vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/lib/webmock/http_lib_adapters/http_rb_adapter.rb
logstash-output-scalyr-0.1.18.beta vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/lib/webmock/http_lib_adapters/http_rb_adapter.rb
logstash-output-scalyr-0.1.17.beta vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/lib/webmock/http_lib_adapters/http_rb_adapter.rb
logstash-output-scalyr-0.1.16.beta vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/lib/webmock/http_lib_adapters/http_rb_adapter.rb
logstash-output-scalyr-0.1.15.beta vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/lib/webmock/http_lib_adapters/http_rb_adapter.rb
logstash-output-scalyr-0.1.14.beta vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/lib/webmock/http_lib_adapters/http_rb_adapter.rb
logstash-output-scalyr-0.1.13 vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/lib/webmock/http_lib_adapters/http_rb_adapter.rb
logstash-output-scalyr-0.1.12 vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/lib/webmock/http_lib_adapters/http_rb_adapter.rb
logstash-output-scalyr-0.1.11.beta vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/lib/webmock/http_lib_adapters/http_rb_adapter.rb
cloudsmith-api-0.57.1 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/lib/webmock/http_lib_adapters/http_rb_adapter.rb
webmock-3.13.0 lib/webmock/http_lib_adapters/http_rb_adapter.rb
vagrant-unbundled-2.2.16.0 vendor/bundle/ruby/2.7.0/gems/webmock-2.3.2/lib/webmock/http_lib_adapters/http_rb_adapter.rb
vagrant-unbundled-2.2.16.0 vendor/bundle/ruby/3.0.0/gems/webmock-2.3.2/lib/webmock/http_lib_adapters/http_rb_adapter.rb
webmock-3.12.2 lib/webmock/http_lib_adapters/http_rb_adapter.rb
webmock-3.12.1 lib/webmock/http_lib_adapters/http_rb_adapter.rb
webmock-3.12.0 lib/webmock/http_lib_adapters/http_rb_adapter.rb
webmock-3.11.3 lib/webmock/http_lib_adapters/http_rb_adapter.rb