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 3 support #1

Open
pencilcheck opened this issue Jun 9, 2013 · 4 comments
Open

Mongoid 3 support #1

pencilcheck opened this issue Jun 9, 2013 · 4 comments

Comments

@pencilcheck
Copy link

With the drastic change of syntax and api in the newer version, this library would not work out of box.

@monfresh
Copy link

I just found this gem and would like to use it with Mongoid 3.1.4. Will Mongoid 3 support be available anytime soon? If not, are there any other projects similar to this one?

@sporkd
Copy link
Owner

sporkd commented Aug 26, 2013

Hi @monfresh. Unfortunately, I have not had time to keep up with the latest changes to Mongoid and I'm guessing things are broken due to changes in the Timestamp modules. However, the logic should all still be good and it woud just need to be fixed to work with newest mongoid. My advice would be to pull master and see how close it is. And I'd happily accept any pull requests to bring it up to date. Thanks!

@stevenkolstad
Copy link

Is this gem being actively maintained? It looks like it could be on the verge of abandonment.

I went to implement the example usage and got this incompatibility. Then it dawned on me that the library must be out-of-date. It looks like the last update was two years ago.

Bundler could not find compatible versions for gem "mongoid":
  In Gemfile:
    mongoid-metastamp (>= 0) ruby depends on
      mongoid (~> 2.1) ruby

    mongoid (4.0.0.beta1)

Any chance of changing the dependency? Thanks!

@sporkd
Copy link
Owner

sporkd commented Apr 6, 2014

@stevenkolstad Just changing the dependency wont fix the larger issue of the the library depending on and API that no longer exists in mongoid. Newer versions of Mongoid no longer have this interface https://github.com/sporkd/mongoid-metastamp/blob/master/lib/mongoid/metastamp/time.rb#L6-L7

If you want to figure out where this functionality now exists in mongoid and submit a pull request, I'd be happy to make you a maintainer. I'd love to do it, but my schedule does not currently permit.

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

No branches or pull requests

4 participants