Sha256: c75a127e043b988ca96c9e547c5303409e09154061bbed06c218cb2a8084382e

Contents?: true

Size: 1.13 KB

Versions: 21

Compression:

Stored size: 1.13 KB

Contents

require 'rubygems'
require 'bundler/setup'
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'rake/gempackagetask'

$LOAD_PATH.unshift("lib")
load 'tasks/shoulda.rake'

test_files_pattern = 'test/**/*_test.rb'
Rake::TestTask.new do |t|
  t.libs << 'lib' << 'test'
  t.pattern = test_files_pattern
  t.verbose = false
end

Rake::RDocTask.new { |rdoc|
  rdoc.rdoc_dir = 'doc'
  rdoc.title    = "shoulda-context -- Context framework for Test::Unit"
  rdoc.options << '--line-numbers'
  rdoc.template = "#{ENV['template']}.rb" if ENV['template']
  rdoc.rdoc_files.include('README.rdoc', 'CONTRIBUTION_GUIDELINES.rdoc', 'lib/**/*.rb')
}

desc "Run code-coverage analysis using rcov"
task :coverage do
  rm_rf "coverage"
  files = Dir[test_files_pattern]
  system "rcov --rails --sort coverage -Ilib #{files.join(' ')}"
end

eval("$specification = begin; #{IO.read('shoulda-context.gemspec')}; end")
Rake::GemPackageTask.new $specification do |pkg|
  pkg.need_tar = true
  pkg.need_zip = true
end

desc "Clean files generated by rake tasks"
task :clobber => [:clobber_rdoc, :clobber_package]

desc 'Default: run tests'
task :default => [:test]

Version data entries

21 entries across 18 versions & 3 rubygems

Version Path
challah-rolls-0.2.0 vendor/bundle/gems/shoulda-context-1.0.0/Rakefile
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.3/vendor/bundle/gems/shoulda-context-1.0.0/Rakefile
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.0.pre/vendor/bundle/gems/shoulda-context-1.0.0/Rakefile
challah-0.8.3 vendor/bundle/gems/shoulda-context-1.0.0/Rakefile
challah-0.8.1 vendor/bundle/gems/shoulda-context-1.0.0/Rakefile
challah-rolls-0.1.0 vendor/bundle/gems/shoulda-context-1.0.0/Rakefile
challah-rolls-0.1.0 vendor/bundle/gems/challah-0.8.0.pre/vendor/bundle/gems/shoulda-context-1.0.0/Rakefile
challah-0.8.0.pre vendor/bundle/gems/shoulda-context-1.0.0/Rakefile
challah-0.7.1 vendor/bundle/gems/shoulda-context-1.0.0/Rakefile
challah-0.7.0 vendor/bundle/gems/shoulda-context-1.0.0/Rakefile
challah-0.7.0.pre2 vendor/bundle/gems/shoulda-context-1.0.0/Rakefile
challah-0.7.0.pre vendor/bundle/gems/shoulda-context-1.0.0/Rakefile
challah-0.6.2 vendor/bundle/gems/shoulda-context-1.0.0/Rakefile
challah-0.6.1 vendor/bundle/gems/shoulda-context-1.0.0/Rakefile
challah-0.6.0 vendor/bundle/gems/shoulda-context-1.0.0/Rakefile
challah-0.5.4 vendor/bundle/gems/shoulda-context-1.0.0/Rakefile
challah-0.5.3 vendor/bundle/gems/shoulda-context-1.0.0/Rakefile
challah-0.5.2 vendor/bundle/gems/shoulda-context-1.0.0/Rakefile
challah-0.5.1 vendor/bundle/gems/shoulda-context-1.0.0/Rakefile
shoulda-context-1.0.0 Rakefile