爲什麼不能bundler找到機械寶石?Bundler爲什麼找不到這個寶石?
以下是我的Rails項目的Gemfile:
gem 'mechanize', :git => 'git://github.com/tenderlove/mechanize.git'
運行捆綁安裝引發以下錯誤:
Updating git://github.com/tenderlove/mechanize.git
Fetching source index for http://rubygems.org/
Could not find gem 'mechanize (>= 0)' in git://github.com/tenderlove/mechanize.git (at master).
Source does not contain any versions of 'mechanize (>= 0)'
我建立該項目,使一些小的修改後得出這個問題,但無法讓捆綁商使用github位置或本地路徑。爲什麼它找不到寶石?
如果我刪除所有說明,只是做gem 'mechanize'
,那麼它的工作完美無瑕。
版本:捆紮機1.0.14 +的Rails 3.1發行Canditate +紅寶石1.8.7(RVM通過)+ Debian的5
我將它克隆到我的gems目錄中,如何在我的應用程序中使用它? – Marco 2011-06-02 00:18:29
另外,你也可以分叉並提供你自己的gemspec – 2011-06-02 00:19:37