gojek / wrest

A fluent, easy-to-use, object oriented Ruby HTTP/REST client library with support RFC2616 HTTP caching and async calls that runs on CRuby and JRuby.
http://gojek.io
Other
233 stars 53 forks source link

Content type: text/plain #109

Closed buchin closed 12 years ago

buchin commented 12 years ago

There are many APIs out there which returns plain text instead of json and xml. One of them is developer.spinnerchief.com/API_Document.aspx

This commit returns response.body directly without any formatting.

buchin commented 12 years ago

@kaiwren test spec added

kaiwren commented 12 years ago

Thanks, we'll merge this shortly /cc @achamian

On 27 November 2011 16:34, Mochammad Masbuchin reply@reply.github.com wrote:

@kaiwren test spec added


Reply to this email directly or view it on GitHub: https://github.com/c42/wrest/pull/109#issuecomment-2887137

achamian commented 12 years ago

@buchin Sorry for the delay. The specs are failing on 1.8.7 and jruby-1.6.5 as the hash to_s implementation is different. I'm working on fixing it

achamian commented 12 years ago

@buchin Pushed the changes, releasing version 1.5.0 /cc @kaiwren

achamian commented 12 years ago

@buchin a new version of wrest is available with plain text support. (Note: I have squashed a few commits while merging)