mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-22 13:56:48 +00:00
31 lines
665 B
Ruby
31 lines
665 B
Ruby
require 'bundler'
|
|
require 'bundler/setup'
|
|
|
|
require 'appraisal'
|
|
|
|
Bundler::GemHelper.install_tasks
|
|
|
|
require 'rdoc/task'
|
|
require 'rspec/core/rake_task'
|
|
|
|
desc "Run specs"
|
|
RSpec::Core::RakeTask.new(:spec)
|
|
|
|
desc "Generate code coverage"
|
|
RSpec::Core::RakeTask.new(:coverage) do |t|
|
|
t.rcov = true
|
|
t.rcov_opts = ['--exclude', 'spec']
|
|
end
|
|
|
|
desc 'Generate documentation for plugin.'
|
|
Rake::RDocTask.new(:rdoc) do |rdoc|
|
|
rdoc.rdoc_dir = 'rdoc'
|
|
rdoc.title = 'ValidatesTimeliness'
|
|
rdoc.options << '--line-numbers' << '--inline-source'
|
|
rdoc.rdoc_files.include('README')
|
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
|
end
|
|
|
|
desc 'Default: run specs.'
|
|
task :default => :spec
|