Created by: dependabot-preview[bot]
Bumps shoulda-matchers from 4.0.1 to 4.1.0.
Changelog
Sourced from shoulda-matchers's changelog.
4.1.0
Bug fixes
- Fix
validate_uniqueness_ofso that it works when a scope is defined as a string instead of a symbol on the model. (#1176)- Fix
have_db_indexso that it can be used against multiple models that are connected to different databases. (#1200)Features
- Add support for Rails 6. No new Rails 6 features are supported, but only existing features that broke with the upgrade. (#1193)
- Add support for expression indexes (Rails 5, Postgres only) to
have_db_index. (#1211)- Add
allow_nilto thevalidate_presence_ofmatcher. ([834d8d0], #1100)#1193: #1193 #1211: #1211 [834d8d0]: https://github.com/thoughtbot/shoulda-matchers/commit/834d8d0356573b9f47e63a1b910cfa8f3d815e51 #1100: #1100
Improvements
- Update
validate_presence_ofso that if it is being used against an association which isrequired: trueoroptional: false, or it is not configured as such but ActiveRecord defaultsbelong_toassociations tooptional: false, and the matcher fails, the developer is reminded in the failure message that thebelong_tomatcher can be used instead. (#1214, [8697b01])- Update
define_enum_forso that it produces a more helpful message on failure. (#1216)#1214: #1214 [8697b01]: https://github.com/thoughtbot/shoulda-matchers/commit/8697b015ed88fdbbbcf5d31bf98670f17c3df9e1 #1216: #1216
Commits
-
71deebdBump version to 4.1.0 -
3cecf76Fix gemspec -
d77cba3Update Rubocop across Appraisals -
88ebbffUpdate gemspec -
da45b3dUpdate README -
3402e23Update README -
a3c5238Update NEWS -
47f47d0Improve failure message for enum matcher -
47e2195Make match_against matcher more accurate -
5829f88Tweak Rubocop configuration - 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 mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot ignore this [patch|minor|major] versionwill close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependencywill 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 labelswill set the current labels as the default for future PRs for this repo and language -
@dependabot use these reviewerswill set the current reviewers as the default for future PRs for this repo and language -
@dependabot use these assigneeswill set the current assignees as the default for future PRs for this repo and language -
@dependabot use this milestonewill set the current milestone as the default for future PRs for this repo and language -
@dependabot badge mewill 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:
- 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.