The GDELT API seems to have started rate limiting requests without a user agent set (see #22). This PR sets the package name and version as the user agent for all requests to the API. Manual testing for rate limiting is an imprecise business, but I was able to reproduce the error before making this change and I've not seen it since.
This PR also restructures the versioning system slightly - this is needed so we can access the version number to set in the user agent.
The GDELT API seems to have started rate limiting requests without a user agent set (see #22). This PR sets the package name and version as the user agent for all requests to the API. Manual testing for rate limiting is an imprecise business, but I was able to reproduce the error before making this change and I've not seen it since.
This PR also restructures the versioning system slightly - this is needed so we can access the version number to set in the user agent.
Closes #22