Gems_big

webmock

3.1.0

WebMock allows stubbing HTTP requests and setting expectations on HTTP requests.

Critical or Security advisories for 3.1.0

This version doesn't have any advisory. Want to report one?

Changelog for 3.1.0

  • http.rb 3.0.0 compatibility

    Thanks to Piotr Boniecki

  • Typhoeus 1.3.0 support

    Thanks to NARUSE, Yui

  • Added support for matching partial query params using hash_excluding

    stub_request(:get, "www.example.com").
      with(query: hash_excluding({"a" => "b"}))
    
    RestClient.get("http://www.example.com/?a=b")    # ===> Failure
    RestClient.get("http://www.example.com/?a=c")    # ===> Success
    

    Thanks to Olexandr Hoshylyk

  • Added MRI 2.3+ frozen string literal compatibility

    Thanks to Pat Allan

  • Ensured that HTTPClient adapter does not yield block on empty response body if a block is provided

    Thanks to NARUSE, Yui

  • Fixed issue with to_timeout incorrectly raising HTTP::ConnectionError instead of HTTP::TimeoutError when using http.rb

    Thanks to Rick Song

  • Fixed problem with response.connection.close method being undefined when using http.rb

    Thanks to Janko Marohni??

  • Fixed problem with matching Net::HTTP request header values assigned as numbers.

    Thanks to Felipe Constantino de Oliveira for reporting the issue.

  • Fixed problem with Net::HTTP adapter converting empty response body to nil for non 204 responses.

    Thanks to Jeffrey Charles for reporting the issue.

Dependencies for 3.1.0

Name Requirement Status
>= 2.3.6

>= 0.3.2

>= 0

My projects using webmock

Name Locked version Requirement
You should be logged in to see which of your projects use webmock.