pda/irc_machine — pull request #8 by richoH (2012-04-20 01:00:13+00:00)
Title: Epic refactor

Refactored the hell out of the plugin engine

Controllers are now not a thing, they're just plugins that implement the REST API. Likewise Plugins are essentially just controllers that don't expose any routes.

Routes are advertised at initialize time by plugins, which are created at boot time and stashed, rather than creating a new instance for each REST request.

Most of the metaprogramming associated with massaging a string like "SomeObject#itsmethod" is now gone in favour of calling a lambda advertised by the plugin itself.