ruby - Can DataMapper still be used for Rails? -


i'm looking use more separated system models in ruby on rails project. looked solution datamapper. however, see none of repositories have been updated in last year, , when installed in rails 4 project, has gem version dependency conflicts newer gems. searching doesn't turn content on using rails 4.

what state now? should use it, or else?

as uses datamapper every day @ job, recommend sticking activerecord unless connecting legacy database don't control schema of (but consider sequel if case). beyond fact eol (as maintainer stated on mailing list), many gems need model persistence support activerecord it's rare support datamapper, expect implement support yourself. in experience if find bug know have fix myself due low usage / abandonment of datamapper.

as danmanstx mentioned, maintainers focused on ruby object mapper (rom) now, used dm2. although pieces of rom feature-complete, still doesn't have release date afaik (see roadmap).

if @ release-1.2 branch of relevant dm gems, can see minor updates every once in while. however, there backlog of hundreds of issues across datamapper gems, many on 2 years old won't addressed because there aren't enough datamapper maintainers (and don't blame them wanting work on new!).

you're right latest rubygems versions of dm gems having versioning conflicts. if want use latest stable version of dm, i'd advise using release-1.2 branch of dm gems need, e.g.

gem 'dm-core', git: 'git://github.com/datamapper/dm-core.git', branch: 'release-1.2' 

Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -