simple command line util & ruby module for managing versions according to http://semver.org
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib
spec semver2 gem, version 3.0.0-rc.1 matching semver.org 2.0.0-rc.1 Feb 13, 2012
.gitignore basic ignores Feb 13, 2010
.semver v3.0.1 Feb 13, 2012
Gemfile added rakefile to make it easier to publish gem, added bundler to loc… Jun 29, 2011
Gemfile.lock added rakefile to make it easier to publish gem, added bundler to loc… Jun 29, 2011
LICENSE Create LICENSE Jan 17, 2013
README.md updated readme Feb 13, 2012
Rakefile.rb added rakefile to make it easier to publish gem, added bundler to loc… Jun 29, 2011
semver2.gemspec

README.md

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