An open API service indexing awesome lists of open source software.

https://github.com/plnech/increment_semver

A gem to increment a version number following the Semantic Versioning scheme
https://github.com/plnech/increment_semver

build-automation increment increment-semver release-automation release-management semantic-versioning semver semver-syntax

Last synced: about 1 year ago
JSON representation

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

Awesome Lists containing this project

README

          

# Increment SemVer
> A gem to increment a version number following the [Semantic Versioning scheme](semver.org)

[
![Gem Version](https://badge.fury.io/rb/increment_semver.svg)
![Gem Downloads](https://ruby-gem-downloads-badge.herokuapp.com/increment_semver?type=total)
](https://rubygems.org/gems/increment_semver)

## Install

To install (or update to latest release):
```ruby
gem install increment_semver
```

Alternatively, add the following to your GemFile:
```gemfile
gem 'increment_semver', '~> 0.0.4'
```

## Usage
```ruby
require 'increment_semver'
new_version = increment_semver('1.0.0', 'minor') // Now 1.1.0
```

## Contributing

From [reporting an issue](https://github.com/PLNech/increment_semver/issues/new) to [contributing new code](https://github.com/PLNech/increment_semver/compare?expand=1), 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 😉)