Sha256: a0571e7d4398578def9a48b4409dc2215e5c3c5926f846a1b3a78f2bed0b0b72

Contents?: true

Size: 1.06 KB

Versions: 8

Compression:

Stored size: 1.06 KB

Contents

require 'rubygems'
require 'rake'

# load rake tasks in lib/tasks
Dir.glob('lib/tasks/*.rake').each { |r| import r }

require 'bundler'
Bundler::GemHelper.install_tasks

require 'spec/rake/spectask'
Spec::Rake::SpecTask.new(:spec) do |spec|
  spec.libs << 'lib' << 'spec'
  spec.spec_files = FileList['spec/**/*_spec.rb']
end

Spec::Rake::SpecTask.new(:rcov) do |spec|
  spec.libs << 'lib' << 'spec'
  spec.pattern = 'spec/**/*_spec.rb'
  spec.rcov = true
end

# task :spec => :check_dependencies

task :default => :spec

require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
  version = File.exist?('VERSION') ? File.read('VERSION') : ""

  rdoc.rdoc_dir = 'rdoc'
  rdoc.title = "solrizer #{version}"
  rdoc.rdoc_files.include('README*')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

begin
  require 'rcov/rcovtask'
  Rcov::RcovTask.new do |test|
    test.libs << 'test'
    test.pattern = 'test/**/test_*.rb'
    test.verbose = true
  end
rescue LoadError
  task :rcov do
    abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
solrizer-fedora-1.2.3 Rakefile
solrizer-fedora-1.2.2 Rakefile
solrizer-fedora-1.2.1 Rakefile
solrizer-fedora-1.2.0 Rakefile
solrizer-fedora-1.1.3 Rakefile
solrizer-fedora-1.1.2 Rakefile
solrizer-fedora-1.1.1 Rakefile
solrizer-fedora-1.1.0 Rakefile