Sha256: 252ecf3e84d2a589c04aac4e211638ee63da01f210cf570ecb4d27ca91bb3367

Contents?: true

Size: 840 Bytes

Versions: 4

Compression:

Stored size: 840 Bytes

Contents

# -*- encoding: utf-8 -*-
# Copyright © 2011, José Pablo Fernández

require "rake"
require "rake/testtask"
require "bundler/gem_tasks"

desc "Default: run unit tests."
task :default => :test

desc "Test the table_builder plugin."
Rake::TestTask.new(:test) do |t|
  t.libs << "lib"
  t.pattern = "test/**/*_test.rb"
  t.verbose = true
end

begin
  require "rcov/rcovtask"
  Rcov::RcovTask.new do |test|
    test.libs << "test"
    test.pattern = "test/**/test_*.rb"
    test.verbose = true
  end
rescue LoadError => e
  puts "rcov is not installed, oh well"
end

begin
  require "yard"
  YARD::Rake::YardocTask.new do |yard|
    # Use Markdown for documentation.
    yard.options << "--markup" << "markdown"
    # Extra file(s).
    yard.options << "-" << "LICENSE"
  end
rescue LoadError => e
  puts "yard is not installed, oh well"
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
assert_difference-0.5.0 Rakefile
assert_difference-0.4.2 Rakefile
assert_difference-0.4.1 Rakefile
assert_difference-0.4.0 Rakefile