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 (
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Tue Jan 06 17:46:31 -0800 2009 | |
| |
LICENSE | Sat Oct 11 17:12:09 -0700 2008 | |
| |
README | Sun Jul 19 16:14:56 -0700 2009 | |
| |
Rakefile | ||
| |
TODO | Sat Oct 11 17:42:58 -0700 2008 | |
| |
lib/ | ||
| |
merb_hoptoad_notifier.gemspec | Sat Mar 07 20:45:04 -0800 2009 | |
| |
spec/ | Tue Dec 16 08:41:48 -0800 2008 |
README
merb_hoptoad_notifier --------------------------------------------- This is merb plugin for exception notification with hoptoad. It should work with any merb app that's based on merb 1.0 and higher This plugin: http://github.com/atmos/merb_hoptoad_notifier/tree/master The original: http://github.com/thoughtbot/hoptoad_notifier/tree/master Usage: 1) Get your api key for your app from hoptoadapp.com 2) Add the api key to config/hoptoad.yml with a similar syntax as the following --- :development: &defaults :api_key: ZOMGLOLROFLMAO :rake: <<: *defaults :test: <<: *defaults :production: :api_key: UBERSECRETSHIT 3) Require hoptoad in init.rb require 'merb_hoptoad_notifier' 4) Add the following method to your Exceptions controller. Depending on your merb version you'll need to use the exceptions,standard_error, or internal_server error as the action name. Kinda weak, but the API changed a lot in 0.9.x class Exceptions < Merb::Controller if %w( staging production ).include?(Merb.env) def standard_error HoptoadNotifier.notify_hoptoad(request, session) render end end end 5) Restart the server, trigger an error(in staging or prod) and check that it arrived at hoptoad :) Filtersing your post environment -------------------------------- If you have environmental variables set in your ruby process that should not be sent to hoptoad, there's a mechanism for filtering those attributes now. Throw something like this in config/init.rb Merb::BootLoader.after_app_loads do HoptoadNotifier.environment_filters = %w(^AWS ^EC2 SECRET PRIVATE KEY) end Each of these words will be compiled into a regex so you should be able to use anchors if needed. Thanks to the following GitHubbers ---------------------------------- joakimk, fairchild and cv.








