Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
simple command line util & ruby module for managing versions according to http://semver.org
Ruby
tag: v0.2.0

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
lib
spec
.gitignore
.semver
README.md
semver.gemspec

README.md

SemVer

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
% git tag -a `semver tag`
% say 'that was easy'

quickstart for ruby

require 'semver'
v = SemVer.find
v.major                     # => "0"
v.major.next!
v.major                     # => "1"
v.format "%M.%m.%p"         # => "1.1.0"
v.save

git integration

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

Franco Lazzarino

Something went wrong with that request. Please try again.