summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-03-04 18:24:16 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-03-20 14:22:37 +0100
commitc44bdcdc378700b111721957fce3d33ed890d6e3 (patch)
treeefccdfb08616c2b9a318808975867a2af3f3b15c
parentad9695eef7c26d5dd2872c7b737542530883bdb9 (diff)
downloadbundler-c44bdcdc378700b111721957fce3d33ed890d6e3.tar.gz
Move the `safe_task` method into the :spec namespace
-rw-r--r--Rakefile14
1 files 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|