thetron / mongoid-enum

Sweet enum sugar for your Mongoid documents
MIT License
117 stars 166 forks source link

Mongoid 5.0 support #19

Open alexeyschepin opened 9 years ago

alexeyschepin commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

@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

nofxx commented 9 years ago

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 commented 9 years ago

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.

joel commented 9 years ago

Hello @nofxx some interesting news about mongoid 5.0.0 support?

nofxx commented 9 years ago

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 commented 8 years ago

For anyone using @nofxx fork - you need to change gem name inside Gemfile gem 'mongoid-enum-i18n', git: 'git@github.com: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: 'git@github.com:Bartuz/mongoid-enum.git'

I've changed only dependency ~> 5.0

nofxx commented 8 years ago

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 commented 8 years ago

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

DarthHater commented 7 years ago

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