tag:blogger.com,1999:blog-6250399713867244328.post6816332680480172427..comments2009-06-01T23:37:07.531-04:00Comments on BehindLogic: My Ruby World: SimpleMapper, the new lightweight and versatile OR...danielhttp://www.blogger.com/profile/01012067250242364513noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-6250399713867244328.post-64971596233554234312009-06-01T23:37:07.531-04:002009-06-01T23:37:07.531-04:00Yeah, this was one of my first gems. I've updated ...Yeah, this was one of my first gems. I've updated a new release on rubyforge (not sure if it worked properly). I also just now imported the project into github: http://github.com/dcparker/simplemapper. Follow the project there if you want, fork and develop further, or clone it and run "rake package" to get a gem out of it.danielhttp://www.blogger.com/profile/01012067250242364513noreply@blogger.comtag:blogger.com,1999:blog-6250399713867244328.post-42816580074214656762009-06-01T23:00:59.240-04:002009-06-01T23:00:59.240-04:00Your gem doesn't list it's dependencies (hash_magi...Your gem doesn't list it's dependencies (hash_magic, formattedstring, etc.)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6250399713867244328.post-8969950173484813902008-05-28T10:51:00.000-04:002008-05-28T10:51:00.000-04:00Since this post I made things better... Here's som...Since this post I made things better... Here's some new information:<BR/><BR/>has, uses, acts_as, and include_plugin are all aliases of the same thing: "load this plugin" - just use the verbage that suits you for the plugins you want.<BR/><BR/>.set_oauth is now run on the adapter instead of the model itself. It only makes sense since you can have multiple adapters in one model and it's really a plugin on the http adapter, not the model.<BR/><BR/>Thanks for the suggestions! Hope you can get it figured out! If you still have any problems, email me at gems@behindlogic.com and I'll help you out and find what I need to update on the web or in the documentation.bloghttp://blog.behindlogic.com/noreply@blogger.comtag:blogger.com,1999:blog-6250399713867244328.post-38525720939687183252008-05-28T02:26:00.000-04:002008-05-28T02:26:00.000-04:00Thanks for the update!...though I still couldn't g...Thanks for the update!<BR/>...though I still couldn't get the example to work.<BR/>Where should the line "Person.set_oauth(self)" be put? A persons controller? Either way, rails keeps complaining that 'set_oauth' is an undefined method.<BR/><BR/>Just some other minor things, you might like to change the APP hash to CONFIG in your example.<BR/>Also, the gem doesn't have any dependency specified (formattedstring & hash_magic). You might like to take a look at that as well.JKnoreply@blogger.comtag:blogger.com,1999:blog-6250399713867244328.post-10047294966129093622008-05-27T05:49:00.000-04:002008-05-27T05:49:00.000-04:00May I ask where is the "simple_model"? It doesn't ...May I ask where is the "simple_model"? It doesn't seem to be under default_plugins or anywhere else in the gem for that matter.JKnoreply@blogger.comtag:blogger.com,1999:blog-6250399713867244328.post-15836732313061532692008-03-11T23:34:00.000-04:002008-03-11T23:34:00.000-04:00Yes, I use DataMapper for everything now. I didn't...Yes, I use DataMapper for everything now. I didn't see the support for other resources coming anytime soon, and I needed this now.<BR/><BR/>I'm adding support in the next version for more than one adapter per model, so you can pull the same objects from a database or from http, and it'll remember the source each object is from.<BR/><BR/>I also like how light it is. Even DataMapper works with attributes and associations builtin. I wanted something light enough I can only include what I need. In one day's work I made an ActiveResource clone complete with xml parsing and OpenAuthorization.<BR/><BR/>I also like the more explicit de-coupling of the adapters and format conversion engines. It's easy to make your own adapter or format conversion.<BR/><BR/>Yes, I like DataMapper, but this fills the niche of Small, Light, and Simple.danielhttp://www.blogger.com/profile/01012067250242364513noreply@blogger.comtag:blogger.com,1999:blog-6250399713867244328.post-53749206616093769162008-03-11T16:30:00.000-04:002008-03-11T16:30:00.000-04:00Have you looked at DataMapper (DM) at all? The pl...Have you looked at DataMapper (DM) at all? The plan is to eventually make it so DM models can access not only databases, but resources too like ActiveResource.<BR/><BR/>If you're interested check out http://datamapper.org and #datamapper on irc.freenode.netdkubbhttp://www.blogger.com/profile/11017835890854426894noreply@blogger.com