Gem::Versioner

A plugin for RubyGems which lets you pass in version strings via a environment variable.

Gem Version Circle CI Maintainability Test Coverage

Installation

Install it yourself:

$ gem install gem-versioner

Usage

When you build a gem (e.g. my-gem) you can specify a pre release version by

$ PRE_RELEASE=foo gem build my-gem.gemspec

This will build a gem with a version in the following format ${gem_version}.pre.${PRE_RELEASE}.${current_timestamp} , for example: 0.0.1.pre.foo.20160919174006

Publishing

When a new version is tagged and pushed, CircleCI will build and publish the new version of the gem to https://rubygems.org/gems/gem-versioner.

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/FundingCircle/gem-versioner. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

Copyright © 2016 Funding Circle.

Distributed under the BSD 3-Clause License.