All Versions
152
Latest Version
Avg Release Cycle
21 days
Latest Release
-

Changelog History
Page 5

  • v3.4.2 Changes

    • Fixed rbuf_fill in Net::HTTP adapter to be thread-safe

      Thanks to Arkadiy Tetelman

    • Fix invalid scheme error with Addressable::Template

      Thanks to Kazato Sugimoto

  • v3.4.1 Changes

    • When comparing url encoded body to a body from request stub, which was declared as hash, only String, Numeric and boolean hash values are stringified before the comparison.

      Thanks to Lukas Pokorny

  • v3.4.0 Changes

    • Ruby 2.6 support. Prevent Net/ReadTimeout error in Ruby 2.6

      Thanks to Koichi ITO

    • Handling query params, which represent nested hashes with keys starting with non word characters.

      Thanks to rapides for reporting the issue.

    • Patron adapter handles PATCH requests with body.

      Thanks to Mattia for reporting the issue.

    • Allowing requests with url encoded body to be matched by request stubs declared with hash body with non-string values.

      stub_request(:post, "www.example.com").with(body: {"a" => 1, "b" => false})
      
      RestClient.post('www.example.com', 'a=1&b=false', :content_type => 'application/x-www-form-urlencoded') # ===> Success
      

      Thanks to Kenny Ortmann for suggesting this feature.

    • When request headers contain 'Accept'=>'application/json' and no registered stub matches the request, WebMock prints a suggested stub code with to_return body set to '{}'.

      Thanks to redbar0n

      • 👌 Improved suggested stub output when the request stub only contains headers declaration.

      Thanks to Olia Kremmyda

      • 🛠 Fixed Curb adapter to handle reset method.

      Thanks tp dinhhuydh for reporting the issue. Thanks to Olia Kremmyda for fixing it.

  • v3.3.0 Changes

    • Better formatting of outputted request stub snippets, displayed on failures due to unstubbed requests.

      Thanks to Olia Kremmyda

  • v3.2.1 Changes

  • v3.2.0 Changes

  • v3.1.1 Changes

    • Warning message is displayed only once when adding query params to URIAddressablePattern.
  • v3.1.0 Changes

    • 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.

  • v3.0.1 Changes

    • Suppressed `warning: `&' interpreted as argument prefix`

      Thanks to Koichi ITO

  • v3.0.0 Changes

    • Dropped support for Ruby 1.9.3

    • Using Ruby >= 1.9 hash key syntax in stub suggestions

      Thanks to Tarmo Tänav

    • Add at_least matchers for fakeweb-style expectations

      Thanks to Joe Marty

    • Fix against "can't modify frozen String' error when Ruby option frozen_string_literal is enabled.

      Thanks to Chris Thomson

    • Handling read_timeout option in Net::HTTP in Ruby >= 2.4

      Thanks to Christof Koenig

    • RequestRegistry fix for RuntimeError - can't add a new key into hash during iteration

      Thanks to Chung-Yi Chi