roadmap icon indicating copy to clipboard operation
roadmap copied to clipboard

Upgrade Ruby version

Open briri opened this issue 3 years ago • 4 comments

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 avatar Apr 04 '22 15:04 briri

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

briri avatar Apr 04 '22 15:04 briri

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 https://github.com/rails/rails/issues/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

benjaminfaure avatar Apr 06 '22 06:04 benjaminfaure

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

briri avatar Apr 12 '22 15:04 briri

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 : https://github.com/rails/rails/issues/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

benjaminfaure avatar May 06 '22 12:05 benjaminfaure

Upgraded to 2.7. Will open a new ticket for 3.0

briri avatar Oct 24 '22 17:10 briri