2011-12-07 4 views
3

solrのバグを克服するには、Rubygems版のSunspotに含まれているものより新しいバージョンを実行する必要があります。私はGithubに、非常にrecent commitがあったことに気づきました。これには新しいバージョンのSolrが含まれています。Rubygems経由ではなく、Githubのエッジスポット版のSunspot directを使用するにはどうすればよいですか?

GemfileをRubyGemsからではなくrepoから直接引き出すように設定するにはどうしたらいいですか?現在私は次のことがあります。

gem 'sunspot' 
gem 'sunspot_rails' 
gem 'sunspot_test' 
gem 'sunspot_cell', :git => 'git://github.com/zheileman/sunspot_cell.git' 

group :development, :test do 
    gem 'sunspot_solr' 
    gem 'progress_bar' 
end 

私は単に太陽黒点の宝石のラインにレポを追加した場合、私は、バンドルを実行すると、すべてが崩壊してしまいます。 sunspot_solrの宝石はwithin the sunspot repoなので、私はレポからそれをつかむために使うべき行を知らない。

おかげで、 グレアム

答えて

8

答えはgithubのメインリポジトリをポイントし、関連するサブセクションに絞り込むために必要な場合に使用することです。

編集されたGemfileは次のとおりです。

gem 'sunspot', :git => "git://github.com/sunspot/sunspot.git" 
gem 'sunspot_rails', :git => "git://github.com/sunspot/sunspot.git", :require => "sunspot_rails" 
gem 'sunspot_test' 
gem 'sunspot_cell', :git => 'git://github.com/zheileman/sunspot_cell.git' 

group :development, :test do 
    gem 'sunspot_solr', :git => "git://github.com/sunspot/sunspot.git", :require => "sunspot_solr" 
    gem 'progress_bar' 
end 
0

私はRubyの開発者ではないけど、ここでは役に立つかもしれInstalling Gems from Gitにウォークスルーです。

関連する問題