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

    tomafro committed Mar 1, 2010
    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…

    tomafro committed Feb 26, 2010
    …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
    Bartosz Blimke committed Feb 17, 2010
    …ling in Patron.
  2. Added support for get_file, put_file, post_file and copy methods in P…

    Bartosz Blimke
    Bartosz Blimke committed Feb 17, 2010
    …atron
  3. Added support for Patron with basic HTTP functionality

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

    Bartosz Blimke
    Bartosz Blimke committed Feb 2, 2010
  2. Version bump to 0.9.1

    Bartosz Blimke
    Bartosz Blimke committed Feb 2, 2010
  3. Added spec which verifies that request expectations are order insensi…

    Bartosz Blimke
    Bartosz Blimke committed Feb 2, 2010
    …tive.
  4. Fixed issue where response status was not read from raw (curl -is) re…

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

    Bartosz Blimke
    Bartosz Blimke committed Jan 31, 2010
  2. Minor changes to README

    Bartosz Blimke
    Bartosz Blimke committed Jan 31, 2010
  3. Fixed formatting in 0.9.0 changelog

    Bartosz Blimke
    Bartosz Blimke committed Jan 31, 2010
  4. Added version 0.9.0 features to CHANGELOG and README

    Bartosz Blimke
    Bartosz Blimke committed Jan 31, 2010
  5. Added support for Net::HTTP::Post#body_stream (fixed compatibility wi…

    Bartosz Blimke
    Bartosz Blimke committed Jan 31, 2010
    …th new versions of RestClient)
  6. Changed all specs where WebMock is matching request body to use POST …

    Bartosz Blimke
    Bartosz Blimke committed Jan 31, 2010
    …requests.
  7. Added support for matching requests against given block for WebMock m…

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

    Bartosz Blimke
    Bartosz Blimke committed Jan 30, 2010
    …inst provided block
  2. Moved RequestProfile specific code to RequestProfile class

    Bartosz Blimke
    Bartosz Blimke committed Jan 30, 2010
  3. Merge branch 'master' of git://github.com/porras/webmock

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

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

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

    Bartosz Blimke
    Bartosz Blimke committed Jan 24, 2010
  2. Added compatibility for reading headers from raw recorded responses i…

    Bartosz Blimke
    Bartosz Blimke committed Jan 24, 2010
    …n ruby 1.9
  3. Added compatibility for reading recorded raw responses in Ruby 1.9.2 …

    Bartosz Blimke
    Bartosz Blimke committed Jan 24, 2010
    …preview1
Commits on Jan 21, 2010
Commits on Jan 20, 2010
Commits on Jan 19, 2010
  1. Stubs accept lists of responses to be returned in a sequence

    Bartosz Blimke
    Bartosz Blimke committed Jan 19, 2010
Commits on Jan 17, 2010
  1. Added gemspec and changelog for 0.8.2

    Bartosz Blimke
    Bartosz Blimke committed Jan 17, 2010
  2. Version bump to 0.8.2

    Bartosz Blimke
    Bartosz Blimke committed Jan 17, 2010
  3. Ruby 1.9.2 compat: Use File#expand_path for require path because "." …

    Bartosz Blimke
    Bartosz Blimke committed Jan 17, 2010
    …will not be included in LOAD_PATH since Ruby 1.9.2
  4. Close IO object declared as response body after reading it.

    Bartosz Blimke
    Bartosz Blimke committed Jan 17, 2010