Build Status

Webhook

Client library for making webhook calls. Compatible with Ruby 1.8.7, 1.9.2, 1.9.3, REE, JRuby 1.8 and 1.9.

There are no runtime dependencies.

Installation

Add this line to your application's Gemfile:

gem 'webhook', '~> 0.0.1'

And then execute:

$ bundle

Or install it yourself as:

$ gem install webhook

Usage

require 'webhook'

code, message, body = Webhook.post('http://requestb.in/yadzsfya', :name => 'Abletech', :age => '6')

if code == '200'
  puts "Success: #{body}"
else
  puts "Error (#{code}): {message}\n#{body}"
end

Testing

rake spec

Contributing

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