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 to 3.1.2 #2545

Merged
merged 5 commits into from
Oct 11, 2022
Merged

Upgrade Ruby to 3.1.2 #2545

merged 5 commits into from
Oct 11, 2022

Conversation

govuk-ci
Copy link
Contributor

@govuk-ci govuk-ci commented Sep 9, 2022

Upgrades Ruby to 3.1.2. See commits for more details.
This PR should be tested before merge, as per https://docs.publishing.service.gov.uk/manual/ruby.html#update-ruby-version-in-the-relevant-repos.

Trello card

@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-2545 September 9, 2022 13:31 Inactive
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-2545 September 9, 2022 14:49 Inactive
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-2545 October 5, 2022 14:33 Inactive
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-2545 October 5, 2022 15:04 Inactive
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-2545 October 7, 2022 13:31 Inactive
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-2545 October 7, 2022 13:32 Inactive
govuk-ci and others added 5 commits October 7, 2022 14:39
To resolve the following deprecation notice following Ruby 3.1 upgrade:

Calling DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has
been deprecated. Please call DidYouMean.correct_error(error_name,
spell_checker)' instead.
after the upgrade to ruby 3.1.2
Those are mostly Style/HashSyntax: Omit the hash value.
(https://rubystyle.guide#hash-literals)
It's used by TravelAdviceAtomFeed test and otherwise fails with:

/root/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/zeitwerk-2.6.0/lib/zeitwerk/kernel.rb:35:in `require': cannot load such file -- rss (LoadError)
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-2545 October 7, 2022 13:40 Inactive
@AgaDufrat AgaDufrat merged commit f357105 into main Oct 11, 2022
@AgaDufrat AgaDufrat deleted the ruby-3-1-2 branch October 11, 2022 11:02
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