diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-03-04 18:24:16 +0100 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-03-20 14:22:37 +0100 |
commit | c44bdcdc378700b111721957fce3d33ed890d6e3 (patch) | |
tree | efccdfb08616c2b9a318808975867a2af3f3b15c | |
parent | ad9695eef7c26d5dd2872c7b737542530883bdb9 (diff) | |
download | bundler-c44bdcdc378700b111721957fce3d33ed890d6e3.tar.gz |
Move the `safe_task` method into the :spec namespace
-rw-r--r-- | Rakefile | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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| |