This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit 5194bcb754d081a95dbcd3f25eb70e9781f84dcb
tree 8cf06fc34e2b1e6e190007a139c9d1c00eedb0a8
parent aee6c11bedb6ca21bbfa743a95cae77af1860c5a
tree 8cf06fc34e2b1e6e190007a139c9d1c00eedb0a8
parent aee6c11bedb6ca21bbfa743a95cae77af1860c5a
| name | age | message | |
|---|---|---|---|
| |
.gitignore | ||
| |
LICENSE | Sun May 10 17:14:06 -0700 2009 | |
| |
README.md | Thu May 14 17:40:28 -0700 2009 | |
| |
Rakefile | Wed May 13 20:13:37 -0700 2009 | |
| |
TODO | Sun May 10 17:14:06 -0700 2009 | |
| |
lib/ | ||
| |
spec/ |
README.md
rack_hoptoad
A gem that provides exception notifications to hoptoad as rack middleware.
Usage
Throw something like this in your config.ru to enable notifications.
require 'rack_hoptoad'
use Rack::HoptoadNotifier, 'fd48c7d26f724503a0280f808f44b339fc65fab8'
You can also exclude certain sensitive environmental variables using the block syntax
require 'rack_hoptoad'
use Rack::HoptoadNotifier, 'fd48c7d26f724503a0280f808f44b339fc65fab8' do |notifier|
notifier.environment_filters << %w(MY_SECRET_KEY MY_SECRET_TOKEN)
end
If your RACK_ENV variable is set to production or staging it'll actually post to hoptoad. It won't process in the other environments.
Installation
% sudo gem install rack_hoptoad
Sinatra Notes
In order for exceptions to propagate up to Rack in Sinatra you need to enable raise_errors
class MyApp < Sinatra::Default
enable :raise_errors
end
Note that the errors block does not execute so you'll need to handle the 500 elsewhere.








