From: Michael Orlitzky Date: Sun, 8 Nov 2015 03:32:57 +0000 (-0500) Subject: Don't hide shell output in the Rakefile. X-Git-Tag: 0.0.1~14 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=e85aac7a1dc524044e44c812cd328e0b74adcb1c;p=mailshears.git Don't hide shell output in the Rakefile. --- diff --git a/Rakefile b/Rakefile index 7138d8a..9e8d91d 100644 --- a/Rakefile +++ b/Rakefile @@ -1,20 +1,26 @@ 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| @@ -22,5 +28,5 @@ Rake::TestTask.new do |t| t.libs << 'test' end -desc "Run tests" +desc 'Run tests' task :default => :test