If the project is from github, and contained in the list on http://gems.github.com/list.html, then you can just add the github repo to the gems sources to install it :
$ gem sources -a http://gems.github.com
$ sudo gem install username-projectname
If you install using bundler as suggested by gryzzly and the gem creates a binary then make sure you run it with bundle exec mygembinary as the gem is stored in a bundler directory which is not visible on the normal gem path.
Other projects have a rake task, called "gem" or "build" or something like that, in this case you have to invoke "rake ", but that depends on the project.
Try the specific_install gem it allows you you to install a gem from from its github repository (like 'edge'), or from an arbitrary URL. Very usefull for forking gems and hacking on them on multiple machines and such.
gem install specific_install
gem specific_install -l <url to a github gem>
OBSOLETE (see comments)
If the project is from github, and contained in the list on http://gems.github.com/list.html, then you can just add the github repo to the gems sources to install it :
In case you are using bundler, you need to add something like this to your Gemfile:
And in case there is
.gemspec
file, it should be able to fetch and install the gem when runningbundle install
.If you install using bundler as suggested by gryzzly and the gem creates a binary then make sure you run it with
bundle exec mygembinary
as the gem is stored in a bundler directory which is not visible on the normal gem path.well, that depends on the project in question. Some projects have a *.gemspec file in their root directory. In that case, it would be
Other projects have a rake task, called "gem" or "build" or something like that, in this case you have to invoke "rake ", but that depends on the project.
In both cases you have to download the source.
In your Gemfile, add the following:
You can also add ref, branch and tag options,
For example if you want to download from a particular branch:
Then run:
Try the specific_install gem it allows you you to install a gem from from its github repository (like 'edge'), or from an arbitrary URL. Very usefull for forking gems and hacking on them on multiple machines and such.
e.g.