Skip to content

Bump shoulda-matchers from 2.7.0 to 4.1.2 #518

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

Conversation

dependabot-preview[bot]
Copy link
Contributor

Bumps shoulda-matchers from 2.7.0 to 4.1.2.

Release notes

Sourced from shoulda-matchers's 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, #1224, #1231)

#1222: #1222
#1224: #1224
#1231: #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)
  • Fix have_db_index so that it can be used against multiple models that are
    connected to different databases. (#1200)

#1176: #1176
#1200: #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_nil to the validate_presence_of matcher. ([834d8d0], #1100)

#1193: #1193
#1211: #1211
[834d8d0]: thoughtbot/shoulda-matchers@834d8d0
#1100: #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,
    [8697b01])
  • Update define_enum_for so that it produces a more helpful message on
    failure. (#1216)
... (truncated)
Changelog

Sourced from shoulda-matchers's changelog.

4.1.2

Bug fixes

  • Fix another regression with validate_presence_of so that it works against an
    attribute that has been decorated with serialize using a custom serializer
    class. (#1236)

#1236: #1236

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, #1224, #1231)

#1222: #1222
#1224: #1224
#1231: #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)
  • Fix have_db_index so that it can be used against multiple models that are
    connected to different databases. (#1200)

#1176: #1176
#1200: #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_nil to the validate_presence_of matcher. ([834d8d0], #1100)

#1193: #1193
#1211: #1211
[834d8d0]: thoughtbot/shoulda-matchers@834d8d0
#1100: #1100

... (truncated)
Commits

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:

  • 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 dependabot-preview bot added the dependencies Pull requests that update a dependency file label Aug 5, 2019
@@ -76,7 +76,7 @@ group :test do
gem 'capybara', '~> 3.16', '>= 3.16.1'
gem "database_cleaner"
gem "launchy"
gem "shoulda-matchers", "~> 2.7.0"
gem "shoulda-matchers", "~> 4.1.2"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.

@dependabot-preview
Copy link
Contributor Author

Superseded by #536.

@dependabot-preview dependabot-preview bot deleted the dependabot/bundler/shoulda-matchers-4.1.2 branch January 16, 2020 04:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant