Closed spacewander closed 5 years ago
Thanks, this seems helpful. May I make a suggestion about the code though? I think the message should mention the various gems that Sawyer works with too.
yajl || multi_json || json || begin
raise RuntimeError, "Sawyer requires a JSON gem: yajl, multi_json, or json"
end
@technoweenie LGTM.
Instead of returning nil and let it break in another place, raise exception as soon as thing goes wrong.