Skip to content


Handle PATCH method. #8

merged 1 commit into from

3 participants


No description provided.


@rkh Bump. I need this, too.

@rkh rkh merged commit 3b1064e into rkh:master

I am not 100% sure what the status on #4 is. I have a couple of times handed over maintenance to various ppl, but they all vanished again. :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 6, 2012
  1. @neglectedvalue

    Handle PATCH method.

    neglectedvalue committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/yard/sinatra.rb
3 lib/yard/sinatra.rb
@@ -100,6 +100,7 @@ class RouteHandler < Ruby::Base
handles method_call(:get)
handles method_call(:post)
handles method_call(:put)
+ handles method_call(:patch)
handles method_call(:delete)
handles method_call(:head)
handles method_call(:not_found)
@@ -117,7 +118,7 @@ def http_path
module Legacy
class RouteHandler < Ruby::Legacy::Base
include AbstractRouteHandler
- handles /\A(get|post|put|delete|head|not_found)[\s\(].*/m
+ handles /\A(get|post|put|patch|delete|head|not_found)[\s\(].*/m
def http_verb
Something went wrong with that request. Please try again.