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
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Add Tests to the project
- Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request