Bundler:安装特定的.gem文件 [英] Bundler: installing a specific .gem file

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

问题描述



有一种ParseTree的编译版本,我必须使用(该死的你,Windows!),但不想扩展gem文件,以便为'gem'需求添加:path =>'...'属性。

解决方案

我找到了答案 - 感谢所有回复的人! :)

诀窍在于设置一个本地gem服务器(使用,呃,gem server)并将我的Gemfile的源文件改为指向 http:// localhost:8808 ,而不是 http:// rubygems.org

这意味着bundler会从当前已安装的gem集合中获取所有宝石(这对我的情况来说很好),然后编译的库只是工作。


Is there a way to tell Bundler to install a particular .gem file I have lying around?

I have a compiled version of ParseTree that I must use (damn you, Windows!), but didn't want to expand the gem file in order to add a :path => '...' attribute to the 'gem' requirement.

解决方案

I figured it out -- thanks to everyone who responded! :)

The trick was to set up a local gem server (with, uh, "gem server") and change my Gemfile's source to point to http://localhost:8808 instead of http://rubygems.org.

This means bundler will grab all the gems from the current installed gem set (which happens to be fine for my case) and then the compiled libs just work.

这篇关于Bundler:安装特定的.gem文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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