Sha256: f82db75b1dc1214a437c3847e20cd1deae62b6adcc49fbc8fd31e58c35503711

Contents?: true

Size: 777 Bytes

Versions: 21

Compression:

Stored size: 777 Bytes

Contents

require 'rake'
require 'spec/rake/spectask'
require 'rake/rdoctask'

task :default => :spec

if File.exist?(sunspot_lib = File.expand_path(File.join(File.dirname(__FILE__), '..', 'sunspot', 'lib')))
  STDERR.puts("Using sunspot lib at #{sunspot_lib}")
  $: << sunspot_lib
end

desc 'Run all specs'
Spec::Rake::SpecTask.new(:spec) do |t|
  t.spec_files = FileList['spec/*_spec.rb']
  t.spec_opts << '--color'
end

task :environment do
  if ENV['SUNSPOT_LIB']
    $: << ENV['SUNSPOT_LIB']
  end
  ENV['RAILS_ROOT'] ||= File.join(File.dirname(__FILE__), 'spec', 'mock_app')
  ENV['RAILS_ENV'] ||= 'test'
  require File.expand_path(File.join(ENV['RAILS_ROOT'], 'config', 'environment.rb'))
end

FileList['dev_tasks/*.rake', 'lib/sunspot/rails/tasks.rb'].each { |file| load(file) }

Version data entries

21 entries across 21 versions & 5 rubygems

Version Path
ruben_sunspot_rails-1.1.4 Rakefile
ruben_sunspot_rails-1.1.3 Rakefile
ruben_sunspot_rails-1.1.2 Rakefile
ruben_sunspot_rails-1.1.1 Rakefile
ruben_sunspot_rails-1.1.0 Rakefile
nuatt_sunspot_rails-1.1.0.3 Rakefile
robsharp-sunspot_rails-1.1.0.2 Rakefile
sunspot_rails-1.1.0 Rakefile
sunspot_rails-1.0.5 Rakefile
sunspot_rails-1.0.4 Rakefile
sunspot_rails-1.0.3 Rakefile
sunspot_rails-1.0.2 Rakefile
sunspot_rails-1.0.1 Rakefile
sunspot_rails-1.0.0 Rakefile
sunspot_rails-0.11.5 Rakefile
sunspot_rails-0.11.4 Rakefile
nxa-sunspot_rails-0.11.3 Rakefile
sunspot_rails-0.11.3 Rakefile
sunspot_rails-0.11.2 Rakefile
sunspot_rails-0.11.1 Rakefile