Sha256: 5da1f23a43185b0a94b742dd8386fc66fae1493be15b07d32ec5a37ea0150afd

Contents?: true

Size: 689 Bytes

Versions: 11

Compression:

Stored size: 689 Bytes

Contents

require "bundler/gem_tasks"
require "rake/testtask"
require "rdoc/task"

# generate docs
RDoc::Task.new do |rd|
  rd.main     = "README.md"
  rd.title    = "Lolcommits Term Output"
  rd.rdoc_dir = "doc"
  rd.options  << "--all"
  rd.rdoc_files.include("README.md", "LICENSE", "lib/**/*.rb")
end

# run tests
Rake::TestTask.new(:test) do |t|
  t.libs << "test"
  t.libs << "lib"
  t.test_files = FileList["test/**/*_test.rb"]
end

# run tests with code coverage (default)
namespace :test do
  desc "Run all tests and features and generate a code coverage report"
  task :coverage do
    ENV['COVERAGE'] = 'true'
    Rake::Task['test'].execute
  end
end


task :default => ['test:coverage']

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
lolcommits-term_output-0.4.0 Rakefile
lolcommits-term_output-0.3.0 Rakefile
lolcommits-term_output-0.2.0 Rakefile
lolcommits-term_output-0.1.1 Rakefile
lolcommits-term_output-0.1.0 Rakefile
lolcommits-term_output-0.0.6 Rakefile
lolcommits-term_output-0.0.5 Rakefile
lolcommits-term_output-0.0.4 Rakefile
lolcommits-term_output-0.0.3 Rakefile
lolcommits-term_output-0.0.2 Rakefile
lolcommits-term_output-0.0.1 Rakefile