mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-29 05:51:22 +00:00
31 lines
766 B
Ruby
31 lines
766 B
Ruby
require 'rake'
|
|
require 'rake/testtask'
|
|
require 'rake/rdoctask'
|
|
require 'spec/rake/spectask'
|
|
|
|
desc 'Default: run specs'
|
|
task :default => :spec
|
|
|
|
spec_files = Rake::FileList["spec/**/*_spec.rb"]
|
|
|
|
desc "Run specs"
|
|
Spec::Rake::SpecTask.new do |t|
|
|
t.spec_files = spec_files
|
|
t.spec_opts = ["-c"]
|
|
end
|
|
|
|
desc "Generate code coverage"
|
|
Spec::Rake::SpecTask.new(:coverage) do |t|
|
|
t.spec_files = spec_files
|
|
t.rcov = true
|
|
t.rcov_opts = ['--exclude', 'spec,/var/lib/gems']
|
|
end
|
|
|
|
desc 'Generate documentation for the country_code_select plugin.'
|
|
Rake::RDocTask.new(:rdoc) do |rdoc|
|
|
rdoc.rdoc_dir = 'rdoc'
|
|
rdoc.title = 'CountryCodeSelect'
|
|
rdoc.options << '--line-numbers' << '--inline-source'
|
|
rdoc.rdoc_files.include('README')
|
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
|
end
|