Skip to content

Conversation

@swalke16
Copy link

@swalke16 swalke16 commented Jun 17, 2025

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.

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']
Copy link
Author

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.

Copy link

@jibarra jibarra left a 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.

Comment on lines +41 to +54
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
Copy link

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?

Copy link
Author

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.

@swalke16 swalke16 merged commit 3992268 into master Jun 20, 2025
4 checks passed
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.

3 participants