2011-08-31 17:12:24 -04:00
|
|
|
require 'bundler/gem_tasks'
|
2008-01-07 14:11:38 -05:00
|
|
|
|
2011-08-31 17:12:24 -04:00
|
|
|
require 'rspec/core'
|
|
|
|
require 'rspec/core/rake_task'
|
|
|
|
RSpec::Core::RakeTask.new(:spec) do |spec|
|
|
|
|
spec.pattern = FileList['spec/**/*_spec.rb']
|
2008-01-07 14:11:38 -05:00
|
|
|
end
|
|
|
|
|
2009-10-15 00:34:08 -04:00
|
|
|
require 'rake/testtask'
|
|
|
|
Rake::TestTask.new(:test) do |test|
|
|
|
|
test.libs << 'lib' << 'test'
|
|
|
|
test.pattern = 'test/**/*_test.rb'
|
|
|
|
test.verbose = true
|
2008-02-21 12:37:56 -05:00
|
|
|
end
|
2008-02-21 11:41:56 -05:00
|
|
|
|
2011-08-31 17:12:24 -04:00
|
|
|
require 'rdoc/task'
|
|
|
|
require 'aasm/version'
|
2011-01-13 02:58:20 -05:00
|
|
|
require 'sdoc'
|
2008-04-29 02:08:51 -04:00
|
|
|
|
2011-08-31 17:12:24 -04:00
|
|
|
Rake::RDocTask.new do |rdoc|
|
2011-01-13 02:58:20 -05:00
|
|
|
rdoc.rdoc_dir = 'rdoc'
|
2011-08-31 17:12:24 -04:00
|
|
|
rdoc.title = "aasm #{AASM::VERSION}"
|
2011-01-13 02:58:20 -05:00
|
|
|
rdoc.rdoc_files.include('README*')
|
|
|
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
2011-08-31 17:12:24 -04:00
|
|
|
end
|
2011-10-15 11:32:28 -04:00
|
|
|
|
|
|
|
task :default => :spec
|