我已經克隆了Rails存儲庫,嘗試幫助關閉一些問題,當然,選擇遵循Contributing to Ruby on Rails指南的Hard Way。一切都很順利,克隆了回購,開始跟蹤上游並繼續安裝捆綁的寶石並運行測試。馬上蝙蝠,我得到這個:克隆Ruby on Rails存儲庫但無法安裝捆綁的寶石
$ bundle install
Updating git://github.com/rails/arel.git
Updating git://github.com/brynary/rack-test.git
Updating git://github.com/rails/jquery-rails.git
Updating git://github.com/rails/coffee-rails.git
Updating git://github.com/wycats/thor.git
Updating git://github.com/rails/activerecord-deprecated_finders.git
Updating git://github.com/rails/sprockets-rails.git
Updating git://github.com/voloko/sdoc.git
Fetching gem metadata from https://rubygems.org/........
Fetching gem metadata from https://rubygems.org/..
Could not find gem 'activerecord-deprecated_finders (= 0.0.1) ruby', which is required by gem 'rails (>= 0) ruby', in any of the sources.
跋涉了一下谷歌,我發現,創業板的ActiveRecord-deprecated_finders似乎尚未對RubyGems的尚未公佈,這將解釋最後一個錯誤之後。 Yehuda Katz表明,這些類型的依賴性可以在Gemfile中聲明,並會覆蓋gemspec定義,這是發展的Rails的好鄉親確實做到:
# rails/Gemfile
...
gem 'activerecord-deprecated_finders', github: 'rails/activerecord-deprecated_finders', branch: 'master'
...
我已經試過耶胡達的評論者之一的建議職位,但它也沒有工作:
# rails/Gemfile
...
@dependencies.delete_if{ |d| d.name == 'activerecord-deprecated_finders' }
...
所以,我有點不知所措,爲什麼bundle install
沒有去工作。我在activerecord/activerecord.gemspec
上發現了一個關於該創業板的參考,並解釋了這個問題,但這看起來似乎不是一個可接受的解決方案。有誰知道我可能出錯的地方?我正在使用Ruby 1.9.3p286和Bundler 1.2.3。
PS:在生成新的Rails 4.0.0.beta應用程序時,我看到很多關於此gem的信息,這不是我想要在此完成的。
謝謝!
請給你的Gemfile – ByScripts