DefactoSoftware / Hours

Time registration that doesn't suck
https://happyhours.io
MIT License
1.04k stars 269 forks source link

Bump shoulda-matchers from 2.7.0 to 4.1.1 #516

Closed dependabot-preview[bot] closed 5 years ago

dependabot-preview[bot] commented 5 years ago

Bumps shoulda-matchers from 2.7.0 to 4.1.1.

Release notes *Sourced from [shoulda-matchers's releases](https://github.com/thoughtbot/shoulda-matchers/releases).* > ## v4.1.1 > ### Bug fixes > > * Patch some backward-incompatible changes to `validate_presence_of` that were > made in the last version. As of 4.1.0 the presence matcher now checks to > ensure that empty string will cause the record to be invalid (in addition to > nil, which it was already checking against). However, this check was being > performed even if the attribute or column the presence matcher is being run > against didn't support being set to an empty string. This releases fixes this. > ([#1222](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/issues/1222), [#1224](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/issues/1224), [#1231](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/issues/1231)) > > [#1222](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/issues/1222): [#1222](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/pull/1222) > [#1224](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/issues/1224): [#1224](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/pull/1224) > [#1231](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/issues/1231): [#1231](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/pull/1231) > > ## v4.1.0 > ### Bug fixes > > * Fix `validate_uniqueness_of` so that it works when a scope is defined as a > string instead of a symbol on the model. ([#1176](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/issues/1176)) > * Fix `have_db_index` so that it can be used against multiple models that are > connected to different databases. ([#1200](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/issues/1200)) > > [#1176](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/issues/1176): [#1176](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/pull/1176) > [#1200](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/issues/1200): [#1200](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/pull/1200) > > ### Features > > * Add support for Rails 6. No new Rails 6 features are supported, but only > existing features that broke with the upgrade. ([#1193](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/issues/1193)) > * Add support for expression indexes (Rails 5, Postgres only) to > `have_db_index`. ([#1211](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/issues/1211)) > * Add `allow_nil` to the `validate_presence_of` matcher. ([834d8d0], [#1100](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/issues/1100)) > > [#1193](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/issues/1193): [#1193](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/pull/1193) > [#1211](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/issues/1211): [#1211](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/pull/1211) > [834d8d0]: https://github.com/thoughtbot/shoulda-matchers/commit/834d8d0356573b9f47e63a1b910cfa8f3d815e51 > [#1100](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/issues/1100): [#1100](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/pull/1100) > > ### Improvements > > * Update `validate_presence_of` so that if it is being used against an > association which is `required: true` or `optional: false`, or it is not > configured as such but ActiveRecord defaults `belong_to` associations to > `optional: false`, and the matcher fails, the developer is reminded in the > failure message that the `belong_to` matcher can be used instead. ([#1214](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/issues/1214), > [8697b01]) > * Update `define_enum_for` so that it produces a more helpful message on > failure. ([#1216](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/issues/1216)) > > ... (truncated)
Changelog *Sourced from [shoulda-matchers's changelog](https://github.com/thoughtbot/shoulda-matchers/blob/master/NEWS.md).* > # 4.1.1 > > ### Bug fixes > > * Patch some backward-incompatible changes to `validate_presence_of` that were > made in the last version. As of 4.1.0 the presence matcher now checks to > ensure that empty string will cause the record to be invalid (in addition to > nil, which it was already checking against). However, this check was being > performed even if the attribute or column the presence matcher is being run > against didn't support being set to an empty string. This releases fixes this. > ([#1222](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/issues/1222), [#1224](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/issues/1224), [#1231](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/issues/1231)) > > [#1222](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/issues/1222): [#1222](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/pull/1222) > [#1224](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/issues/1224): [#1224](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/pull/1224) > [#1231](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/issues/1231): [#1231](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/pull/1231) > > # 4.1.0 > > ### Bug fixes > > * Fix `validate_uniqueness_of` so that it works when a scope is defined as a > string instead of a symbol on the model. ([#1176](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/issues/1176)) > * Fix `have_db_index` so that it can be used against multiple models that are > connected to different databases. ([#1200](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/issues/1200)) > > [#1176](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/issues/1176): [#1176](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/pull/1176) > [#1200](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/issues/1200): [#1200](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/pull/1200) > > ### Features > > * Add support for Rails 6. No new Rails 6 features are supported, but only > existing features that broke with the upgrade. ([#1193](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/issues/1193)) > * Add support for expression indexes (Rails 5, Postgres only) to > `have_db_index`. ([#1211](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/issues/1211)) > * Add `allow_nil` to the `validate_presence_of` matcher. ([834d8d0], [#1100](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/issues/1100)) > > [#1193](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/issues/1193): [#1193](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/pull/1193) > [#1211](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/issues/1211): [#1211](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/pull/1211) > [834d8d0]: https://github.com/thoughtbot/shoulda-matchers/commit/834d8d0356573b9f47e63a1b910cfa8f3d815e51 > [#1100](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/issues/1100): [#1100](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/pull/1100) > > ### Improvements > > * Update `validate_presence_of` so that if it is being used against an > association which is `required: true` or `optional: false`, or it is not > configured as such but ActiveRecord defaults `belong_to` associations to > `optional: false`, and the matcher fails, the developer is reminded in the > failure message that the `belong_to` matcher can be used instead. ([#1214](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/issues/1214), > [8697b01]) > * Update `define_enum_for` so that it produces a more helpful message on > ... (truncated)
Commits - [`e193d1b`](https://github.com/thoughtbot/shoulda-matchers/commit/e193d1b7b6e6b6cdd15ced27b5647140864e1dee) Bump version to 4.1.1 - [`89dc52c`](https://github.com/thoughtbot/shoulda-matchers/commit/89dc52c6636775d0fb0c83c4ffd9d667438c6d51) Update maintaining - [`fb6ea7a`](https://github.com/thoughtbot/shoulda-matchers/commit/fb6ea7afd4bf625edd33603c11ef4af90e914006) Fix tests for array columns - [`b202f2c`](https://github.com/thoughtbot/shoulda-matchers/commit/b202f2cb27158b18c4bbd87386b60c8300cb5f19) Update NEWS - [`b3025dc`](https://github.com/thoughtbot/shoulda-matchers/commit/b3025dc9a52958a86406183472272ef2b8064085) Fix presence matcher against an AM record - [`6ff9f17`](https://github.com/thoughtbot/shoulda-matchers/commit/6ff9f175038911a7d6578b6d94b2c953ca73eebe) Slightly refactor presence matcher - [`ba9dbff`](https://github.com/thoughtbot/shoulda-matchers/commit/ba9dbff3440ba7979a4e2ff5b6ee94d998bf00e3) Fix negative version of presence matcher - [`34020fb`](https://github.com/thoughtbot/shoulda-matchers/commit/34020fbf911252109d481dce2b197604bab9d5dd) Turn off more Rubocop checks - [`a2231f8`](https://github.com/thoughtbot/shoulda-matchers/commit/a2231f89dc2f120b6b1a93bb102e049d20aedeaa) validate_presence_of(:active_storage_field) throws exception ([#1224](https://github-redirect.dependabot.com/thoughtbot/shoulda-matchers/issues/1224)) - [`e8ba529`](https://github.com/thoughtbot/shoulda-matchers/commit/e8ba5295c4325672dd6e28624c63b4cfee01ba97) Bump yard from 0.9.12 to 0.9.20 - Additional commits viewable in [compare view](https://github.com/thoughtbot/shoulda-matchers/compare/v2.7.0...v4.1.1)


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.


Note: This repo was added to Dependabot recently, so you'll receive a maximum of 5 PRs for your first few update runs. Once an update run creates fewer than 5 PRs we'll remove that limit.

You can always request more updates by clicking Bump now in your Dependabot dashboard.

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 ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it). To ignore the version in this PR you can just close it - `@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) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Automerge options (never/patch/minor, and dev/runtime dependencies) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired) Finally, you can contact us by mentioning @dependabot.
dependabot-preview[bot] commented 5 years ago

Superseded by #518.