【发布时间】:2014-03-08 19:17:12
【问题描述】:
尝试使用bundle open 命令打开gem 源代码,according to official documentation and instruction。
所以,我在exported 编辑器中这样.profile:
export BUNDLER_EDITOR=vi
export EDITOR=vi
并尝试打开例如rails源码使用控制台:
bundle open rails
并得到错误Could not locale Gemfile
[ruby-2.1.1]
[~/]
$: rails -v
Rails 4.0.3
[ruby-2.1.1]
[~/]
$: bundle -v
Bundler version 1.5.3
[ruby-2.1.1]
[~/]
$: bundle open rails
Could not locate Gemfile
[ruby-2.1.1]
[~/]
$:
此步骤中缺少什么?如何使用 bundler 打开 rails 源代码。
【问题讨论】:
-
从具有包含该 gem 的 Gemfile 的目录运行
bundle open ...。
标签: ruby-on-rails ruby bundler