From c44bdcdc378700b111721957fce3d33ed890d6e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Mon, 4 Mar 2019 18:24:16 +0100 Subject: Move the `safe_task` method into the :spec namespace --- Rakefile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Rakefile b/Rakefile index 97608dcce9..d6bb2fe386 100644 --- a/Rakefile +++ b/Rakefile @@ -15,13 +15,6 @@ def bundler_spec @bundler_spec ||= Gem::Specification.load("bundler.gemspec") end -def safe_task(&block) - yield - true -rescue StandardError - false -end - # Benchmark task execution module Rake class Task @@ -42,6 +35,13 @@ task :spec do end namespace :spec do + def safe_task(&block) + yield + true + rescue StandardError + false + end + desc "Ensure spec dependencies are installed" task :deps do deps = Hash[bundler_spec.development_dependencies.map do |d| -- cgit v1.2.1