New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hugs

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hugs

  • 2.7.1
  • Rubygems
  • Socket score

Version published
Maintainers
2
Created
Source

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

FAQs

Package last updated on 14 Jun 2011

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc