Sha256: ac0cf733a7d660fb491ace6a216bb59ba201a06fb8f6a9cce99b11e83c3fbe17

Contents?: true

Size: 1.07 KB

Versions: 1

Compression:

Stored size: 1.07 KB

Contents

require 'rubygems'
require 'bundler'

Bundler.setup
Bundler.require

require 'spec/rake/spectask'
require 'simplabs/excellent/rake'
require 'rake/extensiontask'

desc 'Default: run specs.'
task :default => :spec

desc 'Run the specs.'
Spec::Rake::SpecTask.new(:spec) do |t|
  t.spec_opts << '--color'
  t.spec_opts << '--format=html:doc/spec.html'
  t.spec_opts << '--format=specdoc'
  t.rcov_opts << '--exclude "gems/*,spec/*,init.rb"'
  t.rcov       = true
  t.rcov_dir   = 'doc/coverage'
  t.spec_files = FileList['spec/**/*_spec.rb']
end

desc 'Generate documentation for the Melbourne gem.'
YARD::Rake::YardocTask.new(:doc) do |t|
  t.files   = ['lib/**/*.rb', '-', 'HISTORY.md']
  t.options = ['--no-private', '--title', 'Melbourne Documentation']
end

desc 'compile the C extension'
Rake::ExtensionTask.new('melbourne') do |ext|
  ext.lib_dir = File.join('lib', 'ext')
end
Rake::Task[:spec].prerequisites << :compile

desc 'Analyse the Melbourne source with Excellent.'
Simplabs::Excellent::Rake::ExcellentTask.new(:excellent) do |t|
  t.html  = 'doc/excellent.html'
  t.paths = ['lib']
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
melbourne-1.0.1 Rakefile