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

Add Ruby 3.0.0 to supported versions #232

Merged
merged 2 commits into from
Feb 27, 2021
Merged

Add Ruby 3.0.0 to supported versions #232

merged 2 commits into from
Feb 27, 2021

Conversation

peteryates
Copy link
Member

@peteryates peteryates commented Jan 6, 2021

This upgrade drops support for:

  • Rails 5.2.4
  • Ruby 2.5.8

The gem will probably run just fine on them for the foreseeable future but they will no longer for part of the testing matrix and won't be officially supported.


There are two things holding this back:

Rubocop

It appears that govuk-rubocop hasn't caught up yet.

$ make ruby-lint
bundle exec rubocop lib spec guide/lib util
Error: RuboCop found unknown Ruby version 3.0 in `.ruby-version`.
Supported versions: 2.4, 2.5, 2.6, 2.7, 2.8
make: *** [Makefile:11: ruby-lint] Error 2

We'll wait for this for a time but can switch to vanilla Rubocop if it becomes a blocker.

Rails 5.2.4

It appears that Rails 5.2.4 isn't compatible with Ruby 3.0.0. This is probably due to the separation of positional and keyword arguments due to seeing this a lot in the build log:

ArgumentError:
  wrong number of arguments (given 3, expected 1..2)

It may be the case that it's also dropped to unofficially supported status.

Feedback welcome.

@peteryates peteryates marked this pull request as draft January 6, 2021 09:16
Ruby 2.5.8 has been dropped from the officially-supported versions list
and will no longer make up part of the testing matrix, but it will
probably continue to work and be unofficially supported.
Rails 5.2.4 doesn't work with Ruby 3.0.0. Rails 5.2.0 was released
nearly three years ago and most projects using this library are on later
versions.

This is only dropping *official* support, it's likely that the gem will
continue to work for the time being but Rails 5.2.4 will no longer be
tested as part of the build.
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.

1 participant