When using Serrano.content_negotiation(ids: ["doi:10.5281/zenodo.4406210"], format: "citeproc-json") it returns Resource not found as response which is not valid JSON.
This small pull request fixes the problem by returning nil if the response was not successful. I also added console task to facilitate testing the gem inside irb.
When using
Serrano.content_negotiation(ids: ["doi:10.5281/zenodo.4406210"], format: "citeproc-json")
it returnsResource not found
as response which is not valid JSON.This small pull request fixes the problem by returning nil if the response was not successful. I also added
console
task to facilitate testing the gem insideirb
.