Incorrectly parsing geos version 3.8.0
azhi opened this issue · comments
In 3.8.0, geos devs decided to remove git revision hash from capi version (libgeos/geos@7699310#diff-8dd96440c9832c59176dcaa7c346b982R3549).
Unfortunately, they left whitespace at the end, so now this regex is broken again -
Lines 1284 to 1289 in 2662d85
Example of broken version:
> Geos.version
=> "3.8.0-CAPI-1.13.1 "
> Geos::GEOS_VERSION
=> "0.0.0"
PS: I've create a PR to geos to remove unnecessary whitespace, so it hopefully will be fixed in next geos release. Not sure if you want to hack release regex to make 3.8.0 work.