toolmantim / toadhopper

A base library for Hoptoad error reporting

This URL has Read+Write access

name age message
file .gitignore Loading commit data...
file LICENSE Wed Sep 16 08:04:06 -0700 2009 Added YARD, removed the test methods test [toolmantim]
file README.md
file Rakefile
directory lib/
directory test/
file toadhopper.gemspec
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'

Toadhopper.api_key = "YOURAPIKEY"

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

puts Toadhopper.post!(error)

You can install it via rubygems:

gem install toadhopper

If you need to report different Hoptoad projects from the same Ruby process call a Toadhopper instance rather than the class methods:

require 'toadhopper'

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

puts Toadhopper("API key for project 1").post!(error)
puts Toadhopper("API key for project 2").post!(error)