langalex/couch_potato — pull request #84 by andymorris (2013-05-17 19:57:34+00:00)
Title: Replace print_r with JSON.stringify to handle dates in JS runtime specs

Returning/emitting Javascript Date objects from map/reduce/list functions currently results in ```JSON::ParserError``` in the ```*Matcher``` classes. The problem appeared to be with the ```print_r``` function that was being used, and replacing those calls with ```JSON.stringify``` corrects the problem with dates and all other specs still pass.