summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
Diffstat (limited to 'Rakefile')
-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|