From e85aac7a1dc524044e44c812cd328e0b74adcb1c Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sat, 7 Nov 2015 22:32:57 -0500 Subject: [PATCH] Don't hide shell output in the Rakefile. --- Rakefile | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) 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 -- 2.43.2