开发者

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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜