From 1a5d96c250027012bd8a2683f2e05deedeaee1df Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Wed, 25 Nov 2015 08:21:23 +0100 Subject: [PATCH] Add spec & help rules to Rakefile. --- Rakefile | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 2995527..0dc9771 100644 --- a/Rakefile +++ b/Rakefile @@ -1 +1,26 @@ -require "bundler/gem_tasks" + +require 'rake' +require 'rake/testtask' + +Rake::TaskManager.record_task_metadata = true + +require 'bundler/gem_tasks' + +Rake::TestTask.new do |t| + #t.warning = true + t.verbose = true + t.libs << "spec" + t.test_files = FileList['spec/**/*_spec.rb'] +end + +# Set default task to list all task +desc 'Default task (build)' +task :default do + puts 'Usage : rake ' + puts '' + + Rake::application.options.show_tasks = :tasks # this solves sidewaysmilk problem + Rake::application.options.show_task_pattern = // + Rake::application.display_tasks_and_comments +end +