2011-02-01 49 views
2

Authlogic有一對unfortunate deprecation warnings固定在fork如何使用bundler從git存儲庫獲取gem?

如何使用此分叉版本?我嘗試將以下內容添加到我的Gemfile中:

gem 'authlogic', :git => 'git://github.com/railsware/authlogic.git' 

而且它沒有那麼好。我開始得到:

git://github.com/railsware/authlogic.git(在主)沒有檢出。請運行bundle install

而且

Git資源的git://github.com/railsware/authlogic.git尚未檢出。在嘗試啓動您的應用程序之前請運行bundle install

幫助將獎勵virtual cookies

回答

3

您是否在刪除Gemfile.lock後嘗試運行bundle install?

 
rm Gemfile.lock 
bundle install 

你的Gemfile配置應該工作,我能夠使用相同的,我的包安裝命令執行一樣我的包list命令。

我的另一個建議是刪除你的〜/ .bundler和.bundle目錄並檢查你是否正確配置了git。

+0

聽起來很合理。我按照步驟進行了操作,但仍然沒有簽出「git://github.com/railsware/authlogic.git(at master)」,運行`bundle list`時運行`bundle install`「。 – 2011-02-01 02:17:06

0

更新Gemfile後,需要從終端運行bundle install

相關問題