wjessop/Scamp — pull request #20 by massive (2012-01-24 09:39:52+00:00)
Title: Prevent crash if API sends invalid data

From time to time Campfire's API seems to send invalid JSON as payload. Seems that usually this is caused by some Rails error and the resulting data is actually a Rails's error page.

bundler/gems/Scamp-8caa3e34aa19/lib/scamp/rooms.rb:102:in `<<': lexical error: invalid char in json text. (Yajl::ParseError)