puppetlabs/puppet-docs — pull request #112 by rcoleman (2012-10-24 02:20:32+00:00)
Title: Describe dependency options for Modulefile

NOT for merging by anyone but the Puppet Labs Docs Team.

Docs Team,

Though we've supported these concepts in PMT since 2.7.14, they've gone largely undocumented. Of particular note are the expressions for pinning to a Semantic versioning promise, like 2.x.

I tried to stay consistent with style as best I could, but please feel free to muck with it or make suggestions as you see fit.

-------------
Prior to this commit, the modules_publishing document in the Puppet
reference guide only provided a simple example on how to construct
a dependency on another module in ones Modulefile.

This commit improves the situation by adding a list of valid
operaters, some associated descriptive text and a note on why one
should use semantic versioning for both their modules version and
when expressing dependencies on other modules. It attempt to adhere
to the style found in modules_publishing as well as in lang_expressions.

Support for this content has been in the PMT since Puppet 2.7.14.

Reference Content:
[Puppet Source Spec Tests](https://github.com/puppetlabs/puppet/blob/master/spec/unit/semver_spec.rb)
[npmjs.org](https://npmjs.org/doc/semver.html#Ranges)
[semver.org](http://semver.org/spec/v1.0.0.html)
[Pieter van de Bruggen](human://puppet-forge.engineer)