Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing a gem from a repo I cloned on git hub

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"?

like image 973
TheDelChop Avatar asked Dec 06 '25 07:12

TheDelChop


1 Answers

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.

like image 118
Eimantas Avatar answered Dec 07 '25 22:12

Eimantas



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!