mongoid-enum icon indicating copy to clipboard operation
mongoid-enum copied to clipboard

Mongoid 5.0 support

Open alexeyschepin opened this issue 9 years ago • 10 comments

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.

alexeyschepin avatar Jun 17 '15 14:06 alexeyschepin

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).

nofxx avatar Jul 19 '15 08:07 nofxx

@forme My pleasure! :smile:

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

thetron avatar Jul 22 '15 06:07 thetron

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.

nofxx avatar Jul 22 '15 07:07 nofxx

Thanks @nofxx, glad you're finding them useful :smile:. 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.

thetron avatar Jul 22 '15 09:07 thetron

Hello @nofxx some interesting news about mongoid 5.0.0 support?

joel avatar Sep 19 '15 12:09 joel

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

nofxx avatar Sep 19 '15 22:09 nofxx

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

Bartuz avatar Sep 30 '15 21:09 Bartuz

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.

nofxx avatar Oct 01 '15 06:10 nofxx

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

alexkravets avatar Oct 14 '15 04:10 alexkravets

@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?

DarthHater avatar Feb 21 '17 03:02 DarthHater