deps(ruby): bump the bundler-dependencies group in /ruby with 2 updates
Bumps the bundler-dependencies group in /ruby with 2 updates: webmock and yard.
Updates webmock from 3.36.0 to 3.42.0
Release notes
Sourced from webmock's releases.
3.42.0
Fix VCR failing to replay responses recorded with the
auto_inflatefeature of thehttpgem (#1154)Previously, for a real request made with
HTTP.use(:auto_inflate),after_requestcallbacks got the inflated body together with theContent-Encoding: gzipheader of the compressed one. VCR, hooked into WebMock, recorded both, and replaying the cassette raisedZlib::DataError: incorrect header check, because the feature tried to inflate the body again. With VCR'sdecode_compressed_responseoption, recording raisedZlib::GzipFile::Errorinstead.Callbacks now get the inflated body without the
Content-Encodingheader, as they do for a body that Net::HTTP inflates. AContent-Lengthheader, when the response has one, gives the size of the inflated body. The response the client returns is unchanged, and so are the headers of a response with an empty body, such as one to a HEAD request.A cassette recorded this way replays the response with those headers, while the real response keeps the headers of the compressed body.
This doesn't cover a client that inflates with a subclass of the feature, or responses returned by the
cachingfeature ofhttp6. Callbacks get those as before.Cassettes recorded with older versions that have the
Content-Encodingheader on an inflated body still fail. Record them again, or remove that header from their responses. TheirContent-Lengthis still that of the compressed body.3.41.0
WebMock now parses JSON request bodies with Ruby's
JSON.parse, instead of its old parser, which converted JSON to YAML and failed on or misread some valid JSON. Every body pattern that matched on 3.40.0 still matches. If one matches only as the old parser reads the body, WebMock prints a deprecation warning, because 4.0 drops the old parser and the pattern won't match there.
Match JSON request bodies with an escaped backslash in a string (#432)
Previously, a hash body pattern didn't match a JSON body with an escaped backslash inside a string, such as JSON inside JSON, because the old parser failed on it. For example,
with(body: {data: '{"url":"/p?a=1\u0026b=2"}'})didn't match the body{"data":"{\"url\":\"/p?a=1\\u0026b=2\"}"}. It now matches.Strings that the old parser changed now match too, for example
"a\u000ab", which it read as"a b".Match numbers with an exponent in JSON request bodies
Previously, a number such as
1e2or1e+20in a JSON body was read as a String, sowith(body: {amount: 1e20})didn't match the body{"amount":1e+20}, whichto_jsongenerates for that hash with recent json versions, such as the one in Ruby 4.0. It now matches.Deprecate body patterns that match a JSON request body only as the old parser reads it
The old parser read some bodies that aren't valid JSON, and some values differently from
JSON.parse. For example,with(body: {a: 1})matches the body{a: 1}, andwith(body: {amount: "1e+20"})matches the body{"amount":1e+20}, because the old parser read that number as a String. Such a pattern still matches, and WebMock prints a warning once for each pattern:WebMock deprecation warning: the body pattern {"a" => 1} matched the request body "{a: 1}" only as WebMock's old JSON parser reads it. WebMock 4.0 drops that parser, so it won't match. Send valid JSON, for example from to_json, and write the pattern for what JSON.parse returns.To fix it, send valid JSON, for example
{a: 1}.to_json, and write the pattern for whatJSON.parsereturns, such as{amount: 1e20}.Don't raise Psych errors for JSON request bodies such as one with an unquoted date
Previously, with Psych 4 or later (the default since Ruby 3.1), a JSON body such as
{"a": 2020-01-01}, which isn't valid JSON, raisedPsych::DisallowedClasswhen a stub had a hash body pattern, instead of WebMock's error for an unregistered request. It now doesn't match the pattern.Name a future major version in the deprecation warning for statuses such as
:okThe deprecation warning for a status such as
:ok, added in 3.38.0, said that WebMock 4.0 would raiseArgumentErrorfor it. 4.0 changes how JSON request bodies are read and doesn't change statuses yet, so the warning now names a future major version.3.40.0
Add support for
Curl::Multi(#535)Previously, WebMock didn't see requests sent with
Curl::Multi. A handle added withmulti.addand sent withmulti.performwent to the real server, even when a stub matched it or real connections were disabled, and WebMock didn't record it.Now a handle that matches a stub gets the stubbed response during
multi.perform, and one that is neither stubbed nor allowed raisesWebMock::NetConnectNotAllowedErrorfrommulti.add. Allowed requests still run together in curb's own multi loop. WebMock records both, andWebMock.after_requestcallbacks get both.
... (truncated)
Changelog
Sourced from webmock's changelog.
3.42.0
Fix VCR failing to replay responses recorded with the
auto_inflatefeature of thehttpgem (#1154)Previously, for a real request made with
HTTP.use(:auto_inflate),after_requestcallbacks got the inflated body together with theContent-Encoding: gzipheader of the compressed one. VCR, hooked into WebMock, recorded both, and replaying the cassette raisedZlib::DataError: incorrect header check, because the feature tried to inflate the body again. With VCR'sdecode_compressed_responseoption, recording raisedZlib::GzipFile::Errorinstead.Callbacks now get the inflated body without the
Content-Encodingheader, as they do for a body that Net::HTTP inflates. AContent-Lengthheader, when the response has one, gives the size of the inflated body. The response the client returns is unchanged, and so are the headers of a response with an empty body, such as one to a HEAD request.A cassette recorded this way replays the response with those headers, while the real response keeps the headers of the compressed body.
This doesn't cover a client that inflates with a subclass of the feature, or responses returned by the
cachingfeature ofhttp6. Callbacks get those as before.Cassettes recorded with older versions that have the
Content-Encodingheader on an inflated body still fail. Record them again, or remove that header from their responses. TheirContent-Lengthis still that of the compressed body.3.41.0
WebMock now parses JSON request bodies with Ruby's
JSON.parse, instead of its old parser, which converted JSON to YAML and failed on or misread some valid JSON. Every body pattern that matched on 3.40.0 still matches. If one matches only as the old parser reads the body, WebMock prints a deprecation warning, because 4.0 drops the old parser and the pattern won't match there.
Match JSON request bodies with an escaped backslash in a string (#432)
Previously, a hash body pattern didn't match a JSON body with an escaped backslash inside a string, such as JSON inside JSON, because the old parser failed on it. For example,
with(body: {data: '{"url":"/p?a=1\u0026b=2"}'})didn't match the body{"data":"{\"url\":\"/p?a=1\\u0026b=2\"}"}. It now matches.Strings that the old parser changed now match too, for example
"a\u000ab", which it read as"a b".Match numbers with an exponent in JSON request bodies
Previously, a number such as
1e2or1e+20in a JSON body was read as a String, sowith(body: {amount: 1e20})didn't match the body{"amount":1e+20}, whichto_jsongenerates for that hash with recent json versions, such as the one in Ruby 4.0. It now matches.Deprecate body patterns that match a JSON request body only as the old parser reads it
The old parser read some bodies that aren't valid JSON, and some values differently from
JSON.parse. For example,with(body: {a: 1})matches the body{a: 1}, andwith(body: {amount: "1e+20"})matches the body{"amount":1e+20}, because the old parser read that number as a String. Such a pattern still matches, and WebMock prints a warning once for each pattern:WebMock deprecation warning: the body pattern {"a" => 1} matched the request body "{a: 1}" only as WebMock's old JSON parser reads it. WebMock 4.0 drops that parser, so it won't match. Send valid JSON, for example from to_json, and write the pattern for what JSON.parse returns.To fix it, send valid JSON, for example
{a: 1}.to_json, and write the pattern for whatJSON.parsereturns, such as{amount: 1e20}.Don't raise Psych errors for JSON request bodies such as one with an unquoted date
Previously, with Psych 4 or later (the default since Ruby 3.1), a JSON body such as
{"a": 2020-01-01}, which isn't valid JSON, raisedPsych::DisallowedClasswhen a stub had a hash body pattern, instead of WebMock's error for an unregistered request. It now doesn't match the pattern.Name a future major version in the deprecation warning for statuses such as
:okThe deprecation warning for a status such as
:ok, added in 3.39.0, said that WebMock 4.0 would raiseArgumentErrorfor it. 4.0 changes how JSON request bodies are read and doesn't change statuses yet, so the warning now names a future major version.3.40.0
- Add support for
Curl::Multi(#535)
... (truncated)
Commits
bb2326fVersion 3.42.0b2984ebKeep callback headers when HTTP.rb has no Inflater class (#1154)0834d68Give callbacks headers for the body HTTP.rb's auto_inflate inflated (#1154)6186a70Version 3.41.025de467Say a future major version will raise for statuses such as :okfc6d039Parse JSON request bodies with JSON.parse (#432)96bdaf5Merge pull request #1151 from dpep/finish-spec-stub-cleanupe0d9b24Drop restated defaults from em-http and http.rb spec stubsb27a398Merge pull request #1150 from dpep/simplify-response-stubs972c9e2Simplify response stubs in the curb and httpclient specs- Additional commits viewable in compare view
Updates yard from 0.9.45 to 0.9.46
Release notes
Sourced from yard's releases.
Release v0.9.46
- Fix gem archive path traversal in
yard diff. Reported by Shopify (@oss-security-shopify). GHSA-r86q-p7r5-qcmh- Use the browser's current URL to poll for documentation while a library builds. Reported by zx (
@manus-pi).- Fix the search result count in the file and class lists, and the first click on a search result being lost when the search field loses focus (#1736)
- Fix type parser rejecting namespaced RBS interface names such as
Asana::Client::_Projects(#1735)- Fix stack overflow when a module's mixins form a cycle
- Register RBS method aliases
- Register RBS class and module aliases (
class Foo = Bar) as constants- Support RBS visibility modifiers,
privatesections andself?methods- Support RBS method signatures that span several lines
- Fix RBS
include,extendandprependkeeping type arguments in the mixin name- Fix RBS parser not closing a namespace at an
endfollowed by an inline comment, which nested every later declaration one level too deep (#1723)- Fix stack overflow when many files reference namespaces defined in later files (#1375). A handler that calls
Handlers::Base#ensure_loaded!on an unresolved object is now deferred and run again from the start once all files are parsed, instead of parsing the remaining files recursively. Themax_retriesargument toensure_loaded!andHandlers::C::Base#ensure_variable_defined!is deprecated and ignored.- Add support for intersection (
Foo & Bar) types: a value must satisfy every type listed, rather than any one of them, reading as "both a Foo and a Bar" (or "all of a Foo, a Bar, and a Baz" for 3+) to avoid reading like two separate values (closes #1644)- Add
|as a union operator (Foo | Barmeans an object that's either a Foo or a Bar). Type lists that already mean a union - the top level, a hash's key/value lists,Array<...>/Set<...>- read,and|the same way; elsewhere, where a comma-separated list means distinct type parameters or tuple slots (Array(...), or<...>for a name other thanArray/Set),|groups a union within a single one of them (closes #1699)- Add
[...], used the same way parentheses are in algebra: to override the default order of operations, e.g. to use a union as one conjunct of an intersection (closes #1699)- Document the existing anonymous
<A>,(A), and{A=>B}shorthand forms- Stop assuming
Foo<A, B>always means "A or B": onlyArray/Set(known homogeneous collections) keep that implicit-union reading; any other name with 2+ type parameters now reads neutrally as "with type parameters (A, B)", since<...>is also conventionally used for a class's distinct type parameters (e.g.Result<Success, Failure>).Hash<KeyType, ValueType>gets its own dedicated positional rendering, matchingHash{KeyType=>ValueType}- Fix spurious "Cannot resolve link" warnings for braces inside fenced code blocks nested in HTML blocks (e.g.
<details>) in Markdown files (#1706)- Fix RBS method tags for signatures with type parameters or an optional block
... (truncated)
Changelog
Sourced from yard's changelog.
0.9.46 - November 26th, 2026
- Fix gem archive path traversal in
yard diff. Reported by Shopify (@oss-security-shopify). GHSA-r86q-p7r5-qcmh- Use the browser's current URL to poll for documentation while a library builds. Reported by zx (
@manus-pi).- Fix the search result count in the file and class lists, and the first click on a search result being lost when the search field loses focus (#1736)
- Fix type parser rejecting namespaced RBS interface names such as
Asana::Client::_Projects(#1735)- Fix stack overflow when a module's mixins form a cycle
- Register RBS method aliases
- Register RBS class and module aliases (
class Foo = Bar) as constants- Support RBS visibility modifiers,
privatesections andself?methods- Support RBS method signatures that span several lines
- Fix RBS
include,extendandprependkeeping type arguments in the mixin name- Fix RBS parser not closing a namespace at an
endfollowed by an inline comment, which nested every later declaration one level too deep (#1723)- Fix stack overflow when many files reference namespaces defined in later files (#1375). A handler that calls
Handlers::Base#ensure_loaded!on an unresolved object is now deferred and run again from the start once all files are parsed, instead of parsing the remaining files recursively. Themax_retriesargument toensure_loaded!andHandlers::C::Base#ensure_variable_defined!is deprecated and ignored.- Add support for intersection (
Foo & Bar) types: a value must satisfy every type listed, rather than any one of them, reading as "both a Foo and a Bar" (or "all of a Foo, a Bar, and a Baz" for 3+) to avoid reading like two separate values (closes #1644)- Add
|as a union operator (Foo | Barmeans an object that's either a Foo or a Bar). Type lists that already mean a union - the top level, a hash's key/value lists,Array<...>/Set<...>- read,and|the same way; elsewhere, where a comma-separated list means distinct type parameters or tuple slots (Array(...), or<...>for a name other thanArray/Set),|groups a union within a single one of them (closes #1699)- Add
[...], used the same way parentheses are in algebra: to override the default order of operations, e.g. to use a union as one conjunct of an intersection (closes #1699)- Document the existing anonymous
<A>,(A), and{A=>B}shorthand forms- Stop assuming
Foo<A, B>always means "A or B": onlyArray/Set(known homogeneous collections) keep that implicit-union reading; any other name with 2+ type parameters now reads neutrally as "with type parameters (A, B)", since<...>is also conventionally used for a class's distinct type parameters (e.g.Result<Success, Failure>).Hash<KeyType, ValueType>gets its own dedicated positional rendering, matchingHash{KeyType=>ValueType}- Fix spurious "Cannot resolve link" warnings for braces inside fenced code blocks nested in HTML blocks (e.g.
<details>) in Markdown files (#1706)
... (truncated)
Commits
869e069Release: v0.9.46f379fa8Fix documentation server processing page URL handling467c644Fix path traversal in yard diff gem extractionfc44dadFix search result count and lost first click on results (#1736)1075efaAccept RBS interface names like A::_B in type tags (#1735)9627782Fix stack overflow when mixins form a cycle (#1734)51f9351Fix RBS tags for generic methods and optional blocks (#1733)eb286e6Register RBS method aliases (#1732)a5e8fc6Register RBS class and module aliases as constants (#1731)2606474Support RBS visibility modifiers, sections and self? methods (#1730)- Additional commits viewable in compare view
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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore <dependency name> major versionwill close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)@dependabot ignore <dependency name> minor versionwill close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)@dependabot ignore <dependency name>will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)@dependabot unignore <dependency name>will remove all of the ignore conditions of the specified dependency@dependabot unignore <dependency name> <ignore condition>will remove the ignore condition of the specified dependency and ignore conditions
Summary by cubic
Bumps webmock, yard, and public_suffix in the Ruby lockfile for /ruby as grouped by Dependabot.
webmock3.42.0 addsCurl::Multisupport and parses JSON request bodies withJSON.parse; deprecated patterns still work but warn.yard0.9.46 fixes a path traversal vulnerability inyard diff(GHSA-r86q-p7r5-qcmh) and adds several RBS parsing fixes.public_suffix7.1.0 is a transitive dependency bump.