Skip to content

scriptkitties/perl6-SemVer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SemVer

Semantic versioning is a standard to give version numbers meaning. To work with these versions, the SemVer class comes into play. It will deal with incrementing the version for you, and making it easy to work with it programmatically.

Table of Contents

Installation

Use zef, the Perl 6 module installer:

# zef install SemVer

Usage

use SemVer;

# Create a new SemVer from a string
my SemVer $v .= new("1.12.3");
              # new(1, 12, 3); # Alternative method

say $v.Str; # "1.12.3";

# Increment the patch level
$v.bump-patch;

say $v.Str; # "1.12.4"

# Increment minor level
$v.bump-minor;

say $v.Str; # "1.13.0"

# Increment major level
$v.bump-major;

say $v.Str; # "2.0.0"

License

This module is released under the terms of the GNU GPL version 3 or later.

About

Class representing a semantic version number

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Other 100.0%