added ascending compatability with restclient-1.4.0

Signed-off-by: Will Leinweber <will@bitfission.com>
This commit is contained in:
Julien Kirch 2010-02-20 18:45:53 +01:00 committed by Will Leinweber
parent b147e2cfb1
commit 38dad4bc78

View file

@ -10,25 +10,25 @@ module RestClientAdapter
end
def get(uri, headers={})
RestClient.get(uri, headers)
RestClient.get(uri, headers).to_s
end
def post(uri, payload, headers={})
RestClient.post(uri, payload, headers)
RestClient.post(uri, payload, headers).to_s
end
def put(uri, payload, headers={})
RestClient.put(uri, payload, headers)
RestClient.put(uri, payload, headers).to_s
end
def delete(uri, headers={})
RestClient.delete(uri, headers)
RestClient.delete(uri, headers).to_s
end
def copy(uri, headers)
RestClient::Request.execute( :method => :copy,
:url => uri,
:headers => headers)
:headers => headers).to_s
end
end