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

Move to Ruby 2.7+ #45

Merged
merged 6 commits into from
Oct 25, 2023
Merged

Move to Ruby 2.7+ #45

merged 6 commits into from
Oct 25, 2023

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Oct 7, 2022

Ruby 2.5 and 2.6 are unsupported and providing Ruby 3 compatibility is easier with Ruby 2.7 as the lower bound.

It should be noted that from testing it appears Ruby 3 support is broken. Should the upper bound be lower to < 3 for now?

@adamruzicka
Copy link
Contributor

Should the upper bound be lower to < 3 for now?

I'd say yes.

@ekohl
Copy link
Member Author

ekohl commented Oct 10, 2022

The diffs would be smaller if #43 was merged, but I've updated it now.

Since ruby_parser 2.0.0 it stopped using StringIO and now uses
StringScanner. That means the patch hasn't applied since 2008.

Fixes: eb79570
@adamruzicka
Copy link
Contributor

Could we also drop lib/rubyparser_bug.rb while we're at it?

Fixes: eb79570 ("Initial commit")
Ruby 2.5 and 2.6 are unsupported and providing Ruby 3 compatibility is
easier with Ruby 2.7 as the lower bound.
Ruby 3 has changed keyword argument handling and safemode doesn't deal
with that correctly. That means it's broken in various cases.
@ekohl
Copy link
Member Author

ekohl commented Oct 24, 2023

Done

@adamruzicka adamruzicka merged commit 1ff4a45 into theforeman:master Oct 25, 2023
2 checks passed
@adamruzicka
Copy link
Contributor

Thank you @ekohl !

@ekohl ekohl deleted the drop-ruby-pre-2.7 branch October 25, 2023 11:05
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