Copyright © (C) 2011, Erlware LLC
alpha_info() = {PreRelease::[alpha_part()], BuildVersion::[alpha_part()]}
alpha_part() = integer() | binary() | string()
any_version() = version_string() | semver()
major_minor_patch_minpatch() = version_element() | {version_element(), version_element()} | {version_element(), version_element(), version_element()} | {version_element(), version_element(), version_element(), version_element()}
semver() = {major_minor_patch_minpatch(), alpha_info()}
version_element() = non_neg_integer() | binary()
version_string() = string() | binary()
between/3 | Test that VsnMatch is greater than or equal to Vsn1 and less than or equal to Vsn2. |
eql/2 | test for quality between semver versions. |
format/1 | |
gt/2 | Test that VsnA is greater than VsnB. |
gte/2 | Test that VsnA is greater than or equal to VsnB. |
internal_parse_version/1 | helper function for the peg grammar to parse the iolist into a semver. |
lt/2 | Test that VsnA is less than VsnB. |
lte/2 | Test that VsnA is less than or equal to VsnB. |
normalize/1 | normalize the semver so they can be compared. |
parse/1 | parse a string or binary into a valid semver representation. |
pes/2 | check that VsnA is Approximately greater than VsnB. |
between(Vsn1::any_version(), Vsn2::any_version(), VsnMatch::any_version()) -> boolean()
Test that VsnMatch is greater than or equal to Vsn1 and less than or equal to Vsn2
eql(VsnA::any_version(), VsnB::any_version()) -> boolean()
test for quality between semver versions
format(X1::semver()) -> iolist()
gt(VsnA::any_version(), VsnB::any_version()) -> boolean()
Test that VsnA is greater than VsnB
gte(VsnA::any_version(), VsnB::any_version()) -> boolean()
Test that VsnA is greater than or equal to VsnB
internal_parse_version(X1::iolist()) -> semver()
helper function for the peg grammar to parse the iolist into a semver
lt(VsnA::any_version(), VsnB::any_version()) -> boolean()
Test that VsnA is less than VsnB
lte(VsnA::any_version(), VsnB::any_version()) -> boolean()
Test that VsnA is less than or equal to VsnB
normalize the semver so they can be compared
parse(Version::any_version()) -> semver()
parse a string or binary into a valid semver representation
pes(VsnA, VsnB) -> any()
check that VsnA is Approximately greater than VsnB
Specifying ">= 2.6.5" is an optimistic version constraint. All versions greater than the one specified, including major releases (e.g. 3.0.0) are allowed.
Conversely, specifying "~> 2.6" is pessimistic about future major revisions and "~> 2.6.5" is pessimistic about future minor revisions.
"~> 2.6" matches cookbooks >= 2.6.0 AND < 3.0.0 "~> 2.6.5" matches cookbooks >= 2.6.5 AND < 2.7.0Generated by EDoc