RestClientPlus

Extensions to Ruby's RestClient

Installation

Add this line to your application's Gemfile:

gem 'rest_client_plus'

And then execute:

$ bundle

Or install it yourself as:

$ gem install rest_client_plus

Require using:

$ require 'rest_client_plus'

Usage

RestClientPlus provides GET, POST and PUT methods which return a Ruby hash if json is received.

ArrayHelper.unwrap_from_array will unwrap a hash from a single-element array

Running Tests

/ruby tests/*

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Add Tests to the project
  4. Commit your changes (git commit -am 'Add some feature')
  5. Push to the branch (git push origin my-new-feature)
  6. Create new Pull Request