gazay/gon-sinatra — pull request #1 by skade (2012-01-11 15:10:55+00:00)
Title: Rework as a well-behaving sinatra plugin

Hi,

I like the idea and the API of gon-sinatra, but I found the implementation as a Sinatra plugin a bit lacking, especially because it didn't work with some other Sinatra-based frameworks such as Padrino. This pull requests reworks huge parts while still keeping the API. It does:

* Properly uses Sinatras #register/#helpers API to register as a Plugin
- afterwards, it can easily be used in Padrino
* Is threadsafe/race-condition-safe
* Makes Rabl-Integration optional
* Does not auto-register, as it is not unusual to host more then one Sinatra application in a process, of which not all want to use the plugin
* Documents the whole stuff

Best Regards,
Florian