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

Ruby 3 and backwards compatibility #28

Open
cgoettel opened this issue Dec 2, 2021 · 2 comments
Open

Ruby 3 and backwards compatibility #28

cgoettel opened this issue Dec 2, 2021 · 2 comments

Comments

@cgoettel
Copy link
Contributor

cgoettel commented Dec 2, 2021

@apalmblad I'm starting a new issue so we can track everything here.

In the meantime, I think it's important if we decide if we even need to maintain backwards compatibility. Ruby 1.9 has been obsolete since February 23, 2015. Ruby 2.2 has been obsolete since April 1, 2018. I think we should only worry about being compatible with Ruby 2.3 and on. Anyone who needs to use a previous version of Ruby can just use ruby-shadow 2.5.0. Yes?

That said, Ruby 3 is backwards compatible with Ruby 2, but Ruby 2 is not backwards compatible with Ruby 1.9. I'm looking through the codebase and updating it for Ruby 3 compatibility. You can assign this issue to me, if you'd like.

@cgoettel
Copy link
Contributor Author

cgoettel commented Dec 2, 2021

ruby extconf.rb works on Ruby 3.0.0. Not a full test, but a good first step.

@apalmblad
Copy link
Owner

Yes, I think it's reasonable to drop support for obsolete rubies. Per https://www.ruby-lang.org/en/downloads/, seems like even the 2.5 series is deprecated.

Thank for taking on some work to improve ruby 3 compatibility - even dropping the def of RUBY19 and the initial breaking extconf.rb checks would be nice.

I was able to build in ruby 3 on OS X.

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

No branches or pull requests

2 participants