【发布时间】:2013-05-24 19:02:34
【问题描述】:
我的组织有许多用于自动化测试的内部 gem,但不是生产部署所必需的。我正在尝试使用 Bundler,因此在我的 Gemfile 中,我将这些 gem 包装在:
group :test, :development do
gem 'dashboard_summary'
end
但是,当我运行时:
$ bundle install --without staging development test
我还是得到了
Could not find gem 'dashboard_summary (>= 0) ruby' in the gems available on this machine.
我试图理解为什么 Bundler 在我告诉它时没有忽略该宝石。
【问题讨论】:
-
发布您的
Gemfile。dashboard_summary可能是其他一些 gem 的依赖项 -
您如何指定
dashboard_summarygem?您是否有多个source行,如果有,您如何避免内部存储库中的错误在生产中不可用?
标签: ruby-on-rails ruby bundler