A base library for Hoptoad error reporting
Ruby
Switch branches/tags
Pull request Compare This branch is 1 commit ahead, 129 commits behind toolmantim:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
.yardopts
Gemfile
LICENSE
README.md
Rakefile

README.md

A base library for Hoptoad error reporting.

Toadhopper can be used to report plain old Ruby exceptions, or to build a framework-specific gem such as toadhopper-sinatra.

require 'toadhopper'

dispatcher = ToadHopper::Dispatcher.new("YOURAPIKEY")

error = begin; raise "Kaboom!"; rescue => e; e; end

puts dispatcher.post!(error)

You can install it via rubygems:

gem install toadhopper

Development

Firstly, gem install bundler, then:

% git clone git://github.com/toolmantim/toadhopper.git
% cd toadhopper
% gem bundle
% bin/rake test

If you set a HOPTOAD_API_KEY environment variable it'll test actually posting to the Hoptoad API. For example:

% bin/rake test HOPTOAD_API_KEY=abc123

To generate the docs:

% bin/yardoc

Contributors