artsalliancemedia/redmine — pull request #21 by blrnw3 (2013-09-27 15:39:40+00:00)
Title: Do the producer pull more safely (when decoding JSON), and remove hacky ...

...pseudo-fix for parsing invalid JSON.

The gsub on line 108 breaks the JSON in the following test case (valid JSON)
{"last_updated": 1376408355.8529, "dowser_status": null, "error_messages": [], "projector_status": null, "lamp": {"status": null, "current": null, "life": {"used": null, "maximum": null, "remaining": null}, "type": null}, "projector_type": "\"CP2000 DLP Cinema Projector with TPC60S\""}

It is therefore dangerous so has been removed.
The whole thing is wrapped in a try...catch to prevent bad JSON from killing the rake.