2

在我的 gemfile 中,我有:

 gem 'capistrano-cook', github: "subsis/capistrano-cook"

bundle install这是在 ruby​​/rails 控制台中运行时的错误日志:http: //pastie.org/private/aftbq3rukjdthua4lfjzbw

C:\rails\app>bundle install
Unfortunately, a fatal error has occurred. Please see the Bundler
troubleshooting documentation at http://bit.ly/bundler-issues. Thanks!
C:/Ruby193/lib/ruby/gems/1.9.1/bundler/gems/capistrano-cook-d0d4f904a443/capistr
ano-cook.gemspec:17:in ``': No such file or directory - git ls-files (Errno::ENO

在运行 bundle install 时,在 Git Bash 控制台中它工作正常。但是当需要 capistrano 部署文件中的 gem 时,它不会被加载。好像它毕竟没有安装。

捆绑器 gem 版本为 1.2.3

C:\rails\app>gem show capistrano-cook
ERROR:  While executing gem ... (RuntimeError)
    Unknown command show

C:\rails\app>bundle show capistrano-cook
C:/Ruby193/lib/ruby/gems/1.9.1/bundler/gems/capistrano-cook-d0d4f904a443

C:\rails\app>
4

1 回答 1

3

尝试:

gem 'capistrano-cook', :git => 'git://github.com/subsis/capistrano-cook.git'
于 2013-02-16T18:13:05.493 回答