Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump webmock from 3.18.1 to 3.19.0 #521

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Aug 28, 2023

Bumps webmock from 3.18.1 to 3.19.0.

Changelog

Sourced from webmock's changelog.

3.19.0

  • Do not alter real (non-stubbed) request headers when handling em-http-request requests.

    Thanks to Yoann Lecuyer

  • Fix matching stubs with HashExcludingMatcher

    Thanks to Lucas Arnaud

  • Remove development and test files from the gem package

    Thanks to Orien Madgwick

  • Fix supported http client gem version checks.

    Thanks to Marc Rohloff and Roman Stražanec

  • Non-string body passed to #to_return_json is now converted to JSON string.

    Thanks to inkstak

  • [::1] is recognised as localhost e.g when passing allow_localhost option to disable_net_connect!

    Thanks to Yuki Inoue

  • Optimized normalize_headers for performance

    Thanks to Brandon Weaver

  • Added Frozen string literal to files to optimise memory usage

    Thanks to Josh Nichols

Commits
  • d707719 Version 3.19.0
  • 9305ab5 Merge pull request #1033 from technicalpickles/frozen-string-literal
  • d4afbd9 Merge pull request #1029 from baweaver/baweaver/performance/normalize_headers...
  • 19917a3 Merge pull request #1030 from Yuki-Inoue/master
  • d933001 Merge pull request #1012 from inkstak/feature-to_return_json_accepts_array_body
  • 0d422a1 Merge pull request #1026 from baweaver/patch-2
  • 87786a2 Merge pull request #1006 from marcrohloff/fix-version-checking
  • 0e9519c Merge branch 'master' into fix-version-checking
  • 0771fbc Merge pull request #1024 from romanstrazanec/fix-version-check-for-max-major-...
  • dd084eb Merge pull request #1023 from henrik/patch-2
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [webmock](https://github.com/bblimke/webmock) from 3.18.1 to 3.19.0.
- [Changelog](https://github.com/bblimke/webmock/blob/master/CHANGELOG.md)
- [Commits](bblimke/webmock@v3.18.1...v3.19.0)

---
updated-dependencies:
- dependency-name: webmock
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies ruby Pull requests that update Ruby code labels Aug 28, 2023
@github-actions
Copy link

@github-actions
Copy link

gem compare webmock 3.18.1 3.19.0

Compared versions: ["3.18.1", "3.19.0"]
  DIFFERENT date:
    3.18.1: 2022-08-18 00:00:00 UTC
    3.19.0: 2023-08-26 00:00:00 UTC
  DIFFERENT metadata:
    3.18.1: {"bug_tracker_uri"=>"https://github.com/bblimke/webmock/issues", "changelog_uri"=>"https://github.com/bblimke/webmock/blob/v3.18.1/CHANGELOG.md", "documentation_uri"=>"https://www.rubydoc.info/gems/webmock/3.18.1", "source_code_uri"=>"https://github.com/bblimke/webmock/tree/v3.18.1", "wiki_uri"=>"https://github.com/bblimke/webmock/wiki"}
    3.19.0: {"bug_tracker_uri"=>"https://github.com/bblimke/webmock/issues", "changelog_uri"=>"https://github.com/bblimke/webmock/blob/v3.19.0/CHANGELOG.md", "documentation_uri"=>"https://www.rubydoc.info/gems/webmock/3.19.0", "source_code_uri"=>"https://github.com/bblimke/webmock/tree/v3.19.0", "wiki_uri"=>"https://github.com/bblimke/webmock/wiki"}
  DIFFERENT required_ruby_version:
    3.18.1: >= 2.3
    3.19.0: >= 2.5
  DIFFERENT rubygems_version:
    3.18.1: 3.1.2
    3.19.0: 3.4.10
  DIFFERENT version:
    3.18.1: 3.18.1
    3.19.0: 3.19.0
  DIFFERENT files:
    3.18.1->3.19.0:
      * Deleted:
            .gemtest
            .github/workflows/CI.yml
            .gitignore
            .rspec-tm
            Gemfile
            Rakefile
            minitest/test_helper.rb
            minitest/test_webmock.rb
            minitest/webmock_spec.rb
            spec/acceptance/async_http_client/async_http_client_spec.rb
            spec/acceptance/async_http_client/async_http_client_spec_helper.rb
            spec/acceptance/curb/curb_spec.rb
            spec/acceptance/curb/curb_spec_helper.rb
            spec/acceptance/em_http_request/em_http_request_spec.rb
            spec/acceptance/em_http_request/em_http_request_spec_helper.rb
            spec/acceptance/excon/excon_spec.rb
            spec/acceptance/excon/excon_spec_helper.rb
            spec/acceptance/http_rb/http_rb_spec.rb
            spec/acceptance/http_rb/http_rb_spec_helper.rb
            spec/acceptance/httpclient/httpclient_spec.rb
            spec/acceptance/httpclient/httpclient_spec_helper.rb
            spec/acceptance/manticore/manticore_spec.rb
            spec/acceptance/manticore/manticore_spec_helper.rb
            spec/acceptance/net_http/net_http_shared.rb
            spec/acceptance/net_http/net_http_spec.rb
            spec/acceptance/net_http/net_http_spec_helper.rb
            spec/acceptance/net_http/real_net_http_spec.rb
            spec/acceptance/patron/patron_spec.rb
            spec/acceptance/patron/patron_spec_helper.rb
            spec/acceptance/shared/allowing_and_disabling_net_connect.rb
            spec/acceptance/shared/callbacks.rb
            spec/acceptance/shared/complex_cross_concern_behaviors.rb
            spec/acceptance/shared/enabling_and_disabling_webmock.rb
            spec/acceptance/shared/precedence_of_stubs.rb
            spec/acceptance/shared/request_expectations.rb
            spec/acceptance/shared/returning_declared_responses.rb
            spec/acceptance/shared/stubbing_requests.rb
            spec/acceptance/typhoeus/typhoeus_hydra_spec.rb
            spec/acceptance/typhoeus/typhoeus_hydra_spec_helper.rb
            spec/acceptance/webmock_shared.rb
            spec/fixtures/test.txt
            spec/quality_spec.rb
            spec/spec_helper.rb
            spec/support/example_curl_output.txt
            spec/support/failures.rb
            spec/support/my_rack_app.rb
            spec/support/network_connection.rb
            spec/support/webmock_server.rb
            spec/unit/api_spec.rb
            spec/unit/errors_spec.rb
            spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
            spec/unit/http_lib_adapters/http_lib_adapter_spec.rb
            spec/unit/matchers/hash_excluding_matcher_spec.rb
            spec/unit/matchers/hash_including_matcher_spec.rb
            spec/unit/rack_response_spec.rb
            spec/unit/request_body_diff_spec.rb
            spec/unit/request_execution_verifier_spec.rb
            spec/unit/request_pattern_spec.rb
            spec/unit/request_registry_spec.rb
            spec/unit/request_signature_snippet_spec.rb
            spec/unit/request_signature_spec.rb
            spec/unit/request_stub_spec.rb
            spec/unit/response_spec.rb
            spec/unit/stub_registry_spec.rb
            spec/unit/stub_request_snippet_spec.rb
            spec/unit/util/hash_counter_spec.rb
            spec/unit/util/hash_keys_stringifier_spec.rb
            spec/unit/util/headers_spec.rb
            spec/unit/util/json_spec.rb
            spec/unit/util/query_mapper_spec.rb
            spec/unit/util/uri_spec.rb
            spec/unit/util/version_checker_spec.rb
            spec/unit/webmock_spec.rb
            test/http_request.rb
            test/shared_test.rb
            test/test_helper.rb
            test/test_webmock.rb
            webmock.gemspec
      * Changed:
            CHANGELOG.md +34/-0
            README.md +34/-15
            lib/webmock.rb +2/-0
            lib/webmock/api.rb +2/-0
            lib/webmock/assertion_failure.rb +2/-0
            lib/webmock/callback_registry.rb +2/-0
            lib/webmock/config.rb +2/-0
            lib/webmock/cucumber.rb +2/-0
            lib/webmock/deprecation.rb +2/-0
            lib/webmock/errors.rb +2/-0
            lib/webmock/http_lib_adapters/async_http_client_adapter.rb +2/-0
            lib/webmock/http_lib_adapters/curb_adapter.rb +2/-0
            lib/webmock/http_lib_adapters/em_http_request_adapter.rb +14/-6
            lib/webmock/http_lib_adapters/excon_adapter.rb +2/-0
            lib/webmock/http_lib_adapters/http_lib_adapter.rb +2/-0
            lib/webmock/http_lib_adapters/http_lib_adapter_registry.rb +2/-0
            lib/webmock/http_lib_adapters/http_rb/client.rb +2/-0
            lib/webmock/http_lib_adapters/http_rb/request.rb +3/-1
            lib/webmock/http_lib_adapters/http_rb/response.rb +2/-0
            lib/webmock/http_lib_adapters/http_rb/streamer.rb +2/-0
            lib/webmock/http_lib_adapters/http_rb/webmock.rb +2/-0
            lib/webmock/http_lib_adapters/http_rb_adapter.rb +2/-0
            lib/webmock/http_lib_adapters/httpclient_adapter.rb +2/-0
            lib/webmock/http_lib_adapters/manticore_adapter.rb +2/-0
            lib/webmock/http_lib_adapters/net_http.rb +2/-0
            lib/webmock/http_lib_adapters/net_http_response.rb +2/-0
            lib/webmock/http_lib_adapters/patron_adapter.rb +2/-0
            lib/webmock/http_lib_adapters/typhoeus_hydra_adapter.rb +2/-0
            lib/webmock/matchers/any_arg_matcher.rb +2/-0
            lib/webmock/matchers/hash_argument_matcher.rb +2/-0
            lib/webmock/matchers/hash_excluding_matcher.rb +2/-0
            lib/webmock/matchers/hash_including_matcher.rb +2/-0
            lib/webmock/minitest.rb +2/-0
            lib/webmock/rack_response.rb +2/-0
            lib/webmock/request_body_diff.rb +2/-0
            lib/webmock/request_execution_verifier.rb +2/-0
            lib/webmock/request_pattern.rb +3/-1
            lib/webmock/request_registry.rb +2/-0
            lib/webmock/request_signature.rb +2/-0
            lib/webmock/request_signature_snippet.rb +2/-0
            lib/webmock/request_stub.rb +7/-1
            lib/webmock/response.rb +2/-0
            lib/webmock/responses_sequence.rb +2/-0
            lib/webmock/rspec.rb +2/-0
            lib/webmock/rspec/matchers.rb +2/-0
            lib/webmock/rspec/matchers/request_pattern_matcher.rb +2/-0
            lib/webmock/rspec/matchers/webmock_matcher.rb +2/-0
            lib/webmock/stub_registry.rb +2/-0
            lib/webmock/stub_request_snippet.rb +2/-0
            lib/webmock/test_unit.rb +2/-0
            lib/webmock/util/hash_counter.rb +12/-6
            lib/webmock/util/hash_keys_stringifier.rb +2/-0
            lib/webmock/util/hash_validator.rb +2/-0
            lib/webmock/util/headers.rb +22/-8
            lib/webmock/util/json.rb +2/-0
            lib/webmock/util/query_mapper.rb +2/-0
            lib/webmock/util/uri.rb +3/-1
            lib/webmock/util/values_stringifier.rb +2/-0
            lib/webmock/util/version_checker.rb +7/-5
            lib/webmock/version.rb +3/-1
            lib/webmock/webmock.rb +2/-0
  DIFFERENT test_files:
    3.18.1->3.19.0:
      * Deleted:
            spec/acceptance/async_http_client/async_http_client_spec.rb
            spec/acceptance/async_http_client/async_http_client_spec_helper.rb
            spec/acceptance/curb/curb_spec.rb
            spec/acceptance/curb/curb_spec_helper.rb
            spec/acceptance/em_http_request/em_http_request_spec.rb
            spec/acceptance/em_http_request/em_http_request_spec_helper.rb
            spec/acceptance/excon/excon_spec.rb
            spec/acceptance/excon/excon_spec_helper.rb
            spec/acceptance/http_rb/http_rb_spec.rb
            spec/acceptance/http_rb/http_rb_spec_helper.rb
            spec/acceptance/httpclient/httpclient_spec.rb
            spec/acceptance/httpclient/httpclient_spec_helper.rb
            spec/acceptance/manticore/manticore_spec.rb
            spec/acceptance/manticore/manticore_spec_helper.rb
            spec/acceptance/net_http/net_http_shared.rb
            spec/acceptance/net_http/net_http_spec.rb
            spec/acceptance/net_http/net_http_spec_helper.rb
            spec/acceptance/net_http/real_net_http_spec.rb
            spec/acceptance/patron/patron_spec.rb
            spec/acceptance/patron/patron_spec_helper.rb
            spec/acceptance/shared/allowing_and_disabling_net_connect.rb
            spec/acceptance/shared/callbacks.rb
            spec/acceptance/shared/complex_cross_concern_behaviors.rb
            spec/acceptance/shared/enabling_and_disabling_webmock.rb
            spec/acceptance/shared/precedence_of_stubs.rb
            spec/acceptance/shared/request_expectations.rb
            spec/acceptance/shared/returning_declared_responses.rb
            spec/acceptance/shared/stubbing_requests.rb
            spec/acceptance/typhoeus/typhoeus_hydra_spec.rb
            spec/acceptance/typhoeus/typhoeus_hydra_spec_helper.rb
            spec/acceptance/webmock_shared.rb
            spec/fixtures/test.txt
            spec/quality_spec.rb
            spec/spec_helper.rb
            spec/support/example_curl_output.txt
            spec/support/failures.rb
            spec/support/my_rack_app.rb
            spec/support/network_connection.rb
            spec/support/webmock_server.rb
            spec/unit/api_spec.rb
            spec/unit/errors_spec.rb
            spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
            spec/unit/http_lib_adapters/http_lib_adapter_spec.rb
            spec/unit/matchers/hash_excluding_matcher_spec.rb
            spec/unit/matchers/hash_including_matcher_spec.rb
            spec/unit/rack_response_spec.rb
            spec/unit/request_body_diff_spec.rb
            spec/unit/request_execution_verifier_spec.rb
            spec/unit/request_pattern_spec.rb
            spec/unit/request_registry_spec.rb
            spec/unit/request_signature_snippet_spec.rb
            spec/unit/request_signature_spec.rb
            spec/unit/request_stub_spec.rb
            spec/unit/response_spec.rb
            spec/unit/stub_registry_spec.rb
            spec/unit/stub_request_snippet_spec.rb
            spec/unit/util/hash_counter_spec.rb
            spec/unit/util/hash_keys_stringifier_spec.rb
            spec/unit/util/headers_spec.rb
            spec/unit/util/json_spec.rb
            spec/unit/util/query_mapper_spec.rb
            spec/unit/util/uri_spec.rb
            spec/unit/util/version_checker_spec.rb
            spec/unit/webmock_spec.rb
            test/http_request.rb
            test/shared_test.rb
            test/test_helper.rb
            test/test_webmock.rb
  DIFFERENT development dependencies:
    3.18.1->3.19.0:
      * Added:
            rspec-retry [">= 0"] (development)
  DIFFERENT Gemfile dependencies
    3.18.1->3.19.0:
      * Deleted
            rake [">= 0"] (runtime)
            jruby-openssl [">= 0"] (runtime)

@github-actions
Copy link

gem compare --diff webmock 3.18.1 3.19.0

Compared versions: ["3.18.1", "3.19.0"]
  DIFFERENT files:
    3.18.1->3.19.0:
      * Deleted:
            .gemtest
            .github/workflows/CI.yml
            .gitignore
            .rspec-tm
            Gemfile
            Rakefile
            minitest/test_helper.rb
            minitest/test_webmock.rb
            minitest/webmock_spec.rb
            spec/acceptance/async_http_client/async_http_client_spec.rb
            spec/acceptance/async_http_client/async_http_client_spec_helper.rb
            spec/acceptance/curb/curb_spec.rb
            spec/acceptance/curb/curb_spec_helper.rb
            spec/acceptance/em_http_request/em_http_request_spec.rb
            spec/acceptance/em_http_request/em_http_request_spec_helper.rb
            spec/acceptance/excon/excon_spec.rb
            spec/acceptance/excon/excon_spec_helper.rb
            spec/acceptance/http_rb/http_rb_spec.rb
            spec/acceptance/http_rb/http_rb_spec_helper.rb
            spec/acceptance/httpclient/httpclient_spec.rb
            spec/acceptance/httpclient/httpclient_spec_helper.rb
            spec/acceptance/manticore/manticore_spec.rb
            spec/acceptance/manticore/manticore_spec_helper.rb
            spec/acceptance/net_http/net_http_shared.rb
            spec/acceptance/net_http/net_http_spec.rb
            spec/acceptance/net_http/net_http_spec_helper.rb
            spec/acceptance/net_http/real_net_http_spec.rb
            spec/acceptance/patron/patron_spec.rb
            spec/acceptance/patron/patron_spec_helper.rb
            spec/acceptance/shared/allowing_and_disabling_net_connect.rb
            spec/acceptance/shared/callbacks.rb
            spec/acceptance/shared/complex_cross_concern_behaviors.rb
            spec/acceptance/shared/enabling_and_disabling_webmock.rb
            spec/acceptance/shared/precedence_of_stubs.rb
            spec/acceptance/shared/request_expectations.rb
            spec/acceptance/shared/returning_declared_responses.rb
            spec/acceptance/shared/stubbing_requests.rb
            spec/acceptance/typhoeus/typhoeus_hydra_spec.rb
            spec/acceptance/typhoeus/typhoeus_hydra_spec_helper.rb
            spec/acceptance/webmock_shared.rb
            spec/fixtures/test.txt
            spec/quality_spec.rb
            spec/spec_helper.rb
            spec/support/example_curl_output.txt
            spec/support/failures.rb
            spec/support/my_rack_app.rb
            spec/support/network_connection.rb
            spec/support/webmock_server.rb
            spec/unit/api_spec.rb
            spec/unit/errors_spec.rb
            spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
            spec/unit/http_lib_adapters/http_lib_adapter_spec.rb
            spec/unit/matchers/hash_excluding_matcher_spec.rb
            spec/unit/matchers/hash_including_matcher_spec.rb
            spec/unit/rack_response_spec.rb
            spec/unit/request_body_diff_spec.rb
            spec/unit/request_execution_verifier_spec.rb
            spec/unit/request_pattern_spec.rb
            spec/unit/request_registry_spec.rb
            spec/unit/request_signature_snippet_spec.rb
            spec/unit/request_signature_spec.rb
            spec/unit/request_stub_spec.rb
            spec/unit/response_spec.rb
            spec/unit/stub_registry_spec.rb
            spec/unit/stub_request_snippet_spec.rb
            spec/unit/util/hash_counter_spec.rb
            spec/unit/util/hash_keys_stringifier_spec.rb
            spec/unit/util/headers_spec.rb
            spec/unit/util/json_spec.rb
            spec/unit/util/query_mapper_spec.rb
            spec/unit/util/uri_spec.rb
            spec/unit/util/version_checker_spec.rb
            spec/unit/webmock_spec.rb
            test/http_request.rb
            test/shared_test.rb
            test/test_helper.rb
            test/test_webmock.rb
            webmock.gemspec
      * Changed:
        CHANGELOG.md
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/CHANGELOG.md	2023-08-28 02:33:56.217440806 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/CHANGELOG.md	2023-08-28 02:33:56.237441029 +0000
                @@ -2,0 +3,34 @@
                +# 3.19.0
                +
                +  * Do not alter real (non-stubbed) request headers when handling em-http-request requests.
                +
                +      Thanks to [Yoann Lecuyer](https://github.com/ylecuyer)
                +
                +  * Fix matching stubs with HashExcludingMatcher
                +
                +      Thanks to [Lucas Arnaud](https://github.com/lucasarnaud)
                +
                +  * Remove development and test files from the gem package
                +
                +      Thanks to [Orien Madgwick](https://github.com/orien)
                +
                +  * Fix supported http client gem version checks.
                +
                +      Thanks to [Marc Rohloff](https://github.com/marcrohloff) and [Roman Stražanec](https://github.com/romanstrazanec)
                +
                +  * Non-string body passed to #to_return_json is now converted to JSON string.
                +
                +      Thanks to [inkstak](https://github.com/inkstak)
                +
                +  * `[::1]` is recognised as localhost e.g when passing `allow_localhost` option to `disable_net_connect!`
                +
                +      Thanks to [Yuki Inoue](https://github.com/Yuki-Inoue)
                +
                +  * Optimized `normalize_headers` for performance
                +
                +      Thanks to [Brandon Weaver](https://github.com/baweaver)
                +
                +  * Added Frozen string literal to files to optimise memory usage
                +
                +      Thanks to [Josh Nichols](https://github.com/technicalpickles)
                +
        README.md
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/README.md	2023-08-28 02:33:56.221440851 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/README.md	2023-08-28 02:33:56.237441029 +0000
                @@ -7,2 +6,0 @@
                -[![Inline docs](http://inch-ci.org/github/bblimke/webmock.svg?branch=master)](http://inch-ci.org/github/bblimke/webmock)
                -[![SemVer](https://api.dependabot.com/badges/compatibility_score?dependency-name=webmock&package-manager=bundler&version-scheme=semver)](https://dependabot.com/compatibility-score.html?dependency-name=webmock&package-manager=bundler&version-scheme=semver)
                @@ -43,2 +40,0 @@
                -
                -* MRI 2.5
                @@ -46,0 +43,3 @@
                +* MRI 3.0
                +* MRI 3.1
                +* MRI 3.2
                @@ -48 +46,0 @@
                -* Rubinius
                @@ -53 +51 @@
                -    gem install webmock
                +gem install webmock
                @@ -58,4 +56,4 @@
                -    # add to your Gemfile
                -    group :test do
                -        gem "webmock"
                -    end
                +# add to your Gemfile
                +group :test do
                +  gem "webmock"
                +end
                @@ -66,3 +64,5 @@
                -    git clone http://github.com/bblimke/webmock.git
                -    cd webmock
                -    rake install
                +```bash
                +git clone https://github.com/bblimke/webmock.git
                +cd webmock
                +rake install
                +```
                @@ -332,0 +333,10 @@
                +### Response with JSON body
                +
                +```ruby
                +
                +stub_request(:any, "www.example.com").
                +  to_return_json(body: {foo: "bar"})
                +
                +Net::HTTP.get('www.example.com', '/') # ===> "{\"foo\": \"bar\"}"
                +```
                +
                @@ -386 +396,2 @@
                -    `curl -is www.example.com > /tmp/www.example.com.txt`
                +`curl -is www.example.com > /tmp/www.example.com.txt`
                +
                @@ -543 +554 @@
                -WebMock.disable_net_connect!(allow: %r{ample.org/foo})
                +WebMock.disable_net_connect!(allow: %r{ample\.org/foo})
                @@ -1172,0 +1184,8 @@
                +* Henrik Nyh
                +* Yoann Lecuyer
                +* Lucas Arnaud
                +* Marc Rohloff
                +* inkstak
                +* Yuki Inoue
                +* Brandon Weaver
                +* Josh Nichols
        lib/webmock.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock.rb	2023-08-28 02:33:56.221440851 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock.rb	2023-08-28 02:33:56.241441074 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
        lib/webmock/api.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/api.rb	2023-08-28 02:33:56.221440851 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/api.rb	2023-08-28 02:33:56.241441074 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
        lib/webmock/assertion_failure.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/assertion_failure.rb	2023-08-28 02:33:56.221440851 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/assertion_failure.rb	2023-08-28 02:33:56.241441074 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
        lib/webmock/callback_registry.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/callback_registry.rb	2023-08-28 02:33:56.221440851 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/callback_registry.rb	2023-08-28 02:33:56.241441074 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
        lib/webmock/config.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/config.rb	2023-08-28 02:33:56.221440851 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/config.rb	2023-08-28 02:33:56.241441074 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
        lib/webmock/cucumber.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/cucumber.rb	2023-08-28 02:33:56.221440851 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/cucumber.rb	2023-08-28 02:33:56.241441074 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
        lib/webmock/deprecation.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/deprecation.rb	2023-08-28 02:33:56.221440851 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/deprecation.rb	2023-08-28 02:33:56.241441074 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
        lib/webmock/errors.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/errors.rb	2023-08-28 02:33:56.221440851 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/errors.rb	2023-08-28 02:33:56.241441074 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
        lib/webmock/http_lib_adapters/async_http_client_adapter.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/http_lib_adapters/async_http_client_adapter.rb	2023-08-28 02:33:56.221440851 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/http_lib_adapters/async_http_client_adapter.rb	2023-08-28 02:33:56.241441074 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
        lib/webmock/http_lib_adapters/curb_adapter.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/http_lib_adapters/curb_adapter.rb	2023-08-28 02:33:56.221440851 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/http_lib_adapters/curb_adapter.rb	2023-08-28 02:33:56.241441074 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
        lib/webmock/http_lib_adapters/em_http_request_adapter.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/http_lib_adapters/em_http_request_adapter.rb	2023-08-28 02:33:56.221440851 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/http_lib_adapters/em_http_request_adapter.rb	2023-08-28 02:33:56.241441074 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
                @@ -104 +106 @@
                -        send_request(request_signature.headers, request_signature.body)
                +        send_request(*headers_and_body_processed_by_middleware)
                @@ -171,5 +173,7 @@
                -      def build_request_signature
                -        headers, body = build_request, @req.body
                -
                -        @conn.middleware.select {|m| m.respond_to?(:request) }.each do |m|
                -          headers, body = m.request(self, headers, body)
                +      def headers_and_body_processed_by_middleware
                +        @headers_and_body_processed_by_middleware ||= begin
                +          head, body = build_request, @req.body
                +          @conn.middleware.each do |m|
                +            head, body = m.request(self, head, body) if m.respond_to?(:request)
                +          end
                +          [head, body]
                @@ -176,0 +181,4 @@
                +      end
                +
                +      def build_request_signature
                +        headers, body = headers_and_body_processed_by_middleware
        lib/webmock/http_lib_adapters/excon_adapter.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/http_lib_adapters/excon_adapter.rb	2023-08-28 02:33:56.221440851 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/http_lib_adapters/excon_adapter.rb	2023-08-28 02:33:56.241441074 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
        lib/webmock/http_lib_adapters/http_lib_adapter.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/http_lib_adapters/http_lib_adapter.rb	2023-08-28 02:33:56.221440851 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/http_lib_adapters/http_lib_adapter.rb	2023-08-28 02:33:56.241441074 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
        lib/webmock/http_lib_adapters/http_lib_adapter_registry.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/http_lib_adapters/http_lib_adapter_registry.rb	2023-08-28 02:33:56.221440851 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/http_lib_adapters/http_lib_adapter_registry.rb	2023-08-28 02:33:56.241441074 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
        lib/webmock/http_lib_adapters/http_rb/client.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/http_lib_adapters/http_rb/client.rb	2023-08-28 02:33:56.221440851 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/http_lib_adapters/http_rb/client.rb	2023-08-28 02:33:56.241441074 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
        lib/webmock/http_lib_adapters/http_rb/request.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/http_lib_adapters/http_rb/request.rb	2023-08-28 02:33:56.221440851 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/http_lib_adapters/http_rb/request.rb	2023-08-28 02:33:56.241441074 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
                @@ -5 +7 @@
                -                       ''.tap { |string| body.each { |part| string << part } }
                +                       String.new.tap { |string| body.each { |part| string << part } }
        lib/webmock/http_lib_adapters/http_rb/response.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/http_lib_adapters/http_rb/response.rb	2023-08-28 02:33:56.221440851 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/http_lib_adapters/http_rb/response.rb	2023-08-28 02:33:56.241441074 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
        lib/webmock/http_lib_adapters/http_rb/streamer.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/http_lib_adapters/http_rb/streamer.rb	2023-08-28 02:33:56.221440851 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/http_lib_adapters/http_rb/streamer.rb	2023-08-28 02:33:56.241441074 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
        lib/webmock/http_lib_adapters/http_rb/webmock.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/http_lib_adapters/http_rb/webmock.rb	2023-08-28 02:33:56.221440851 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/http_lib_adapters/http_rb/webmock.rb	2023-08-28 02:33:56.241441074 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
        lib/webmock/http_lib_adapters/http_rb_adapter.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/http_lib_adapters/http_rb_adapter.rb	2023-08-28 02:33:56.221440851 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/http_lib_adapters/http_rb_adapter.rb	2023-08-28 02:33:56.241441074 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
        lib/webmock/http_lib_adapters/httpclient_adapter.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/http_lib_adapters/httpclient_adapter.rb	2023-08-28 02:33:56.221440851 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/http_lib_adapters/httpclient_adapter.rb	2023-08-28 02:33:56.241441074 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
        lib/webmock/http_lib_adapters/manticore_adapter.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/http_lib_adapters/manticore_adapter.rb	2023-08-28 02:33:56.221440851 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/http_lib_adapters/manticore_adapter.rb	2023-08-28 02:33:56.241441074 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
        lib/webmock/http_lib_adapters/net_http.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/http_lib_adapters/net_http.rb	2023-08-28 02:33:56.221440851 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/http_lib_adapters/net_http.rb	2023-08-28 02:33:56.241441074 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
        lib/webmock/http_lib_adapters/net_http_response.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/http_lib_adapters/net_http_response.rb	2023-08-28 02:33:56.221440851 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/http_lib_adapters/net_http_response.rb	2023-08-28 02:33:56.241441074 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
        lib/webmock/http_lib_adapters/patron_adapter.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/http_lib_adapters/patron_adapter.rb	2023-08-28 02:33:56.221440851 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/http_lib_adapters/patron_adapter.rb	2023-08-28 02:33:56.241441074 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
        lib/webmock/http_lib_adapters/typhoeus_hydra_adapter.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/http_lib_adapters/typhoeus_hydra_adapter.rb	2023-08-28 02:33:56.225440896 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/http_lib_adapters/typhoeus_hydra_adapter.rb	2023-08-28 02:33:56.241441074 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
        lib/webmock/matchers/any_arg_matcher.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/matchers/any_arg_matcher.rb	2023-08-28 02:33:56.225440896 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/matchers/any_arg_matcher.rb	2023-08-28 02:33:56.241441074 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
        lib/webmock/matchers/hash_argument_matcher.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/matchers/hash_argument_matcher.rb	2023-08-28 02:33:56.225440896 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/matchers/hash_argument_matcher.rb	2023-08-28 02:33:56.241441074 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
        lib/webmock/matchers/hash_excluding_matcher.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/matchers/hash_excluding_matcher.rb	2023-08-28 02:33:56.225440896 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/matchers/hash_excluding_matcher.rb	2023-08-28 02:33:56.241441074 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
        lib/webmock/matchers/hash_including_matcher.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/matchers/hash_including_matcher.rb	2023-08-28 02:33:56.225440896 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/matchers/hash_including_matcher.rb	2023-08-28 02:33:56.241441074 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
        lib/webmock/minitest.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/minitest.rb	2023-08-28 02:33:56.225440896 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/minitest.rb	2023-08-28 02:33:56.245441119 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
        lib/webmock/rack_response.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/rack_response.rb	2023-08-28 02:33:56.225440896 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/rack_response.rb	2023-08-28 02:33:56.245441119 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
        lib/webmock/request_body_diff.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/request_body_diff.rb	2023-08-28 02:33:56.225440896 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/request_body_diff.rb	2023-08-28 02:33:56.245441119 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
        lib/webmock/request_execution_verifier.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/request_execution_verifier.rb	2023-08-28 02:33:56.225440896 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/request_execution_verifier.rb	2023-08-28 02:33:56.245441119 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
        lib/webmock/request_pattern.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/request_pattern.rb	2023-08-28 02:33:56.225440896 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/request_pattern.rb	2023-08-28 02:33:56.245441119 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
                @@ -286 +288 @@
                -      elsif (@pattern).is_a?(WebMock::Matchers::HashIncludingMatcher)
                +      elsif (@pattern).is_a?(WebMock::Matchers::HashArgumentMatcher)
        lib/webmock/request_registry.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/request_registry.rb	2023-08-28 02:33:56.225440896 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/request_registry.rb	2023-08-28 02:33:56.245441119 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
        lib/webmock/request_signature.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/request_signature.rb	2023-08-28 02:33:56.225440896 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/request_signature.rb	2023-08-28 02:33:56.245441119 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
        lib/webmock/request_signature_snippet.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/request_signature_snippet.rb	2023-08-28 02:33:56.225440896 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/request_signature_snippet.rb	2023-08-28 02:33:56.245441119 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
        lib/webmock/request_stub.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/request_stub.rb	2023-08-28 02:33:56.225440896 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/request_stub.rb	2023-08-28 02:33:56.245441119 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
                @@ -31,0 +34,4 @@
                +
                +        body = body.call if body.respond_to?(:call)
                +        body = body.to_json unless body.is_a?(String)
                +
                @@ -34 +40 @@
                -          body: body.is_a?(Hash) ? body.to_json : body
                +          body: body
        lib/webmock/response.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/response.rb	2023-08-28 02:33:56.225440896 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/response.rb	2023-08-28 02:33:56.245441119 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
        lib/webmock/responses_sequence.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/responses_sequence.rb	2023-08-28 02:33:56.225440896 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/responses_sequence.rb	2023-08-28 02:33:56.245441119 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
        lib/webmock/rspec.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/rspec.rb	2023-08-28 02:33:56.225440896 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/rspec.rb	2023-08-28 02:33:56.245441119 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
        lib/webmock/rspec/matchers.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/rspec/matchers.rb	2023-08-28 02:33:56.225440896 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/rspec/matchers.rb	2023-08-28 02:33:56.245441119 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
        lib/webmock/rspec/matchers/request_pattern_matcher.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/rspec/matchers/request_pattern_matcher.rb	2023-08-28 02:33:56.225440896 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/rspec/matchers/request_pattern_matcher.rb	2023-08-28 02:33:56.245441119 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
        lib/webmock/rspec/matchers/webmock_matcher.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/rspec/matchers/webmock_matcher.rb	2023-08-28 02:33:56.225440896 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/rspec/matchers/webmock_matcher.rb	2023-08-28 02:33:56.245441119 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
        lib/webmock/stub_registry.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/stub_registry.rb	2023-08-28 02:33:56.225440896 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/stub_registry.rb	2023-08-28 02:33:56.245441119 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
        lib/webmock/stub_request_snippet.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/stub_request_snippet.rb	2023-08-28 02:33:56.225440896 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/stub_request_snippet.rb	2023-08-28 02:33:56.245441119 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
        lib/webmock/test_unit.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/test_unit.rb	2023-08-28 02:33:56.225440896 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/test_unit.rb	2023-08-28 02:33:56.245441119 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
        lib/webmock/util/hash_counter.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/util/hash_counter.rb	2023-08-28 02:33:56.225440896 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/util/hash_counter.rb	2023-08-28 02:33:56.245441119 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
                @@ -6,0 +9 @@
                +
                @@ -8 +11 @@
                -        self.hash = {}
                +        self.hash = Hash.new(0)
                @@ -13 +16,2 @@
                -      def put key, num=1
                +
                +      def put(key, num=1)
                @@ -15,2 +19,2 @@
                -          hash[key] = (hash[key] || 0) + num
                -          @order[key] = @max = @max + 1
                +          hash[key] += num
                +          @order[key] = @max += 1
                @@ -19 +23,2 @@
                -      def get key
                +
                +      def get(key)
                @@ -21 +26 @@
                -          hash[key] || 0
                +          hash[key]
                @@ -26,0 +32 @@
                +
        lib/webmock/util/hash_keys_stringifier.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/util/hash_keys_stringifier.rb	2023-08-28 02:33:56.225440896 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/util/hash_keys_stringifier.rb	2023-08-28 02:33:56.245441119 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
        lib/webmock/util/hash_validator.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/util/hash_validator.rb	2023-08-28 02:33:56.225440896 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/util/hash_validator.rb	2023-08-28 02:33:56.245441119 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
        lib/webmock/util/headers.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/util/headers.rb	2023-08-28 02:33:56.225440896 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/util/headers.rb	2023-08-28 02:33:56.245441119 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
                @@ -8,0 +11,4 @@
                +      STANDARD_HEADER_DELIMITER = '-'.freeze
                +      NONSTANDARD_HEADER_DELIMITER = '_'.freeze
                +      JOIN = ', '.freeze
                +
                @@ -11,3 +17,4 @@
                -        array = headers.map { |name, value|
                -          [name.to_s.split(/_|-/).map { |segment| segment.capitalize }.join("-"),
                -           case value
                +
                +        headers.each_with_object({}) do |(name, value), new_headers|
                +          new_headers[normalize_name(name)] =
                +            case value
                @@ -15 +22 @@
                -            when Array then (value.size == 1) ? value.first.to_s : value.map {|v| v.to_s}.sort
                +            when Array then (value.size == 1) ? value.first.to_s : value.map(&:to_s).sort
                @@ -17,4 +24,2 @@
                -           end
                -          ]
                -        }
                -        Hash[*array.inject([]) {|r,x| r + x}]
                +            end
                +        end
                @@ -57,0 +63,9 @@
                +      end
                +
                +      def self.normalize_name(name)
                +        name
                +          .to_s
                +          .tr(NONSTANDARD_HEADER_DELIMITER, STANDARD_HEADER_DELIMITER)
                +          .split(STANDARD_HEADER_DELIMITER)
                +          .map!(&:capitalize)
                +          .join(STANDARD_HEADER_DELIMITER)
        lib/webmock/util/json.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/util/json.rb	2023-08-28 02:33:56.225440896 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/util/json.rb	2023-08-28 02:33:56.245441119 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
        lib/webmock/util/query_mapper.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/util/query_mapper.rb	2023-08-28 02:33:56.225440896 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/util/query_mapper.rb	2023-08-28 02:33:56.245441119 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
        lib/webmock/util/uri.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/util/uri.rb	2023-08-28 02:33:56.225440896 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/util/uri.rb	2023-08-28 02:33:56.245441119 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
                @@ -71 +73 @@
                -        %w(localhost 127.0.0.1 0.0.0.0).include?(uri.host)
                +        %w(localhost 127.0.0.1 0.0.0.0 [::1]).include?(uri.host)
        lib/webmock/util/values_stringifier.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/util/values_stringifier.rb	2023-08-28 02:33:56.225440896 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/util/values_stringifier.rb	2023-08-28 02:33:56.245441119 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
        lib/webmock/util/version_checker.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/util/version_checker.rb	2023-08-28 02:33:56.225440896 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/util/version_checker.rb	2023-08-28 02:33:56.245441119 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
                @@ -86,0 +89,2 @@
                +        when @major == @min_major && @minor < @min_minor then :too_low
                +        when @major == @min_major && @minor == @min_minor && @patch < @min_patch then :too_low
                @@ -88,5 +92,3 @@
                -        when @major > @min_major then :ok
                -        when @minor < @min_minor then :too_low
                -        when @max_minor && @minor > @max_minor then :too_high
                -        when @minor > @min_minor then :ok
                -        when @patch < @min_patch then :too_low
                +        when @max_major && @major == @max_major && @max_minor && @minor > @max_minor then :too_high
                +
                +        else :ok
        lib/webmock/version.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/version.rb	2023-08-28 02:33:56.229440940 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/version.rb	2023-08-28 02:33:56.245441119 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +
                @@ -2 +4 @@
                -  VERSION = '3.18.1' unless defined?(::WebMock::VERSION)
                +  VERSION = '3.19.0' unless defined?(::WebMock::VERSION)
        lib/webmock/webmock.rb
                --- /tmp/d20230828-1837-9o35la/webmock-3.18.1/lib/webmock/webmock.rb	2023-08-28 02:33:56.229440940 +0000
                +++ /tmp/d20230828-1837-9o35la/webmock-3.19.0/lib/webmock/webmock.rb	2023-08-28 02:33:56.245441119 +0000
                @@ -0,0 +1,2 @@
                +# frozen_string_literal: true
                +

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Aug 30, 2023

Superseded by #522.

@dependabot dependabot bot closed this Aug 30, 2023
@dependabot dependabot bot deleted the dependabot/bundler/webmock-3.19.0 branch August 30, 2023 02:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies ruby Pull requests that update Ruby code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants