timcraft/nexmo — pull request #5 by nevalla (2012-05-24 06:23:01+00:00)
Title: Fix #4 - Rescue from JSON::ParseError

This is a bug fix for issue #4.

When Nexmo service returns html response instead of json response, send_message method fails to parse the response. This fix handles the JSON::ParseError exception and formats 'Internal error' response.