2011-12-06 13:51:56 -05:00
|
|
|
require "bundler/gem_tasks"
|
2011-12-07 20:58:58 -05:00
|
|
|
require "rspec/core/rake_task"
|
2011-12-06 14:31:22 -05:00
|
|
|
|
2012-10-29 16:08:10 -04:00
|
|
|
# Don't require doc generation gems on Travis
|
|
|
|
if ENV['CI'] != 'true'
|
|
|
|
require "github/markup"
|
|
|
|
require "redcarpet"
|
|
|
|
require "yard"
|
|
|
|
require "yard/rake/yardoc_task"
|
|
|
|
|
|
|
|
YARD::Rake::YardocTask.new do |t|
|
|
|
|
OTHER_PATHS = %w()
|
|
|
|
t.files = ['lib/**/*.rb', OTHER_PATHS]
|
|
|
|
t.options = %w(--markup-provider=redcarpet --markup=markdown --main=README.md)
|
|
|
|
end
|
2011-12-06 14:31:22 -05:00
|
|
|
end
|
2011-12-07 20:58:58 -05:00
|
|
|
|
|
|
|
RSpec::Core::RakeTask.new
|
2012-10-28 08:25:28 -04:00
|
|
|
|
|
|
|
task :default => [:spec]
|