public
Description: Post Hoptoad notifications from Sinatra
Homepage: http://rdoc.info/projects/toolmantim/toadhopper-sinatra
Clone URL: git://github.com/toolmantim/toadhopper-sinatra.git
name age message
file .gitignore Wed Sep 16 07:37:55 -0700 2009 Added yardoc [toolmantim]
file LICENSE Wed Sep 16 07:54:41 -0700 2009 Added a license [toolmantim]
file README.md Wed Sep 16 08:10:39 -0700 2009 Re-add the readme with all-caps [toolmantim]
file Rakefile Wed Sep 16 09:28:22 -0700 2009 Reference the right readme [toolmantim]
directory lib/ Thu Oct 08 07:09:51 -0700 2009 Call #to_hash on ENV [toolmantim]
directory test/ Wed Sep 16 19:21:35 -0700 2009 Remove unnecessary registered method, don't bor... [toolmantim]
file toadhopper-sinatra.gemspec Thu Oct 08 07:10:45 -0700 2009 v0.9 [toolmantim]
README.md

Hoptoad meets Sinatra.

    _____                                ,
   /     \______                         |\        __
  | o     |     \____                    | |      |--|             __
  /\_____/           \___                |/       |  |            |~'
 /                       \              /|_      () ()            |
|_______/                 \            //| \             |\      ()
  \______   _       ___    \          | \|_ |            | \
        /\_//      /   \    |          \_|_/            ()  |
       // //______/    /___/             |                  |
      /\/\/\      \   / \ \             @'                 ()
                    \ \   \ \      
                      \ \   \ \    
                        \ \  \ \   
                         \ \ /\/\  
                         /\/\

How?

require 'sinatra/toadhopper'

set :toadhopper, :api_key => "your hoptoad API key", :filters => /password/

get "/" do
  raise "Kaboom!"
end

error do
  post_error_to_hoptoad!
  "Ouch, that hurt."
end

Install it via rubygems:

gem install toadhopper-sinatra