Sha256: ac49a274e1cec6690a12338cf695cc741bb8f9da47e6a7de5c19876996388d7b

Contents?: true

Size: 919 Bytes

Versions: 2

Compression:

Stored size: 919 Bytes

Contents

require 'rake'
require 'rake/testtask'
require 'rdoc/task'
require "bundler/gem_tasks"
Dir["lib/relevance/tasks/*.rake"].each {|f| load f }

begin
  require 'rspec'
  require 'rspec/core/rake_task'

  RSpec::Core::RakeTask.new('spec') do |t|
    t.verbose = true
  end

  desc "Run all RSpec specs using rcov"
  RSpec::Core::RakeTask.new :rcov do |t|
    t.pattern = File.dirname(__FILE__)+"/spec/**/*_spec.rb"
    t.rcov = true
    t.rcov_opts = %[--exclude "gems/*,/Library/Ruby/*,config/*" --text-summary  --sort coverage]
  end

  task :default => :spec
rescue LoadError
  puts "rspec, or one of its dependencies, is not available. Install it with: sudo gem install rspec"
end

Rake::RDocTask.new do |rdoc|
  version = File.exist?('VERSION') ? File.read('VERSION') : ''
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title = "tarantula #{version}"
  rdoc.rdoc_files.include('README*')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tarantula-0.5.1 Rakefile
tarantula-0.5.0 Rakefile