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.
Addresses #175.
fpm
sets a default version --"1.0"
-- when invoked from the command line, but not when used as a library. This PR updatesPackage::Version
with theDEFAULT_VERSION
constant, updated#split_version
, and a#version
accessor that guards againstnil
.