Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 758 Bytes

README.textile

File metadata and controls

34 lines (22 loc) · 758 Bytes

gem release

This gem plugin adds a tag and a release command to the rubygems gem command.

The tag command

  • executes git tag -am 'tag [tag_name]' [tag_name] and
  • executes git push --tags origin

… with tag_name being the version number as specified in your .gemspec preceeded by a "v" (e.g. v0.0.1).

The release command

  • builds a gem from your gemspec and
  • pushes it to rubygems.org
  • deletes the gem file
  • optionally invokes the tag command

Installation

Obviously …

  $ gem install gem-release

Usage

  $ gem release path/to/your.gemspec
  $ gem release

If you don’t specify a gemspec filename the first \*.gemspec file found in your current working directory will be used.