Tutorial :Installing a gem from a repo I cloned on git hub



Question:

Post says it all.

I've cloned a gem (particularly radiant) after clone it from its github source. Anybody tell me how I can install it as a gem?

Something like "gem install radiant --local"?


Solution:1

Go to the dir of your cloned repo and run this:

$ rake build  

This will create gem file in pkg dir. Then just run

$ sudo gem install pkg/built-gem-0.0.1.gem  

Edit: appending BaroqueBobcat's wisdom verbatim from comment for better visibility:

This will only work if there is a Rake task for building the gem. If there is no rake task, but there is a .gemspec file, you can use $ gem build <name>.gemspec.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »