Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Sep 29, 2012
  1. Myron Marston
Commits on Sep 9, 2012
  1. Version 1.8.10

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

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

    authored
    …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…

    authored
    …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 15, 2012
  1. Version 1.8.9

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

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

    authored
    Prefer super to alias method chain.
Commits on Aug 13, 2012
  1. Myron Marston

    Prefer super to alias method chain.

    myronmarston authored
    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. Myron Marston

    Clear cached webmock response in HTTPClient instance.

    myronmarston authored
    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

    authored
  2. Merge pull request #190 from bblimke/nil_response_body

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

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

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

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

    authored
    Fix EventMachine::HttpRequest on proxy method.
  7. Jon Leighton

    Fix em-http-request callback triggering

    jonleighton authored
    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. Kevin Glowacz
Commits on Jul 11, 2012
  1. Fix EventMachine::HttpRequest on proxy method.

    chatgris authored
    Caused by
    igrigorik/em-http-request@7d5752d
    
    Signed-off-by: chatgris <jboyer@af83.com>
Commits on Jun 12, 2012
  1. Myron Marston

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

    myronmarston authored
    …onse.
    
    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 (httpstat.us/204), 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. Jon Leighton

    Clone the URI before mutating it.

    jonleighton authored
    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:
    
    EventMachine::HttpRequest.new('http://example.com/').get(:query => { :a => '1' })
    
    would result in the follow URI being used for a live request:
    
    http://example.com/?a=1&a=1
Commits on May 12, 2012
  1. Bump to version 1.8.7

    authored
  2. webmock/rspec checks whether rspec/expectations is already loaded by …

    authored
    …checking if RSpec::Expectations::ExpectationNotMetError is defined. This is required for compatibility with RSpec 2.10.0.
Commits on Apr 28, 2012
  1. Merge pull request #176 from oestrich/master

    authored
    Add missing required rack environment key
Commits on Apr 26, 2012
  1. HendrikW

    called start_with_request without a block, because as Net:HTTP's star…

    HendrikW authored
    …t method description says, it will open AND close a connection if start is called with a block. In this case Net:HTTP then later tries to close that same connection again if the server's response has "Connection: close" in its header. In that case Net:HTTP will throw an IOError.
Commits on Apr 24, 2012
  1. Eric Oestrich
Commits on Apr 23, 2012
  1. Ben Bleything
Commits on Apr 4, 2012
  1. Bump version to 1.8.6

    authored
  2. Merge pull request #172 from oestrich/fix_to_rack_port

    authored
    Pass through SERVER_PORT when stubbing to rack
Commits on Apr 2, 2012
  1. Eric Oestrich

    Pass through SERVER_PORT when stubbing to rack

    oestrich authored
    If the server verifies a signature that includes 
    the port, the webmock stub would otherwise make 
    the request invalid
Commits on Mar 30, 2012
  1. Bump to version 1.8.5

    authored
  2. jugyo
Commits on Mar 19, 2012
  1. Bump to version 1.8.4

    authored
Something went wrong with that request. Please try again.