Closed plukevdh closed 12 years ago
Hey plukevdh, thanks a lot for the effort! Mongoid support was really a quick hack, I very much appreciate your adapter strategy. The tralse-WTF was just handy during initial development, I don't miss it ;)
Also ALSO: thanks for the pull.
Heyho, Version 0.4.1 fixes that. Even the specs work with 1.8.7 ;)
The
Tabulatr::Finder.find_for_table
method is a complete clusterfuck with no easy means of extending if I wanted to use, say mongomapper, datamapper or any other ORM rather than mongoid/AR.Extracted functionality into adapter classes.
That method still ought to be refactored massively. This is a start and leaves room for extendability.
Also, why the weird conditions (tralse?) in your tests? You do know you can filter tests by line number with rspec right? I can pull that out of this commit if it would help it get merged in, but I don't understand why those are in there.
Also made running Mongo tests over AR easier by looking for an env var rather than a temp file. Can simply run w/
USE_MONGOID=true rspec