joshbuddy/http_router — pull request #39 by jimmycuadra (2014-02-21 07:23:26+00:00)
Title: Use a consistent list of HTTP verbs for validation and helpers

This patch unifies logic related to the supported HTTP verbs. `HttpRouter::Route::VALID_HTTP_VERBS` is now the canonical list of supported verbs. Two verbs were added: LINK and UNLINK. The route helpers in `HttpRouter` and `HttpRouter::RouteHelper` are now dynamically generated from the constant list of valid HTTP verbs, as they were previously inconsistent with each other as to which verbs had helper methods. GET is still defined normally in both objects, since it's a special case that responds to both GET and HEAD.