-
Notifications
You must be signed in to change notification settings - Fork 0
Upgrade to rails 8 support, add devbox #1
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
Conversation
| fail-fast: false | ||
| matrix: | ||
| # Due to https://github.com/actions/runner/issues/849, we should quote versions | ||
| ruby: ['2.3', '2.4', '2.5', '2.6', '2.7', '3.0', 'truffleruby-head'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't care about these ruby / rails version for our purposes, remove to save build time and resources.
jibarra
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine to me. I'm guessing the real testing will come when we try to bump this gem's version in special sauce.
| appraise "rails-7.1" do | ||
| gem 'railties', '~> 7.1' | ||
| gem 'activesupport', '~> 7.1' | ||
| end | ||
|
|
||
| appraise "rails-7.2" do | ||
| gem 'railties', '~> 7.2' | ||
| gem 'activesupport', '~> 7.2' | ||
| end | ||
|
|
||
| appraise "rails-8.0" do | ||
| gem 'railties', '~> 8.0' | ||
| gem 'activesupport', '~> 8.0' | ||
| end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this used for this gem?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, I hadn't seen this before but it's actually pretty cool.
In order to upgrade our Rails version past 7.0 we need to upgrade the version of Rails that this gem supports. I did not attempt to bring this fork up-to-date with the main because:
We don't need any new functionality from the gem.
The ugprades made since we worked were pretty much all about replacing attr_encyrpted and use of their own cipher key with things built into Rails 7+ and our fork removed all of that stuff as it didn't work with Mongoid anyway. 🤷♂️
Really we should probably just either home roll this entirely ourselves or use a different solution.
This also adds devbox to the gem to make it easy to work against in our environment which pushes it further away from the primary.
Testing Notes:
I was able to verify this still works by setting up MFA locally and logging in with it.