inspec/test/unit/dependencies
Adam Leff 86079ca3c7 Properly compare profile version strings as SemVer (#2280)
When configuring a profile dependency, if the dependent profile had a
hyphen in it, it would not properly match the default version constraint
of `>= 0`. This is because a hyphen indicates the version is a pre-release
version and proper version matching would require the constraint to also
be listed with a pre-release version string.

The proper solution is to use the `+` character instead which indicates
a build number, which is what the hyphen was meant to convey. In the
meantime, this change properly compares version strings as SemVer and
also adds tests.

Signed-off-by: Adam Leff <adam@leff.co>
2017-11-09 12:29:41 +01:00
..
lockfile_test.rb Bump lockfile version to 1.0 2016-09-26 09:51:04 +01:00
requirement_test.rb Properly compare profile version strings as SemVer (#2280) 2017-11-09 12:29:41 +01:00
resolver_test.rb Properly compare profile version strings as SemVer (#2280) 2017-11-09 12:29:41 +01:00