Project

semver

0.07
No commit activity in last 3 years
No release in over 3 years
There's a lot of open issues
maintain versions as per http://semver.org
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

SemVer2 3.0.x gem, following semver.org 2.0.0-rc.1

quickstart on the command line

install it

% gem install semver

use it

% semver init
% semver tag                # => v0.0.0
% semver inc minor          # => v0.1.0
% semver special 'alpha.45' # => v0.1.0-alpha.45
% semver format "%M.%m"     # => 0.1
% git tag -a `semver tag`
% say 'that was easy'

quickstart for ruby

require 'semver'
v = SemVer.find
v.major                     # => "0"
v.major += 1
v.major                     # => "1"
v.special = 'alpha.46'
v.format "%M.%m.%p%s"       # => "1.1.0-alpha.46"
v.to_s                      # => "v1.1.0"
v.save

git integration

% git config --global alias.semtag '!git tag -a $(semver tag) -m "tagging $(semver tag)"'

Franco Lazzarino Henrik Feldt