Skip to content

A gem to increment a version number following the Semantic Versioning scheme

License

Notifications You must be signed in to change notification settings

PLNech/increment_semver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Increment SemVer

A gem to increment a version number following the Semantic Versioning scheme

Gem Version Gem Downloads

Install

To install (or update to latest release):

gem install increment_semver

Alternatively, add the following to your GemFile:

gem 'increment_semver', '~> 0.0.4'

Usage

require 'increment_semver'
new_version = increment_semver('1.0.0', 'minor') // Now 1.1.0

Contributing

From reporting an issue to contributing new code, your collaboration is more than welcome!

  • To run the tests: rake

  • To release a new version: ./release.sh VERSION_CODE (with VERSION_CODE following SemVer 😉)