seancribbs/webmachine-ruby — pull request #23 by 1000jobboersen (2012-01-10 12:15:23+00:00)
Title: Unify adapter interfaces

This has a few minor changes, but simplifies working with the Rack adapter. All Adapters are now classes, with the following interface: `initialize(configuration, dispatcher)`, `#run`, and `.run(configuration, dispatcher)`. For the Rack adapter, run uses Rack::Server to serve requests.

The only API change is on Application, where #adapter now returns an instance of the adapter instead of the class. So for development, testing, etc. you can keep using `MyApp.run` (even with the Rack adapter), and then when running from config.ru you can do `run MyApp.adapter`.