about archives code photos tumblr twitter

Exceptions

One of my frustrations over the past few months has been the lack of a quality exception notifier plugin for merb. The New Bamboo Merb Exceptions gem has been around for a while now, but it has been consistently broken or tailored to versions of merb that I’m not currently running. So for the last few months we used a hacked version of new bamboo’s merb_exceptions in production, and it worked pretty well until the exception refactoring that went down in merb landed in mid-august. There’s a slightly more recent post on the Merbist about the merb_exceptions plugin being consumed into the official merb plugins repo, this is quite cool. :)

Call to Arms

Last night I saw a tweet by benburkert about hoptoad. I know Ben from the Merb/DM community and figured he had to be using hoptoad with merb. Hoptoad is an exception notifier/logger service provided by the good folks at ThoughBot. It’s kind of like a nice combination of the classic rails Exception Notifier and technoweenie/dreamer3’s exception_logger plugin. A quick search on github revealed an existing merb plugin for hoptoad. SCORE.

Problems

The downside was that this was written right when hoptoad was released, and the way that the Exceptions controller behaves changed(for the better) shortly after the initial plugin was released. So I forked the repo and it took about 30 minutes to update the code to work with the version of merb we’re running(0.9.7). I’ve sent a pull request to the author and I’m hoping he’ll consume my changes, but in the meantime you can grab it from my public fork of the plugin. I also updated the README to be a little more informative on how to get things going. UPDATE: I went ahead and made the code a proper merb plugin w/ specs and such, it’s available here.