Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A set of thor scripts for managing application versions

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .rspec
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 Gemfile
Octocat-spinner-32 MIT-LICENCE
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 releaser.gemspec
README.md

Releaser

Build Status Code Climate

Very often we need to monitor versions of application. This gem helps to do it.

Installation

Add

ruby gem 'releaser'

to your Gemfile.

Autoreleasing

When issuing major release, run releaser major NEW_CODENAME. You may omit the codename if you are not using any. This will tag a commit and push the tag to origin. You have --no-push option not to do the last step. Running it with -p will issue it in "pretend" mode, without actual making changes.

To issue a minor release, you should run releaser minor. It has the same options as major, except the codename.

To get the current version just type release. Try -v for more verbosity.

Capistrano

Add

require 'releaser/capistrano'

to your config/deploy.rb file. This will automagically tag your deploy commits and push it. Also it will write current revision to the file CURRENT_VERSION in your application directory. To get it from application, issue

Releaser::FromFile.new.version("no version")

with an optional argument for a default string (default is "development").

See lib/releaser/capistrano/release_tagging for more details.

Something went wrong with that request. Please try again.