Permalink
Commits on Nov 21, 2011
  1. Ensure all request hooks are only called once per request.

    Previously, the before_http_request hooks were being called twice for one request in some cases when using FakeWeb and Net::HTTP.  Also, in the VCR test environment there could be many hook invocations from WebMock/Typhoeus due to double-registration of hooks and such.
    myronmarston committed Nov 20, 2011
Commits on Nov 20, 2011
  1. Add after_http_request hook.

    For issue #91.
    
    Note that when using Typhoeus or WebMock, it's not guaranteed that the after_request hook will fire for every request; if an error (such as a socket error) occurs before the request completes then the Typhoeus/WebMock after_request hook will not fire, which means VCR will not be able to fire its after_http_request hook in turn.  There's not much I can do about this, unfortunately.
    
    For Excon, Faraday and FakeWeb, I use an ensure block to guarantee that the hook will be invoked.  This is possible because VCR wraps the entire request for these library hooks.
    myronmarston committed Nov 18, 2011
  2. Add before_http_request hook.

    For issue #91.
    myronmarston committed Nov 17, 2011
  3. Fix comment typo.

    myronmarston committed Nov 18, 2011
  4. Fix cassette name so it matches a sanitized cassette name.

    This allows us to actually use it as a cassette in a test.
    myronmarston committed Nov 17, 2011
  5. Update to WebMock 1.7.8.

    myronmarston committed Nov 20, 2011
Commits on Nov 19, 2011
Commits on Nov 18, 2011
Commits on Nov 17, 2011
  1. Exclude some cuke scenarios to run on jruby to work around weird bug.

    For some reason, these are failing because they are asserting the expected error message but aruba is reporting the output as "V" (yes, just one character!).  I have no idea why...
    myronmarston committed Nov 17, 2011
Commits on Nov 16, 2011
Commits on Nov 15, 2011
  1. Use debugger on jruby.

    myronmarston committed Nov 15, 2011
  2. Remove use of Dir.mktmpdir to get build to pass on JRuby.

    The travis JRuby builds are intermittently failing with "permission denied" errors from `Dir.mktmpdir`.
    myronmarston committed Nov 15, 2011
Commits on Nov 14, 2011
  1. Improve unhandled request error messages.

    Closes #92.
    myronmarston committed Nov 9, 2011
  2. Change the unhandled request error class and message.

    I'm going to be expanding this a lot for issue #92 but I wanted to get the basics in place and get the tests in a stable state so that they should continue to pass as I expand the error message.
    myronmarston committed Nov 11, 2011
Commits on Nov 13, 2011
Commits on Nov 11, 2011
  1. Fix relish links.

    myronmarston committed Nov 11, 2011
  2. Escape underscores.

    myronmarston committed Nov 11, 2011
Commits on Nov 9, 2011
  1. Speed up HTTPInteractionList a bit.

    We can fetch the matcher objects once at instantiation time so that we don't have to re-fetch them every time we are matching a request.
    myronmarston committed Nov 9, 2011
  2. NullList has no state so it does not need to be a class.

    It saves a bit of memory by reusing a singleton object.
    myronmarston committed Nov 9, 2011
  3. Update changelog.

    myronmarston committed Nov 9, 2011
  4. Allow requests to be ignored by defining a block.

    This is much more flexible than the other config options for ignoring
    requests.
    
    Closes #90.
    myronmarston committed Nov 9, 2011
Commits on Nov 7, 2011
  1. Fix typhoeus/webmock specs to not be order dependent.

    We have some specs that use `load` to re-load the hook file, and these were adding additional callbacks so that requests were getting recorded multiple times.  The fix is to stub the callback registration methods for the specs that re-load the hook files.
    myronmarston committed Nov 7, 2011
  2. Deterministically boot the sinatra app in spec helper.

    Before, it would be booted the first time the server was referenced to get the port.  This could lead to failures if the specs were run in a different order or a subset of them were run, though, because the current VCR settings could affect the booting of the server.
    myronmarston committed Nov 7, 2011
  3. 2.0.0.beta2 release.

    myronmarston committed Nov 7, 2011