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 to ruby 2.7.1 #1828

Merged
merged 3 commits into from
Sep 10, 2020
Merged

Upgrade to ruby 2.7.1 #1828

merged 3 commits into from
Sep 10, 2020

Conversation

cdccollins
Copy link
Contributor

@cdccollins cdccollins commented Aug 10, 2020

These are the changes required to upgrade to ruby 2.7

There's a script that can be run to change the ruby version across all apps, so I've made the necessary changes for 2.7.1 but left the version as 2.6.6. However, the tests don't pass under ruby 2.6.6.


Visual regression results:
https://government-frontend-pr-1828.surge.sh/gallery.html

⚠️ This application is Continuously Deployed: ⚠️

  • Merged changes are automatically deployed to staging and production.

  • Make sure you follow the guidance for deployments before you merge.

  • Check your branch is being deployed in the Release app, after merging.

@bevanloon bevanloon temporarily deployed to government-f-upgrade-to-ndx9tn August 10, 2020 09:23 Inactive
@cdccollins cdccollins force-pushed the upgrade-to-rails-6 branch 3 times, most recently from f1868cb to 2a1df0b Compare August 13, 2020 09:13
@benthorner
Copy link
Contributor

⚠️ This application is Continuously Deployed: ⚠️

  • Merged changes are automatically deployed to staging and production.

  • Make sure you follow the guidance for deployments before you merge.

  • Check your branch is being deployed in the Release app, after merging.

Base automatically changed from upgrade-to-rails-6 to master August 14, 2020 09:17
@cdccollins cdccollins force-pushed the upgrade-to-ruby-2.7 branch from 02f548c to 2ad4fa6 Compare August 18, 2020 13:40
@Rhian Rhian self-requested a review September 2, 2020 15:56
Copy link

@Rhian Rhian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd suggest the following tiny changes, based on our discussions earlier today:

  1. Revert the version bump in the .ruby-version and Dockerfile for now
  2. Ensure tests pass for 2.7.1 and update commit title to 2.7.1 from 2.7.0
  3. Fix spelling of 'deprecation' in commit title

@cdccollins cdccollins force-pushed the upgrade-to-ruby-2.7 branch 4 times, most recently from 7d7ef6d to 6b70e4e Compare September 8, 2020 15:40
@cdccollins cdccollins changed the title Upgrade to ruby 2.7 Upgrade to ruby 2.7.1 Sep 8, 2020
@cdccollins cdccollins force-pushed the upgrade-to-ruby-2.7 branch 2 times, most recently from 9e90104 to d89943c Compare September 9, 2020 11:26
Splitting the last argument into positional and keyword parameters is deprecated
Ruby 2.7 shows a warning for this obsolete method, which has actually been obsolete
for over 10 years now.

This alternative method encodes `/` as well, so need to substitute those back in.
It's better to have the version of Ruby stored in just one place
@MuriloDalRi MuriloDalRi merged commit e978d50 into master Sep 10, 2020
@MuriloDalRi MuriloDalRi deleted the upgrade-to-ruby-2.7 branch September 10, 2020 10:06
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.

5 participants