Skip to content
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

Bump active_interaction from 3.8.3 to 4.0.0 #1948

Merged
merged 2 commits into from
Apr 26, 2021

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Apr 26, 2021

Bumps active_interaction from 3.8.3 to 4.0.0.

Release notes

Sourced from active_interaction's releases.

v4.0.0

Changed

  • drop support for Ruby < 2.5, added support for Ruby 3.0
  • drop support for Rails < 5.0, added support for Rails 6.1
  • #398 - Predicate methods have been removed.
  • #412 - Filters will now treat blank string values as nil (except string and symbol).
  • #392 - Integer parsing now defaults the base to 10.
  • The inputs method now returns an ActiveInteraction::Input instead of a hash. The ActiveInteraction::Input class still responds to all hash methods.
  • The object and record filters now only accept an instance of the correct class type or a subclass of the correct class. They no longer allow you to check for included modules.
  • The interface filter will now look for an ancestor of the value passed based on the name of the interface or the value passed in the from option.
  • The InvalidClassError has been replaced by InvalidNameError.
  • When introspecting an array filter, the inner filter is referenced by :'0' instead of the singularized version of the array filter name.

Added

  • Implicit coercion of types are now supported in filters (e.g. to_str, to_int, etc).
  • The interface and record filters, when used as an inner filter for an array, will have their from/class option set to a singularized version of the array filter name.

Upgrading

Predicate Methods

We've removed the predicate methods that were automatically generated for each input. They would return true if an input was not nil. They can be manually replaced with that same check.

# v3.8
class Example < ActiveInteraction::Base
  string :first_name
validates :first_name,
presence: true,
if: :first_name?
def execute
# ...
end
end
</tr></table>

... (truncated)

Changelog

Sourced from active_interaction's changelog.

[4.0.0][] (2021-01-10)

Changed

  • drop support for Ruby < 2.5, added support for Ruby 3.0
  • drop support for Rails < 5.0, added support for Rails 6.1
  • #398[] - Predicate methods have been removed. (how to upgrade)
  • #412[] - Filters will now treat blank string values as nil (except string and symbol). (how to upgrade)
  • #392[] - Integer parsing now defaults the base to 10. (how to upgrade)
  • The inputs method now returns an ActiveInteraction::Input instead of a hash. The ActiveInteraction::Input class still responds to all hash methods.
  • The object and record filters now only accept an instance of the correct class type or a subclass of the correct class. They no longer allow you to check for included modules. (how to upgrade)
  • The interface filter will now look for an ancestor of the value passed based on the name of the interface or the value passed in the from option.
  • The InvalidClassError has been replaced by InvalidNameError.
  • When introspecting an array filter, the inner filter is referenced by :'0' instead of the singularized version of the array filter name.

Added

  • Implicit coercion of types are now supported in filters (e.g. to_str, to_int, etc).
  • The interface and record filters, when used as an inner filter for an array, will have their from/class option set to a singularized version of the array filter name.

Upgrading

Predicate Methods

We've removed the predicate methods that were automatically generated for each input. They would return true if an input was not nil. They can be manually replaced with that same check.

# v3.8
class Example < ActiveInteraction::Base
  string :first_name
validates :first_name,
presence: true,
if: :first_name?
def execute
# ...
</tr></table>

... (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.

Dependabot will merge this PR once CI passes on it, as requested by @yulgolem.


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 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)

@dependabot dependabot bot added bundler Automatic update of gems dependencies Pull requests that update a dependency file labels Apr 26, 2021
@yulgolem
Copy link
Contributor

@dependabot merge

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Apr 26, 2021

One of your CI runs failed on this pull request, so Dependabot won't merge it.

Dependabot will still automatically merge this pull request if you amend it and your tests pass.

@yulgolem yulgolem force-pushed the dependabot/bundler/active_interaction-4.0.0 branch from b84d385 to 9756b26 Compare April 26, 2021 09:01
@yulgolem yulgolem force-pushed the dependabot/bundler/active_interaction-4.0.0 branch from 9756b26 to c6f0c3f Compare April 26, 2021 09:03
@dependabot dependabot bot merged commit 7957d71 into master Apr 26, 2021
@dependabot dependabot bot deleted the dependabot/bundler/active_interaction-4.0.0 branch April 26, 2021 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bundler Automatic update of gems dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant