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

Mongoid 5.0 support #19

Open
alexeyschepin opened this issue Jun 17, 2015 · 10 comments · May be fixed by #49
Open

Mongoid 5.0 support #19

alexeyschepin opened this issue Jun 17, 2015 · 10 comments · May be fixed by #49

Comments

@alexeyschepin
Copy link

I've just realized new mongoid 5.0.0 showed up. Do you plan for next version support?

P.S. Thanks for the great gem.

@nofxx
Copy link

nofxx commented Jul 19, 2015

Working fine on Mongoid 5, just need to change the gemspec.
If you need as gem (but be aware I've added some features that I needed):
https://github.com/nofxx/mongoid-enum/tree/merge

Note: to run the test suite you must update mongoid-rspec gemspec too (and build it locally).

@thetron
Copy link
Owner

thetron commented Jul 22, 2015

@forme My pleasure! 😄

Definitely planning to include Mongoid 5.0 support. Will try to squash any outstanding bugs and features, and plan for the 1.0.0 release to support Mongoid 5.0

@nofxx
Copy link

nofxx commented Jul 22, 2015

Hello @thetron ! Before all and again, thanks for all yr gems, using as we speak =D

Just to help you out with the Mongoid 5 transition (what I learned so far):
There's problems only if you call Moped directly, apart from that, changes in 5:

#find_and_modify deprecation
'sessions' to 'clients' in mongoid.yml
Mongo driver default log level is set debug, moped was info (noisy)

Thank you again!

PS.: Just a if on spec_helper for the 'sessions' thing and travis will be running 4 & 5 no problems.

@thetron
Copy link
Owner

thetron commented Jul 22, 2015

Thanks @nofxx, glad you're finding them useful 😄. And thanks for the details regarding Mongoid 5, will head into this as soon as I come up with a solution that i'm happy with for #20.

@joel
Copy link

joel commented Sep 19, 2015

Hello @nofxx some interesting news about mongoid 5.0.0 support?

@nofxx
Copy link

nofxx commented Sep 19, 2015

Hello @joel. I needed i18n and mongoid 5, so I pushed a new gem in the while: mongoid-enum-i18n.

https://github.com/nofxx/mongoid-enum

@Bartuz
Copy link

Bartuz commented Sep 30, 2015

For anyone using @nofxx fork - you need to change gem name inside Gemfile
gem 'mongoid-enum-i18n', git: '[email protected]:nofxx/mongoid-enum.git'

update:

NameError - uninitialized constant Mongoid::Enum: with nofxx fork. More things need to be changed.

Here is my fork:
gem 'mongoid-enum', git: '[email protected]:Bartuz/mongoid-enum.git'

I've changed only dependency ~> 5.0

@nofxx
Copy link

nofxx commented Oct 1, 2015

Hello @Bartuz , you don't need the git: part, I've release as a gem because of i18n support which I needed.
It's working ok here btw.

@alexkravets
Copy link

+1 for update dependencies, mongolab upgraded all sendbox databases to 3.0.

@DarthHater
Copy link

@nofxx I'm getting the same Mongoid::Enum issue on your gem as @Bartuz . No issues turned on on your GH so I'm here :) . Nothing is screaming out to me, your gem seems namespaced that way?

@rmm5t rmm5t linked a pull request Feb 26, 2018 that will close this issue
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 a pull request may close this issue.

7 participants