常用的gem source

常用的gem source

发布: foyo99   创建: 2011 年7月11日   浏览: 1686   我要评论

当一个源存取失败时,可尝试使用另一个源。(通过gem sources命令配置源,或通过修改Gemfile中的source语句)

常用的源
http://rubygems.org/
http://gems.github.com
http://gems.rubyforge.org

显示当前使用的sources
gem sources

添加一个source
gem sources -a url地址

删除一个source
gem sources -r url地址

更新source cache
gem sources -u

posted @ 2014-04-24 10:33  magicya  阅读(800)  评论(0编辑  收藏  举报