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

Fix keyword args deprecations #8447

Merged

Conversation

Matt-Yorkley
Copy link
Contributor

@Matt-Yorkley Matt-Yorkley commented Nov 3, 2021

What? Why?

Fixes some (very frequent) deprecation warnings for keyword arguments syntax:

/home/runner/work/openfoodnetwork/openfoodnetwork/lib/spree/core/delegate_belongs_to.rb:75: 
warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call

/home/runner/work/openfoodnetwork/openfoodnetwork/lib/spree/i18n.rb:20: 
warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call

We still have a few more instances of this warning message, but coming from gem code...

What should we test?

Green build should be enough

Release notes

Updated some deprecated keyword arguments syntax

Changelog Category: Technical changes

@Matt-Yorkley Matt-Yorkley self-assigned this Nov 3, 2021
/home/runner/work/openfoodnetwork/openfoodnetwork/lib/spree/core/delegate_belongs_to.rb:75: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call

/home/runner/work/openfoodnetwork/openfoodnetwork/lib/spree/i18n.rb:20: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
@Matt-Yorkley Matt-Yorkley force-pushed the keyword-args-deprecation branch from 40293a7 to 0d8d4db Compare November 11, 2021 14:16
Copy link
Member

@mkllnk mkllnk left a comment

Choose a reason for hiding this comment

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

Okay. If that warning came up, the code was hit in specs and this should be covered. 👍

@mkllnk mkllnk merged commit c3076f0 into openfoodfoundation:master Nov 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants