Sha256: ca5c696c14410605c63dfedd1c4a44f7363b03836478d09dd925f1bcce5aefe4

Contents?: true

Size: 594 Bytes

Versions: 10

Compression:

Stored size: 594 Bytes

Contents

__DIR__ = File.dirname(__FILE__)

$LOAD_PATH.unshift __DIR__ unless
  $LOAD_PATH.include?(__DIR__) ||
  $LOAD_PATH.include?(File.expand_path(__DIR__))

require 'openssl'
require 'socket'
require 'uri'

require 'excon/errors'
require 'excon/response'

module Excon

  CHUNK_SIZE = 1048576 # 1 megabyte

  def self.reload
    load 'excon/connection.rb'
  end

  def self.mock!
    @mocking = true
    @mocks = {}

    def self.mocks
      @mocks
    end

    self.reload
  end

  def self.mocking?
    !!@mocking
  end

  def self.new(url)
    Excon::Connection.new(url)
  end

end

Excon.reload

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
excon-0.0.14 lib/excon.rb
excon-0.0.13 lib/excon.rb
excon-0.0.12 lib/excon.rb
excon-0.0.11 lib/excon.rb
excon-0.0.10 lib/excon.rb
excon-0.0.8 lib/excon.rb
excon-0.0.7 lib/excon.rb
excon-0.0.5 lib/excon.rb
excon-0.0.4 lib/excon.rb
excon-0.0.3 lib/excon.rb