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

Add support for Mongoid 7 #252

Merged
merged 3 commits into from
Aug 15, 2018
Merged

Add support for Mongoid 7 #252

merged 3 commits into from
Aug 15, 2018

Conversation

kailan
Copy link
Collaborator

@kailan kailan commented Aug 14, 2018

This pull request adds support for Mongoid 7 (whilst maintaining backwards compatibility) at the expense of removing mongoid_paranoia due to its lack of support for the latest Mongoid version. Although this may be considered a blocker for releasing a new version, a quick look at the network tab for this repository shows many users forking the repository and performing hacky updates (breaking paranoia support along with other features) to allow their dependent applications to update to Mongoid 7, as paranoia is a feature used by very few users. For users that wish to continue using paranoia with older versions, they are still available. Existing applications using proper versioning in Gemfiles will not be affected.

This pull request also introduces the use of Mongoid::Compatibility mongoid5_or_newer? and mongoid6_or_newer? methods rather than strict version checks, allowing future non-breaking Mongoid releases to be supported without the need for updates.

Tests pass locally on all Mongoid versions from 3-7, although Travis is reporting failures for Mongoid 3 and 4 due to issues with the test environment. Running a Travis build on the current HEAD also fails for the same reasons, so this pull request is not the cause for these failures.

@kailan kailan mentioned this pull request Aug 14, 2018
3 tasks
@dblock
Copy link
Collaborator

dblock commented Aug 15, 2018

This looks good to me. Down with paranoia. We do need to fix the build, whether the failures are new in the test environment or not, before we get this merged.

@kailan
Copy link
Collaborator Author

kailan commented Aug 15, 2018 via email

@kailan
Copy link
Collaborator Author

kailan commented Aug 15, 2018

@dblock Tests passing on all versions 🎉

@@ -1,5 +1,6 @@
## 5.3.4 (Next)
## 6.0.0 (Next)
Copy link
Collaborator

Choose a reason for hiding this comment

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

You also want to increment version.rb.

@dblock
Copy link
Collaborator

dblock commented Aug 15, 2018

I'll take a closer look shortly. What was the issue?

@dblock
Copy link
Collaborator

dblock commented Aug 15, 2018

Oh the ...purge thing again, got it...

@dblock dblock merged commit 068087b into mongoid:master Aug 15, 2018
@dblock
Copy link
Collaborator

dblock commented Aug 15, 2018

I just merged this, great work.

Want to help co-maintain the gem @kailan? You could do the next release. Give me your rubygems email if so.

@kailan
Copy link
Collaborator Author

kailan commented Aug 15, 2018

I would love to @dblock 👍

kailan@kmp.pw

@kailan kailan deleted the mongoid-7 branch August 15, 2018 18:51
@dblock
Copy link
Collaborator

dblock commented Aug 16, 2018

Great, accept the invite at https://github.com/mongoid/mongoid-slug/invitations. Added you to Rubygems.

Opened #253 for next release, thanks!

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.

2 participants