added ascending compatability with restclient-1.4.0
Signed-off-by: Will Leinweber <will@bitfission.com>
This commit is contained in:
parent
b147e2cfb1
commit
38dad4bc78
|
@ -10,25 +10,25 @@ module RestClientAdapter
|
||||||
end
|
end
|
||||||
|
|
||||||
def get(uri, headers={})
|
def get(uri, headers={})
|
||||||
RestClient.get(uri, headers)
|
RestClient.get(uri, headers).to_s
|
||||||
end
|
end
|
||||||
|
|
||||||
def post(uri, payload, headers={})
|
def post(uri, payload, headers={})
|
||||||
RestClient.post(uri, payload, headers)
|
RestClient.post(uri, payload, headers).to_s
|
||||||
end
|
end
|
||||||
|
|
||||||
def put(uri, payload, headers={})
|
def put(uri, payload, headers={})
|
||||||
RestClient.put(uri, payload, headers)
|
RestClient.put(uri, payload, headers).to_s
|
||||||
end
|
end
|
||||||
|
|
||||||
def delete(uri, headers={})
|
def delete(uri, headers={})
|
||||||
RestClient.delete(uri, headers)
|
RestClient.delete(uri, headers).to_s
|
||||||
end
|
end
|
||||||
|
|
||||||
def copy(uri, headers)
|
def copy(uri, headers)
|
||||||
RestClient::Request.execute( :method => :copy,
|
RestClient::Request.execute( :method => :copy,
|
||||||
:url => uri,
|
:url => uri,
|
||||||
:headers => headers)
|
:headers => headers).to_s
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue