Thanavath/komawari — pull request #1 by markrebec (2013-04-29 07:24:34+00:00)
Title: Refactoring and packaging of gem

Hey Than, per our conversation I went through and cleaned up and refactored a bunch of stuff. I didn't really have to make many changes to your existing code, but once I started digging in I found a few of things I wanted to move around and restructure a little bit.

The biggest changes are:
* I moved a lot of methods into modules, and are now including those in the Page, Panel and Stripe objects to share functionality. Those objects also no longer inherit from one another, but inherit behavior from the new modules instead.
* I added a configuration class that allows for overriding settings and easier configuration overall.
* The main API is now on the `Komawari` object itself, and is called with `Komawari.analyze`.
* I added RSpec started adding specs to test everything.

There were a bunch of other things I rearranged, and a few additions. Take a look through the commit history for an idea, and we should go over them tomorrow when you have time.

I also added a readme, license and filled in the gemspec and some of the other stuff required to package up and distribute the gem, and I went ahead and pushed our version 0.0.1 to rubygems and made you an owner so we can start using it in the legacy apps ASAP! Take a look here http://rubygems.org/gems/komawari