Skip to content
This repository

May 24, 2010

  1. Simplified warning message code if RightHttpConnection is loaded afte…

    …r WebMock
    Bartosz Blimke authored

May 13, 2010

  1. Mack Earnhardt

    ':allow_localhost => true' now permits 127.0.0.1 as well as 'localhost'

    macksmind authored Bartosz Blimke committed
  2. Changed rspec adapter to work against Rspec 1.x and Rspec 2.x

    Bartosz Blimke authored

May 11, 2010

  1. Merge branch 'master' of http://github.com/samdanavia/webmock into ht…

    …tpgithubcomsamdanaviawebmockgit/master
    Bartosz Blimke authored

May 08, 2010

  1. URI matching against stubs with regular expressions is now 2 times fa…

    …ster.
    Bartosz Blimke authored
  2. Replaced Addressable::URI#normalize! with normalize which is slightly…

    … faster
    Bartosz Blimke authored
  3. Improved performance. Removed unnecessary normalization of already no…

    …rmalized uris.
    
    Performance increase approx 2x. Still most of the performance issues are because of Addressable.
    Bartosz Blimke authored

May 03, 2010

  1. Sam Phillips

    Updated Rspec adapter to work with RSpec 2.0.0.beta8

Apr 20, 2010

  1. Added WebMock prefix to NetConnectNotAllowedError

    Bartosz Blimke authored
  2. Fixed compatibility with ruby 1.8.6 (by avoiding flatten(1))

    Bartosz Blimke authored

Apr 19, 2010

  1. If net connections are disabled WebMock::NetConnectNotAllowedError is…

    … raised for unstubbed request.
    Bartosz Blimke authored

Apr 17, 2010

  1. Merged master into vcr_support

    Bartosz Blimke authored
  2. Added support for stubbing requests with header values declared as ar…

    …rays. ie. for multiple Accept headers.
    Bartosz Blimke authored

Apr 10, 2010

  1. Extracted request_signature construction to WebMock::NetHTTPUtility.r…

    …equest_signature_from_request(self, request, body) in Net::HTTP adapter
    Bartosz Blimke authored
  2. Merge branch 'master' into vcr_support

    Bartosz Blimke authored
  3. Removed old RequestProfile class

    Bartosz Blimke authored
  4. Added WebMock.version to report current version of WebMock

    Bartosz Blimke authored
  5. Merge branch 'macksmind_allow_localhost_exception'

    Bartosz Blimke authored
  6. Refactored request matching code.

    * RequestProfile renamed to RequestPattern
    * RequestPattern matches RequestSignature (RequestSignature matched RequestProfile before)
    * Fixed bug where non empty request headers were matching headers pattern declared as nil
    Bartosz Blimke authored

Apr 03, 2010

  1. Mack Earnhardt

    Change the locahost option syntax and update README

    macksmind authored
  2. Mack Earnhardt

    Add option to disable_net_connect! to allow an exception for localhost

    macksmind authored
  3. Mack Earnhardt

    raise Timeout::Error requires a parameter

    macksmind authored

Apr 01, 2010

  1. Headers are now sorted by key in 'unexpected request' messages report…

    …ed by webmock
    Bartosz Blimke authored

Mar 23, 2010

  1. Fixed issue where Net::HTTP adapter didn't work for requests with bod…

    …y responding to read
    Bartosz Blimke authored

Mar 14, 2010

  1. Added support for declaring timeout errors using `to_timeout`

    Bartosz Blimke authored
  2. Added support for status messages

    Bartosz Blimke authored

Mar 13, 2010

  1. Added unit specs for dynamic responses behaviour

    - Also fixed registry spec
    - Removed some unused code
    Bartosz Blimke authored
  2. Refactored parts of dynamic responses code

    Bartosz Blimke authored

Mar 01, 2010

  1. Tom Ward

    Let to_return take a block as well as a lambda.

    With this change, as well as being able to do:
    
      stub_request(:any, 'www.example.net').
          to_return(lambda { |request| {:body => request.body }})
    
    It's also possible to do:
    
      stub_request(:any, 'www.example.net').to_return do |request|
        {:body => request.body }
      end
    tomafro authored

Feb 26, 2010

  1. Tom Ward

    Added complete dynamic request, where headers, body and status can al…

    …l be generated by the same lamba.
    
    With this, it should be possible to stub requests using:
    
      stub_request(:any, 'www.example.net').
        to_return(lambda { |request| {:body => request.body }})
    
    Also, as any object that responds to call can be used, it would also be possible to do:
    
      class Responder
        def call(request)
          {:body => 'Hello'}
        end
      end
    
      stub_request(:any, 'www.example.net).to_return(Responder.new)
    tomafro authored

Feb 17, 2010

  1. Improved handling exceptions in Patron adapter, to reflect error hand…

    …ling in Patron.
    Bartosz Blimke authored
  2. WebMock raises same errors as Patron if file is not readable or writable

    Bartosz Blimke authored
  3. Added support for get_file, put_file, post_file and copy methods in P…

    …atron
    Bartosz Blimke authored
  4. Added support for Patron with basic HTTP functionality

    Bartosz Blimke authored

Feb 02, 2010

  1. Fixed issue where response status was not read from raw (curl -is) re…

    …sponses
    Bartosz Blimke authored
Something went wrong with that request. Please try again.