-
-
Notifications
You must be signed in to change notification settings - Fork 161
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 Ruby 3.0 compatibility #622
Comments
@solnic Now I think this issue should be addressed to rom-core. |
v-kolesnikov
added a commit
that referenced
this issue
Jan 12, 2021
v-kolesnikov
added a commit
that referenced
this issue
Jan 12, 2021
@v-kolesnikov makes sense, I'm gonna cherry-pick the fix into release-5.2 btw (once you're done with your PR 😃) |
v-kolesnikov
added a commit
that referenced
this issue
Jan 13, 2021
v-kolesnikov
added a commit
that referenced
this issue
Jan 14, 2021
v-kolesnikov
added a commit
that referenced
this issue
Jan 14, 2021
v-kolesnikov
added a commit
that referenced
this issue
Jan 14, 2021
v-kolesnikov
added a commit
that referenced
this issue
Jan 14, 2021
solnic
added a commit
that referenced
this issue
Jan 16, 2021
Fix gateway configuration options [changelog] fixed: "Setup works under MRI 3.0.0 (issue #622 fixed via #623) (@v-kolesnikov)"
solnic
pushed a commit
that referenced
this issue
Jan 16, 2021
@v-kolesnikov I cherry-picked it into release-5.2 and pushed rom 5.2.6 with rom-core bumped to 5.2.5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Tests don't pass on Ruby 3.0
To Reproduce
Expected behavior
Tests passed
Objective
ROM configuration is broken on Ruby 3.0 because of Separation of positional and keyword arguments in Ruby 3.0. It is mostly on rom-core side:
https://github.com/rom-rb/rom/blob/v5.2.5/core/lib/rom/environment.rb#L16-L53
In general all
def method(*args)
should be replaced todef method(*args, **kwargs)
, but this is not so simple in some cases (such above).UPD:
I prepared a small proof to demonstrate the bug:
On Ruby 2.7:
On Ruby 3.0:
The text was updated successfully, but these errors were encountered: