mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-22 22:06:45 +00:00
Also: - Highlight syntax - Change http to https - Update License - Fix default value of today (Date.current)
32 lines
694 B
Ruby
32 lines
694 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.main = 'README.md'
|
|
rdoc.rdoc_dir = 'rdoc'
|
|
rdoc.title = 'ValidatesTimeliness'
|
|
rdoc.options << '--line-numbers' << '--inline-source'
|
|
rdoc.rdoc_files.include('README.md')
|
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
|
end
|
|
|
|
desc 'Default: run specs.'
|
|
task :default => :spec
|