lib/travis/client/session.rb in travis-1.6.4.travis.411.4 vs lib/travis/client/session.rb in travis-1.6.4.travis.413.4
- old
+ new
@@ -158,10 +158,22 @@
def delete(*args)
load delete_raw(*args)
end
+ def patch(*args)
+ load patch_raw(*args)
+ end
+
+ def post(*args)
+ load post_raw(*args)
+ end
+
+ def put(*args)
+ load put_raw(*args)
+ end
+
def get_raw(*args)
raw(:get, *args)
end
def post_raw(*args)
@@ -170,13 +182,16 @@
def put_raw(*args)
raw(:put, *args)
end
+ def patch_raw(*args)
+ raw(:patch, *args)
+ end
+
def delete_raw(*args)
raw(:delete, *args)
end
-
def raw(verb, url, *args)
url = url.sub(/^\//, '')
result = instrumented(verb.to_s.upcase, url, *args) do
connection.public_send(verb, url, *args) do |request|