-
Notifications
You must be signed in to change notification settings - Fork 152
Drop Rails 4.2 support #300
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
jobs: | ||
run-tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
orm: [active_record, mongoid] | ||
rails: ['4.2', '5.0', '5.1', '5.2', '6.0'] |
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.
Dropping 4.2 here and from conditionals is the major change here
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.
LOVE IT!
One small thing I think we can clean up:
Since we aren't using Mongoid.4 anymore (since that was for Rails 4.2), we can get rid of the conditionals in these two files.
https://github.com/devise-security/devise-security/blob/f2d3fe8a4a2a28bc6764b6c3b437e3887cb4ebe0/test/dummy/config/mongoid.yml
https://github.com/devise-security/devise-security/blob/f2d3fe8a4a2a28bc6764b6c3b437e3887cb4ebe0/test/support/mongoid.yml
- Drops conditional handling of Rails versions < 5.0 Fixes devise-security#202
c510639
to
193cffb
Compare
Co-authored-by: Dillon Welch <[email protected]>
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.
LGTM, not sure if you want to coordinate anything else before merging so I'll let you handle that.
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.
Late review, but 👍
end | ||
|
||
group :mongoid do | ||
gem 'mongoid' | ||
gem 'mongoid', '~> 6.0' |
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.
Curious about why we need to specify a version here
<%= Mongoid::VERSION.to_i > 4 ? 'clients' : 'sessions' %>: | ||
clients: |
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 why we specify mongoid
to be version 6
in our base Gemfil
?
Fixes #202