From fea05694ef38d2612c1f631332db463462760ebf Mon Sep 17 00:00:00 2001 From: Tobias Svensson Date: Mon, 16 Sep 2013 16:24:13 +0100 Subject: [PATCH] Move Rake tasks into subfolder. --- Rakefile | 9 ++------- tasks/bundler.task | 1 + tasks/minitest.task | 6 ++++++ 3 files changed, 9 insertions(+), 7 deletions(-) create mode 100644 tasks/bundler.task create mode 100644 tasks/minitest.task diff --git a/Rakefile b/Rakefile index 9af881f..5e4451a 100644 --- a/Rakefile +++ b/Rakefile @@ -1,8 +1,3 @@ -require 'bundler/gem_tasks' -require 'rake/testtask' +Dir["tasks/**/*.task"].each { |task| load task } -Rake::TestTask.new do |t| - t.pattern = 'test/**/test_*.rb' -end - -task default: :test +task :default => :test diff --git a/tasks/bundler.task b/tasks/bundler.task new file mode 100644 index 0000000..c702cfc --- /dev/null +++ b/tasks/bundler.task @@ -0,0 +1 @@ +require 'bundler/gem_tasks' diff --git a/tasks/minitest.task b/tasks/minitest.task new file mode 100644 index 0000000..83f0acc --- /dev/null +++ b/tasks/minitest.task @@ -0,0 +1,6 @@ +require 'rake/testtask' + +Rake::TestTask.new do |t| + t.pattern = 'test/**/test_*.rb' +end +