public
Description: middleware for posting exceptions to http://hoptoadapp.com
Homepage: http://github.com/atmos/rack_hoptoad
Clone URL: git://github.com/atmos/rack_hoptoad.git
commit  aee6c11bedb6ca21bbfa743a95cae77af1860c5a
tree    bb1f716e5ec234a9800648c8d5ae28d24873e86d
parent  38a7852c38ca7749964b9516f6bb1af60ee21f91
name age message
file .gitignore Loading commit data...
file LICENSE Sun May 10 17:14:06 -0700 2009 initial import of the hoptoad notifier code. i... [atmos]
file README.md
file Rakefile Wed May 13 20:13:37 -0700 2009 next version is 0.0.4 [atmos]
file TODO Sun May 10 17:14:06 -0700 2009 initial import of the hoptoad notifier code. i... [atmos]
directory lib/
directory 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