Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Nov 7, 2012
  1. Upgrade to version 1.9.0

  2. Merge pull request #212 from i0rek/typhoeus_0.5.0

    Typhoeus 0.5.0
Commits on Oct 6, 2012
  1. @i0rek

    Don't use with_connection.

    i0rek committed
Commits on Sep 29, 2012
  1. Version 1.8.11

  2. @myronmarston
Commits on Sep 24, 2012
  1. @i0rek
Commits on Sep 21, 2012
  1. @i0rek

    Remove no longer used method.

    i0rek committed
  2. @i0rek
Commits on Sep 9, 2012
  1. Version 1.8.10

Commits on Sep 6, 2012
  1. Fixes problem with failing em-http-request with queries

    Pawel Pierzchala committed
Commits on Aug 26, 2012
  1. Fixed problem with Net::HTTP::DigestAuth. All constants are set back …

    …on original Net::HTTP, after WebMock is disabled, if any constants were added to Net::HTTP after WebMock was enabled.
  2. Fixed em-http-adapter bug. When a request is made to a URL that retur…

    …ns a 3xx response and the :redirects option is set, the globally_stub_request/after_request
    hooks are now fired for the original request and the redirect-following request.
Commits on Aug 23, 2012
  1. @i0rek

    I dunno what that was for.

    i0rek committed
  2. @i0rek

    Use global stub method.

    i0rek committed
  3. @i0rek

    Some minor changes.

    i0rek committed
  4. @i0rek
  5. @i0rek

    Use block_connection.

    i0rek committed
Commits on Aug 15, 2012
  1. Version 1.8.9

  2. Added support for Addressable >= 2.3.0. Addressable 2.3.0 removed sup…

    …port for multiple query value notations and broke backwards compatibility.
Commits on Aug 14, 2012
  1. Merge pull request #201 from bblimke/prefer_super

    Prefer super to alias method chain.
Commits on Aug 13, 2012
  1. @myronmarston

    Prefer super to alias method chain.

    myronmarston committed
    WebMock was using alias method chain in lots of situations where it didn't need to, since most of the adapters subclass the HTTP client.
Commits on Aug 7, 2012
  1. @myronmarston

    Clear cached webmock response in HTTPClient instance.

    myronmarston committed
    When the a request was not stubbed, the `nil` value of the webmock response was
    being cached in the `webmock_responses` hash. Then, when a second request was 
    made with the same HTTPClient instance and an identical signature, it was not 
    checking for a stub again, even though there may have been one for the second request (e.g. when using a global stub hook or if another stub is registered between the 1st and 2nd requests).
    Fixes myronmarston/vcr#190.
Commits on Jul 23, 2012
  1. Bump version to 1.8.8

  2. Merge pull request #190 from bblimke/nil_response_body

    Fix Net::HTTP adapter so that it returns `nil` for an empty body response.
  3. Revert "Merge pull request #178 from HendrikW/master"

    This reverts commit 36aff46, reversing
    changes made to 1e61a8c.
  4. Merge pull request #178 from HendrikW/master

    Net:HTTP adapter tries to close connection two times and throws error
  5. Merge pull request #194 from kjg/request_pattern_charset

    request_pattern should handle content_types that specify a charset
  6. Merge pull request #192 from chatgris/em-http-proxy

    Fix EventMachine::HttpRequest on proxy method.
  7. @jonleighton

    Fix em-http-request callback triggering

    jonleighton committed
    Previously, if there were other EM::Deferred callbacks registered, they
    might execute before WebMock's callback and raise an exception. This
    would prevent the WebMock callback ever running, even though there was a
    successful request.
    Overriding set_deferred_status prevents this by triggering WebMock's
    callbacks before running any of the EM::Deferred callbacks.
    Sorry, I have no idea how to test this.
Commits on Jul 12, 2012
  1. @kjg
Commits on Jul 11, 2012
  1. Fix EventMachine::HttpRequest on proxy method.

    chatgris committed
    Caused by
    Signed-off-by: chatgris <>
Commits on Jun 12, 2012
  1. @myronmarston

    Fix Net::HTTP adapter so that it returns `nil` for an empty body resp…

    myronmarston committed
    This mirrors the real behavior of Net::HTTP and is the source of myronmarston/vcr#173.
    A couple things to note:
    - Rather than hitting an external URL (, this should probably
      hit the local webmock server; however, I can't figure out how to make the
      webmock server return a different response for different requests since it's
      writing directly to the socket w/o any request context available. Maybe it
      should be refactored to use rack or sinatra?
    - I have no idea why, but Curb is returning a 400 Bad Request response for
      the request. Weird. Not sure why or how to fix it.
Commits on May 17, 2012
  1. @jonleighton

    Clone the URI before mutating it.

    jonleighton committed
    The #build_request_signature method was mutating the URI if there were
    any @req.query options. This means that if the request does actually get
    sent, em-http-request appends the query to the URI a second time, and
    the parameters are repeated.
    For example:'').get(:query => { :a => '1' })
    would result in the follow URI being used for a live request:
Commits on May 12, 2012
  1. Bump to version 1.8.7

Something went wrong with that request. Please try again.