Bump mocha from 2.6.1 to 2.7.0 #1523

Merged
dependabot[bot] merged 1 commits from dependabot/bundler/mocha-2.7.0 into main 2024-12-10 00:22:00 +08:00
dependabot[bot] commented 2024-12-09 15:49:11 +08:00 (Migrated from github.com)

Bumps mocha from 2.6.1 to 2.7.0.

Changelog

Sourced from mocha's changelog.

2.7.0

External changes

Internal changes

  • Workaround for JRuby jar-dependencies issue (#690)
  • Ruby v3.4 stacktrace uses single-quote vs backtick (#688 & #689) - thanks to Vít Ondruch

WARNING: This release fixes a very old bug

  • The bug relates to the use of Expectation#never in combination with other expectations on the same method.

  • Please ensure you fix the relevant deprecation warnings when running against v2.6.1 before upgrading to v2.7.0.

  • Previously, the following test would have passed, but now it will fail with an unexpected invocation error on the foo.bar line.

    foo = mock('foo') foo.stubs(:bar) foo.expects(:bar).never foo.bar

Commits
  • f2e8ab1 [skip ci] Update documentation for v2.7.0
  • 8faedac Bump version to 2.7.0 & prepare for release
  • b2b1773 Merge pull request #679 from freerange/expectation-with-never-cardinality-sho...
  • d9a2254 Fail fast if invocation matches never expectation
  • 727ce52 Merge pull request #689 from freerange/ruby-3.4-backtick
  • 009f348 Ruby v3.4 stacktrace uses single-quote vs backtick
  • 52446eb Add Ruby v3.4.0-preview2 to CI in prep for v3.4.0
  • bc144ae Merge pull request #690 from freerange/workaround-for-jruby-jar-dependencies-...
  • 3127e00 Workaround for JRuby jar-dependencies issue
  • See full diff 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 [mocha](https://github.com/freerange/mocha) from 2.6.1 to 2.7.0. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/freerange/mocha/blob/main/RELEASE.md">mocha's changelog</a>.</em></p> <blockquote> <h2>2.7.0</h2> <h3>External changes</h3> <ul> <li>Fail fast if invocation matches never expectation (<a href="https://redirect.github.com/freerange/mocha/issues/679">#679</a>, <a href="https://redirect.github.com/freerange/mocha/issues/678">#678</a>, <a href="https://redirect.github.com/freerange/mocha/issues/490">#490</a>, <a href="https://redirect.github.com/freerange/mocha/issues/131">#131</a> &amp; <a href="https://redirect.github.com/freerange/mocha/issues/44">#44</a>) - thanks to <a href="https://github.com/ducmtran"><code>@​ducmtran</code></a> &amp; <a href="https://github.com/davidstosik"><code>@​davidstosik</code></a> for reporting</li> </ul> <h3>Internal changes</h3> <ul> <li>Workaround for JRuby jar-dependencies issue (<a href="https://redirect.github.com/freerange/mocha/issues/690">#690</a>)</li> <li>Ruby v3.4 stacktrace uses single-quote vs backtick (<a href="https://redirect.github.com/freerange/mocha/issues/688">#688</a> &amp; <a href="https://redirect.github.com/freerange/mocha/issues/689">#689</a>) - thanks to Vít Ondruch</li> </ul> <p><strong>WARNING: This release fixes a very <em>old</em> bug</strong></p> <ul> <li> <p>The bug relates to the use of <code>Expectation#never</code> in combination with other expectations on the same method.</p> </li> <li> <p>Please ensure you fix the relevant deprecation warnings when running against v2.6.1 <em>before</em> upgrading to v2.7.0.</p> </li> <li> <p>Previously, the following test would have passed, but now it will fail with an unexpected invocation error on the <code>foo.bar</code> line.</p> <p>foo = mock('foo') foo.stubs(:bar) foo.expects(:bar).never foo.bar</p> </li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/freerange/mocha/commit/f2e8ab190d7b69d78194319fdc6b1da7d5030476"><code>f2e8ab1</code></a> [skip ci] Update documentation for v2.7.0</li> <li><a href="https://github.com/freerange/mocha/commit/8faedacc2122a05fa64bced6685548d6e4022fcb"><code>8faedac</code></a> Bump version to 2.7.0 &amp; prepare for release</li> <li><a href="https://github.com/freerange/mocha/commit/b2b17733a5afd63d5b9c6a3d5c2276801f5d1b7d"><code>b2b1773</code></a> Merge pull request <a href="https://redirect.github.com/freerange/mocha/issues/679">#679</a> from freerange/expectation-with-never-cardinality-sho...</li> <li><a href="https://github.com/freerange/mocha/commit/d9a2254217bfa07b527a039b15156b48e332308d"><code>d9a2254</code></a> Fail fast if invocation matches never expectation</li> <li><a href="https://github.com/freerange/mocha/commit/727ce524c44947535db04b6aff1e0e29a1af1498"><code>727ce52</code></a> Merge pull request <a href="https://redirect.github.com/freerange/mocha/issues/689">#689</a> from freerange/ruby-3.4-backtick</li> <li><a href="https://github.com/freerange/mocha/commit/009f3487f961a9727bee2ee201e012ebca1ba4fc"><code>009f348</code></a> Ruby v3.4 stacktrace uses single-quote vs backtick</li> <li><a href="https://github.com/freerange/mocha/commit/52446eb44206af36748b991920b876248ccc4eb2"><code>52446eb</code></a> Add Ruby v3.4.0-preview2 to CI in prep for v3.4.0</li> <li><a href="https://github.com/freerange/mocha/commit/bc144ae75fa38e7ecaee12911ceae998762b0163"><code>bc144ae</code></a> Merge pull request <a href="https://redirect.github.com/freerange/mocha/issues/690">#690</a> from freerange/workaround-for-jruby-jar-dependencies-...</li> <li><a href="https://github.com/freerange/mocha/commit/3127e0013b8e09c327520cac5ad246f210aa8757"><code>3127e00</code></a> Workaround for JRuby jar-dependencies issue</li> <li>See full diff in <a href="https://github.com/freerange/mocha/compare/v2.6.1...v2.7.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=mocha&package-manager=bundler&previous-version=2.6.1&new-version=2.7.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> 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) </details>
Sign in to join this conversation.