Ruby on rails 如何直接从Github使用边缘版本的Sunspot,而不是通过Rubygems?

Ruby on rails 如何直接从Github使用边缘版本的Sunspot,而不是通过Rubygems?,ruby-on-rails,solr,github,sunspot,Ruby On Rails,Solr,Github,Sunspot,为了克服solr的一个bug,我需要运行一个比Rubygems版本的Sunspot更新的版本。我在Github上注意到有一个非常好的版本,其中包括一个更新版本的Solr 我如何配置我的Gemfile直接从repo而不是RubyGems中提取。目前我有以下几点: gem 'sunspot' gem 'sunspot_rails' gem 'sunspot_test' gem 'sunspot_cell', :git => 'git://github.com/zheileman/sunspot

为了克服solr的一个bug,我需要运行一个比Rubygems版本的Sunspot更新的版本。我在Github上注意到有一个非常好的版本,其中包括一个更新版本的Solr

我如何配置我的Gemfile直接从repo而不是RubyGems中提取。目前我有以下几点:

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
如果我简单地将回购协议添加到太阳黑子宝石线中,当我运行捆绑包时,一切都会崩溃。由于太阳黑子是太阳宝石,我不知道我应该用哪条线从回购协议中获得它

谢谢,
Graeme

我不是ruby开发人员,但这里有一个关于ruby的演练,可能会有所帮助

明白了!答案是指向github上的主要回购协议,并在适当的情况下使用require将其缩小到相关的子部分

编辑的文件如下:

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