Skip to content

Loading…

Handle PATCH method. #8

Merged
merged 1 commit into from

3 participants

@neglectedvalue

No description provided.

@pengwynn

@rkh Bump. I need this, too.

@rkh rkh merged commit 3b1064e into rkh:master
@rkh
Owner

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
View
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
statement.tokens.first.text.upcase
Something went wrong with that request. Please try again.