simple_enum icon indicating copy to clipboard operation
simple_enum copied to clipboard

Upgrade mongoid 6 and rails 5

Open ritxi opened this issue 8 years ago • 8 comments

Keep same api but make it compatible with rails 5.x and mongoid 6.x

  • Basically I've just removed alias_method_chain
  • Remove some deprecation warnings

ritxi avatar Aug 03 '17 08:08 ritxi

There are still quite a few projects on Rails 4, I would suggest not breaking compatibility with them.

aledalgrande avatar Aug 05 '17 06:08 aledalgrande

I would suggest a 1.7 version with old simple_enum api, rails 5 and mongoid 6 compatibility. In my case I have a big project working with simple enum old api and I'm trying to upgrade to rails 5.

ritxi avatar Aug 05 '17 12:08 ritxi

Hey @ritxi, sorry for the late response, how can I help you with the Rails 5 related migrate and mongoid 6?

lwe avatar Nov 16 '17 20:11 lwe

TBH, according to semver it's very tricky to actually be able to provide a 1.x release that is breaking backwards compatibility.

lwe avatar Nov 16 '17 20:11 lwe

Hi @lwe,

I just published this pull request if it would be helpful for somebody, I'm using it in production with success. I suggested you to do 1.7 release just to let people in the same situation as me to be able to upgrade newer rails/mongo versions without the need to upgrade to the new api.

ritxi avatar Nov 16 '17 22:11 ritxi

Are the changes backwards compatible towards Rails 4 and Mongodb 5?

lwe avatar Nov 19 '17 11:11 lwe

Hey @ritxi, I've seen that you did a recent change here. Anything I can do and anything required, that this can be applied to master - or is it just a backport?

lwe avatar Dec 09 '19 15:12 lwe

Hi, this is just a backport to use old Api. I recently updated the gemspec to support latest rails version.

ritxi avatar Dec 09 '19 16:12 ritxi