Making a Gem

As to not forget the process of packaging up a gem and putting it on my own hosting just follow these simple tests :–

1) Firstly make sure the PROJECT_NAME.gemspec file is up to date and you have updated the version.rb file to the correct version.

2) run the command

1
2
3
gem build mention-tagger.gemspec
# or
rake build

that should put a gem file in the root directory with the name PROJECT_NAME-VERSION.gem or in pkg/PROJECT_NAME-VERSION.gem

To publish to your own gem host

1) First set up geminabox as per these instructions

1
gem install geminabox

2) then gem inabox PROJECT_NAME-VERSION.gem

it’ll ask for url

3) put in your gem host

and away she goes

Get it straight from git

Two ways

Gemfile
1
2
3
4
5
1. gem 'rails', :git => 'git://github.com/rails/rails.git'

# or equivalently

2. gem 'rails', :githib => 'rails/rails'

which is just USERNAME/PROJECT_NAME