mongoid-enum
mongoid-enum copied to clipboard
Mongoid 5.0 support
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.
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).
@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
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.
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.
Hello @nofxx some interesting news about mongoid 5.0.0 support?
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
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
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.
+1 for update dependencies, mongolab upgraded all sendbox databases to 3.0.
@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?