Hugs
Hugs net-http-persistent with convenient delete, get, head, post, and put methods. Automatically parses JSON and XML responses.
Why?
Opted to write this gem for a few reasons:
- Ganeti's API, required the sending of a message body with the HTTP Get request, which rest-client does not allow.
- A fast, thread-safe, and persistent client.
- Excon does most everything right,
but is not compatible with VCR (more specifically webmock and fakeweb). There looks to be work on this front. - Continued learning.
Opinionated
Intended for but not limited to, endpoints that return JSON or XML.
Usage
Bundler
gem "hugs"
Examples
See the 'Examples' section in the wiki.
Compatability
ruby 1.9.2
Testing
Tests can run offline thanks to webmock.
$ bundle exec rake