Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Mar 1, 2010
  1. Let to_return take a block as well as a lambda.

    authored
    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
Commits on Feb 26, 2010
  1. Added complete dynamic request, where headers, body and status can al…

    authored
    …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)
Commits on Feb 17, 2010
  1. Improved handling exceptions in Patron adapter, to reflect error hand…

    Bartosz Blimke authored
    …ling in Patron.
  2. Added support for Patron with basic HTTP functionality

    Bartosz Blimke authored
Commits on Feb 2, 2010
  1. Added gemspec for version 0.9.1

    Bartosz Blimke authored
  2. Version bump to 0.9.1

    Bartosz Blimke authored
  3. Fixed issue where response status was not read from raw (curl -is) re…

    Bartosz Blimke authored
    …sponses
Commits on Jan 31, 2010
  1. Upgraded version to 0.9.0

    Bartosz Blimke authored
  2. Minor changes to README

    Bartosz Blimke authored
  3. Fixed formatting in 0.9.0 changelog

    Bartosz Blimke authored
  4. Added version 0.9.0 features to CHANGELOG and README

    Bartosz Blimke authored
  5. Added support for Net::HTTP::Post#body_stream (fixed compatibility wi…

    Bartosz Blimke authored
    …th new versions of RestClient)
  6. Changed all specs where WebMock is matching request body to use POST …

    Bartosz Blimke authored
    …requests.
  7. Added support for matching requests against given block for WebMock m…

    Bartosz Blimke authored
    …atcher and assert_requested
Commits on Jan 30, 2010
  1. Added unit specs to for classes responsible for matching requests aga…

    Bartosz Blimke authored
    …inst provided block
  2. Moved RequestProfile specific code to RequestProfile class

    Bartosz Blimke authored
  3. Merge branch 'master' of git://github.com/porras/webmock

    Bartosz Blimke authored
    Conflicts:
    	spec/webmock_spec.rb
  4. Added times(N) method for declaring how many times gives response sho…

    Bartosz Blimke authored
    …uld be returned
Commits on Jan 28, 2010
  1. Added support for declaring multiple responses and exceptions using c…

    Bartosz Blimke authored
    …hained to_return and to_raise
Commits on Jan 24, 2010
  1. Fixed Net::HTTP spec helper compatibility with ruby 1.9

    Bartosz Blimke authored
  2. Added compatibility for reading headers from raw recorded responses i…

    Bartosz Blimke authored
    …n ruby 1.9
  3. Added compatibility for reading recorded raw responses in Ruby 1.9.2 …

    Bartosz Blimke authored
    …preview1
Commits on Jan 21, 2010
Commits on Jan 20, 2010
Commits on Jan 19, 2010
Commits on Jan 17, 2010
  1. Added gemspec and changelog for 0.8.2

    Bartosz Blimke authored
  2. Version bump to 0.8.2

    Bartosz Blimke authored
  3. Ruby 1.9.2 compat: Use File#expand_path for require path because "." …

    Bartosz Blimke authored
    …will not be included in LOAD_PATH since Ruby 1.9.2
Something went wrong with that request. Please try again.