如何从GitHub源安装gem? [英] How to install gem from GitHub source?

查看:139
本文介绍了如何从GitHub源安装gem?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想安装从最新的GitHub源宝石。

I would like to install gem from the latest GitHub source.

我如何做到这一点?

推荐答案

如果您使用的是捆绑器,您需要在Gemfile中添加如下内容:

In case you are using bundler, you need to add something like this to your Gemfile:

gem 'redcarpet', :git => 'git://github.com/tanoku/redcarpet.git'

和的情况下,有 .gemspec 文件,它应该能够在运行 bundle install 时获取并安装gem。

And in case there is .gemspec file, it should be able to fetch and install the gem when running bundle install.

这篇关于如何从GitHub源安装gem?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆