require 'rake/testtask'
-desc "Clean up generated files"
+desc 'Clean up generated files'
task :clean do
- `rm -f *.gem`
+ sh 'rm -f *.gem'
+end
+
+
+desc 'Generate HTML documentation'
+task :doc do
+ sh 'yardoc --protected --private --output-dir doc/html'
end
desc "Build the gem"
task :build => :clean do
- `gem build *.gemspec`
+ sh 'gem build *.gemspec'
end
-desc "Install the gem locally (user install)"
+desc 'Install the gem locally (user install)'
task :install => :build do
- `gem install --user-install *.gem`
+ sh 'gem install --user-install *.gem'
end
Rake::TestTask.new do |t|
t.libs << 'test'
end
-desc "Run tests"
+desc 'Run tests'
task :default => :test