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

Upgrade Ruby version #3139

Closed
briri opened this issue Apr 4, 2022 · 5 comments
Closed

Upgrade Ruby version #3139

briri opened this issue Apr 4, 2022 · 5 comments
Labels
effort-large 1-3 days of dev time effort-medium 1/2 to 1 day of dev time infrastructure rails6

Comments

@briri
Copy link
Contributor

briri commented Apr 4, 2022

Upgrade Ruby from 2.6.3 to 2.7 or 3.x

See the release notes at: https://www.ruby-lang.org/en/

Related to #3103

@briri briri added infrastructure effort-large 1-3 days of dev time effort-medium 1/2 to 1 day of dev time labels Apr 4, 2022
@briri
Copy link
Contributor Author

briri commented Apr 4, 2022

The big question here is whether or not we should consider upgrading to 3.0 or 3.1.

@benjaminfaure
Copy link
Contributor

Seems like Rails 5 is not compatible with Ruby 2.7 according to these sources :
https://www.fastruby.io/blog/ruby/rails/versions/compatibility-table.html
rails/rails#38426

The official guide says 2.2.2 or newer : https://guides.rubyonrails.org/upgrading_ruby_on_rails.html

I tried switching from Ruby 2.6 to 2.7 on the roadmap code, basic features seems to be working fine, but I guess we can expect some side effects

@briri
Copy link
Contributor Author

briri commented Apr 12, 2022

I just encountered a Brakeman warning that Ruby 2.7 EOL if June 2022

@benjaminfaure
Copy link
Contributor

According to the Ruby website, 2.7 is still maintained (2.7.6 was released in April of this year)
https://www.ruby-lang.org/en/downloads/branches/
https://www.ruby-lang.org/en/news/2022/04/12/ruby-2-7-6-released/

Rails 5.2 is not compatible with Ruby 2.7 but Rails 6 is : rails/rails#38426

I suggest that we update to Rails 6 (see #3103) before upgrading to Ruby 3 as Rails 6.1 is compatible.

Plus we wouldn't have to upgrade Ruby when moving to Rails 7

@briri
Copy link
Contributor Author

briri commented Oct 24, 2022

Upgraded to 2.7. Will open a new ticket for 3.0

@briri briri closed this as completed Oct 24, 2022
@briri briri mentioned this issue Oct 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort-large 1-3 days of dev time effort-medium 1/2 to 1 day of dev time infrastructure rails6
Projects
None yet
Development

No branches or pull requests

3 participants