Skip to content
Newer
Older
100644 28 lines (22 sloc) 599 Bytes
feacdb0 @igrigorik cleanup rakefile
igrigorik authored
1 require 'bundler'
2 Bundler::GemHelper.install_tasks
3
73044bb @dj2 Initial pass at doc'ing the public API
dj2 authored
4 require 'yard'
9b7b149 @dj2 rspec2
dj2 authored
5 require 'rspec/core/rake_task'
1a1b25b @dj2 Add Test::Unit test to verify test_helper works.
dj2 authored
6 require 'rake/testtask'
3b5f3a4 @dj2 import goliath code
dj2 authored
7
1a1b25b @dj2 Add Test::Unit test to verify test_helper works.
dj2 authored
8 task :default => [:test]
9 task :test => [:spec, :unit]
10
11 desc "run the unit test"
12 Rake::TestTask.new(:unit) do |t|
4842dc9 @dj2 fix rake task
dj2 authored
13 t.libs << "test"
1a1b25b @dj2 Add Test::Unit test to verify test_helper works.
dj2 authored
14 t.test_files = FileList['test/**/*_test.rb']
15 t.verbose = true
16 end
3b5f3a4 @dj2 import goliath code
dj2 authored
17
18 desc "run spec tests"
9b7b149 @dj2 rspec2
dj2 authored
19 RSpec::Core::RakeTask.new('spec') do |t|
20 t.pattern = 'spec/**/*_spec.rb'
3b5f3a4 @dj2 import goliath code
dj2 authored
21 end
71852e6 @dj2 add rdoc and gem tasks
dj2 authored
22
73044bb @dj2 Initial pass at doc'ing the public API
dj2 authored
23 desc 'Generate documentation'
24 YARD::Rake::YardocTask.new do |t|
25 t.files = ['lib/**/*.rb', '-', 'LICENSE']
26 t.options = ['--main', 'README.md', '--no-private']
71852e6 @dj2 add rdoc and gem tasks
dj2 authored
27 end
Something went wrong with that request. Please try again.