Issue #12424 has been reported by Matt Robinson.

----------------------------------------
Bug #12424: Semver needs to support other version matching syntaxes
https://projects.puppetlabs.com/issues/12424

Author: Matt Robinson
Status: Accepted
Priority: Normal
Assignee: 
Category: modules
Target version: 2.7.x
Affected Puppet version: 
Keywords: geordi
Branch: 


Here's the version operators we need to support:

<pre>
  tests = {
    '1.2.3'           => SemVer.new('v1.2.3')  ..  SemVer.new('v1.2.3'),
    '>1.2.3'          => SemVer.new('v1.2.4-') ..  SemVer::MAX,
    '<1.2.3'          => SemVer::MIN           ... SemVer.new('v1.2.3'),
    '>=1.2.3'         => SemVer.new('v1.2.3')  ..  SemVer::MAX,
    '<=1.2.3'         => SemVer::MIN           ..  SemVer.new('v1.2.3'),
    '>1.2.3 <1.2.5'   => SemVer.new('v1.2.4-') ... SemVer.new('v1.2.5'),
    '>=1.2.3 <=1.2.5' => SemVer.new('v1.2.3')  ..  SemVer.new('v1.2.5'),
    '1.2.3 - 2.3.4'   => SemVer.new('v1.2.3')  ..  SemVer.new('v2.3.4'),
    '~1.2.3'          => SemVer.new('v1.2.3')  ... SemVer.new('v1.3.0'),
    '~1.2'            => SemVer.new('v1.2.0')  ... SemVer.new('v2.0.0'),
    '~1'              => SemVer.new('v1.0.0')  ... SemVer.new('v2.0.0'),
    '1.2.x'           => SemVer.new('v1.2.0')  ... SemVer.new('v1.3.0'),
    '1.x'             => SemVer.new('v1.0.0')  ... SemVer.new('v2.0.0'),
  }
</pre>

This will also need to be supported in Puppet.  Examples of modifications 
necessary to SemVer (along with other detail) are in 
<https://gist.github.com/ab724771eba512a9a1a7>


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to