bernd / fpm-cookery

A tool for building software packages with fpm.
Other
460 stars 88 forks source link

Add default package version and guard against nil/empty versions #176

Closed tomeon closed 7 years ago

tomeon commented 7 years ago

Addresses #175. fpm sets a default version -- "1.0" -- when invoked from the command line, but not when used as a library. This PR updates Package::Version with the DEFAULT_VERSION constant, updated #split_version, and a #version accessor that guards against nil.

bernd commented 7 years ago

Awesome, thank you!