Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Modulefile starts with version 0.1.0 #1583

Merged
merged 1 commit into from

3 participants

@ghoneycutt

This commit aligns us with the recommended practices from semver.org.

@puppetcla

CLA Signed by ghoneycutt on 2010-12-19 21:00:00 -0800

@adrienthebo
Owner

Hi Garrett, and thanks for the contribution! This does make us conform to semver.org, but do they explain why versioning should start at 0.1.0? I checked and couldn't figure that out myself.

@ghoneycutt

I believe the reasoning is that given X.Y.Z, Y is for features and Z is for bug fixes and you can't fix what you just started, so they recommend in the FAQ that you start at 0.1.0.

@adrienthebo adrienthebo merged commit a2af223 into puppetlabs:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 5, 2013
  1. Modulefile starts with version 0.1.0

    Garrett Honeycutt authored
This page is out of date. Refresh to see the latest.
View
4 lib/puppet/module_tool/modulefile.rb
@@ -30,13 +30,13 @@ def name(name)
@metadata.full_module_name = name
end
- # Set the module +version+ (e.g., "0.0.1"). Required.
+ # Set the module +version+ (e.g., "0.1.0"). Required.
def version(version)
@metadata.version = version
end
# Add a dependency with the full_module_name +name+ (e.g. "myuser-mymodule"), an
- # optional +version_requirement+ (e.g. "0.0.1") and +repository+ (a URL
+ # optional +version_requirement+ (e.g. "0.1.0") and +repository+ (a URL
# string). Optional. Can be called multiple times to add many dependencies.
def dependency(name, version_requirement = nil, repository = nil)
@metadata.dependencies << Dependency.new(name, version_requirement, repository)
View
2  lib/puppet/module_tool/skeleton/templates/generator/Modulefile.erb
@@ -1,5 +1,5 @@
name '<%= metadata.full_module_name %>'
-version '0.0.1'
+version '0.1.0'
source '<%= metadata.source %>'
author '<%= metadata.author %>'
license '<%= metadata.license %>'
Something went wrong with that request. Please try again.