WebMock v3.9.0 Release Notes

    • Allow using a "callable" (like a proc) as URI pattern

      stub_request(:any, ->(uri) { true })
      

      Thanks to John Hawthorn

    • Added stubbed IO on stubbed socket in Net::HTTP adapter.

      Thanks to Thilo Rusche

    • When 'webmock/rspec' is required, reset WebMock after all after(:each/example) hooks

      Thanks to Andrew Stuntz

    • Fixed net_connect_allowed? when invoked with no arguments, when there were any allowed URIs passed to disable_net_connect?.

      Thanks to Lucas Uyezu

    • Fixed async-http adapter which caused Async::HTTP::Client or Async::HTTP::Internet to hang and never return a response.

      Thanks to (Bruno Sutic)[https://github.com/bruno-] and Samuel Williams

    • Fixed warning when using async-http adapter

      Thanks to (Bruno Sutic)[https://github.com/bruno-]

    • Dropped support for Ruby 2.3 - EOL date: 2019-03-31

    • Dropped support for Ruby 2.4 - EOL date: 2020-03-31

    • Handling matching of Addressable::Template patterns that have an ip address without port and patterns that have ip address and don’t have schema and path.

      Thanks to (Rafael França)[https://github.com/rafaelfranca] and (guppy0356)[https://github.com/guppy0356]