Subject: | Missing Dependency on JSON |
Hello,
Thanks for your contribution to the CPAN.
While updating the Debian package for this module, I discovered an issue
where your module did not specify JSON as a build dependency. It is
recommended, but not required, by Dancer, and as such, the to_json
command may not work (unless the user has installed JSON).
The test that blows up, from t/lib/TestApp.pm appears to be here:
get '/quick_select/:id' => sub {
my $row = database->quick_select('users', { id => params->{id} });
return to_json($row || { error => 'No matching user' });
};
These issues are resolved by establishing a build-time requirement on
the JSON module. I am not sure whether it is also required as a full
dependency (I will leave you to decide this, as you are the upstream
maintainer).
Cheers,
Jonathan