installing gem from a github fork

时间:2017-08-05 10:46:30

标签: git rubygems gemfile git-fork mongify

I have installed a mongify gem from original source: https://github.com/anlek/mongify

then I want to install a newer version from a fork (has not been accepted yet for pull by original source, but it has an update that i need),

link to the fork: https://github.com/yuvalkarmi/mongify

what should I do to update mongify in my device from the fork (not from the original source)?

Thanks

1 个答案:

答案 0 :(得分:1)

只需将源设置为fork的url即可。 有很多方法可以做到这一点:

如果您使用的是bundler:

gem 'mongify', :git => 'https://github.com/yuvalkarmi/mongify'

或者:

gem install mongify -s https://github.com/yuvalkarmi/mongify