login
Code, Surf, and Play

Introducing: Doozer MVC Rack Middleware

by greg - Saturday, August 15, 2009 12:00:00 AM

I just posted a version patch for the Doozer project I released earlier this week.

Doozer is a lightweight, Rack compatible, MVC framework built with Ruby I've been working on here and there since December 2008.

It borrows a few rails conventions. It comes with a project and file generator to get busy with. It currently features initialization support for ActiveRecord, DataMapper, or Sequel. It also features support for clustering out of the box.

So far, it's turning out to be pretty handy. But before that, how about some background info?

Nice Rack!

Rack is a simple Ruby middleware framework inspired by WSGI. It allows you to define applications, chain them together, and then map them to request paths. It also features adapters for many http servers (mongrel, thin, webrick, etc.).

Doozer is a piece of Rack middleware which globs onto root requests. However, it also allows you to override this behavior if you want to map a specific path outside of Doozer. In addition, you can also define routes and have them processed by Doozer or have them handed off to a sub-application within the Doozer middleware.

Test Coverage

I finally added the foundation for testing the Doozer gem. I would say the test coverage is only 5% as of now. So, I have some more tests to write.

blog comments powered by Disqus