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: Upgrade for compatibility with Ruby 3 #45

Merged
merged 2 commits into from
Jun 17, 2024
Merged

Conversation

nickevansuk
Copy link
Contributor

@nickevansuk nickevansuk commented Jun 17, 2024

Ruby 3 requires a different way to handle keyword arguments within blocks.

This change is backwards compatible with Ruby 2.6. By using a single block parameter and then extracting the values within the block, this approach will work in both Ruby 2.6 and Ruby 3.

@nickevansuk nickevansuk changed the title fix: Update in preparation for Ruby 3 fix: Upgrade for compatibility with Ruby 3 Jun 17, 2024
@nickevansuk nickevansuk merged commit ab6bc64 into master Jun 17, 2024
3 checks passed
@nickevansuk nickevansuk deleted the fix/ruby-3 branch June 17, 2024 15:37
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.

2 participants