Install a ruby gem from a local repository

ruby, rubygems

Solution

In your local repository:

gem build yourlocalrepo.gemspec

This will create a `.gem` file. Now:

gem install yourlocalrepo.gem

Problem

I have a git repository locally which contain a SDK project in ruby. I want to install the gem file from this local repo. It has the gemfile and gemspec files as well. Please help me on this. I tried to find a solution online but all of them are for .gem file which is locally stored not for a repo it self.

Original source

Related problems