stevegraham/slanger — pull request #32 by skade (2012-04-14 11:01:10+00:00)
Title: Test and fix for invalid JSON crash

Hi,

this is a proposed fix and test for #31. It catches all exceptions, but handles JSON::ParserError for better error messages.

Sadly, I couldn't find out what Pusher would actually send in that case :/, so I'll just put this test up for discussion.