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 2 3 rails 5 2 #210

Closed
wants to merge 5 commits into from
Closed

Conversation

leandroradusky
Copy link
Contributor

Upgrades the project to Ruby 2.7 & Rails 5.2.

It was developed on top of the previous pull request (import resmap collection) and it should be merged properly after the other PR is approved.

Upgrades:

  • Ruby 2.3 -> 2.7
  • Rails 5.0 -> 5.2
  • Node 8 -> 12

Some gem versions have to be fixed and just a few tweaks were needed, building pipeline are working OK.

@leandroradusky leandroradusky linked an issue Nov 30, 2023 that may be closed by this pull request
Copy link
Contributor

@ysbaddaden ysbaddaden left a comment

Choose a reason for hiding this comment

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

This is the kind of upgrade that I like. Upgrade, nothing much breaks, and you can cleanup legacy fixes 🥳

Dockerfile Outdated
Comment on lines 6 to 9
# Update to a newer Debian version if needed
# The below lines are for Debian Stretch, consider updating to Buster or Bullseye
RUN echo 'deb http://deb.debian.org/debian/ buster main\n\
deb http://security.debian.org/debian-security buster/updates main' > /etc/apt/sources.list
Copy link
Contributor

Choose a reason for hiding this comment

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

We can remove these: debian:buster is maintained 🥳

Suggested change
# Update to a newer Debian version if needed
# The below lines are for Debian Stretch, consider updating to Buster or Bullseye
RUN echo 'deb http://deb.debian.org/debian/ buster main\n\
deb http://security.debian.org/debian-security buster/updates main' > /etc/apt/sources.list

Copy link
Contributor

Choose a reason for hiding this comment

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

You might even be able to remove the let's encrypt CA fix above (maybe).

Copy link
Contributor

Choose a reason for hiding this comment

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

The above applies to Dockerfile-dev also :)

Gemfile Outdated
@@ -1,12 +1,12 @@
source 'https://rubygems.org'

# frameworks
gem 'rails', '~> 5.0.0', '>= 5.0.0.1'
gem 'rails', '~> 5.2.Z', '>= 5.2.8.1'
Copy link
Contributor

Choose a reason for hiding this comment

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

This is enough:

Suggested change
gem 'rails', '~> 5.2.Z', '>= 5.2.8.1'
gem 'rails', '~> 5.2.8'

This allows to select any 5.2.x version starting from 5.2.8 and above.

Copy link
Contributor

@ysbaddaden ysbaddaden left a comment

Choose a reason for hiding this comment

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

LGTM!

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.

Update to Ruby 2.7 and Rails 5.2
2 participants