Sha256: 044a0596b42b699a65f827eedc24e2b7627c0bb61811c746ce4edb20d4ac96bf

Contents?: true

Size: 1.15 KB

Versions: 2

Compression:

Stored size: 1.15 KB

Contents

ruby_version = Gem::Version.new(RUBY_VERSION)

if ruby_version < Gem::Version.new('3.0.0')
  ['5.0.0', '5.1.0', '5.2.0'].each do |rails_version|
    appraise "rails-#{rails_version}" do
      gem 'sunspot', path: File.expand_path('sunspot', ENV['SUNSPOT_LIB_HOME'])
      gem 'sunspot_solr', path: File.expand_path('sunspot_solr', ENV['SUNSPOT_LIB_HOME'])
      gem 'rails', "~> #{rails_version}"
      gem 'sprockets', '~> 3.0'
      gem 'progress_bar', '~> 1.0.5', require: false
      gem 'sqlite3', '~> 1.3.0'
      gem 'rspec', '~> 3.7'
      gem 'rspec-rails', '~> 3.7'
    end
  end
end

if Gem::Version.new('3.0.0') <= ruby_version && ruby_version < Gem::Version.new('3.4.0')
  ['6.1.0', '7.0.0'].each do |rails_version|
    appraise "rails-#{rails_version}" do
      gem 'sunspot', path: File.expand_path('sunspot', ENV['SUNSPOT_LIB_HOME'])
      gem 'sunspot_solr', path: File.expand_path('sunspot_solr', ENV['SUNSPOT_LIB_HOME'])
      gem 'rails', "~> #{rails_version}"
      gem 'sprockets', '~> 3.0'
      gem 'progress_bar', '~> 1.0.5', require: false
      gem 'sqlite3', '~> 1.4.0'
      gem 'rspec', '~> 3'
      gem 'rspec-rails', '~> 6'
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sunspot_rails-2.7.1 Appraisals
sunspot_rails-2.7.0 Appraisals