A logger can be provided on a per-call basis, rather than just for the Restr class as a whole. e.g.:
kitten_logger = Logger.new('kitten.log'} Restr.get('http://example.com/kittens/1.xml, {}, {:logger => kitten_logger})
Better recognition of XML content; response MIME types ending in “/xml” and “+xml” are now all parsed as XML (for example: “application/xml”, “image/svg+xml”, “text/xml”, etc). Note that “application/xhtml+xml” is now considered to be XML content too, even though you may think of it as just “HTML”.
You can set how long Restr will wait for a request to complete by setting Restr.request_timeout = <seconds>. The default timeout is 3 minutes (180 seconds).
The full response body is now included in DEBUG-level log entries. Be careful if you have the logging level set to DEBUG – your log will now grow very quickly.
First public release – moved out from the Reststop library into its own gem.