summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-03-25 13:54:45 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-03-25 13:54:45 +0100
commitc0016e29df21296efc3baa099ee496eb929af911 (patch)
tree25d4a22990dc215897dd304df51afce14d362915
parentaaa0b0ce6a447aa0f01301799f3163832da6566d (diff)
downloadbundler-c0016e29df21296efc3baa099ee496eb929af911.tar.gz
Little refactor
-rw-r--r--Rakefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Rakefile b/Rakefile
index 597564736e..6966ee0c28 100644
--- a/Rakefile
+++ b/Rakefile
@@ -10,8 +10,8 @@ else
File.expand_path("tmp/rubygems")
end
-def bundler_spec
- @bundler_spec ||= Gem::Specification.load("bundler.gemspec")
+def development_dependencies
+ @development_dependencies ||= Gem::Specification.load("bundler.gemspec").development_dependencies
end
# Benchmark task execution
@@ -43,7 +43,7 @@ namespace :spec do
desc "Ensure spec dependencies are installed"
task :deps do
- deps = Hash[bundler_spec.development_dependencies.map do |d|
+ deps = Hash[development_dependencies.map do |d|
[d.name, d.requirement.to_s]
end]
@@ -228,7 +228,7 @@ task :rubocop do
end
namespace :man do
- ronn_dep = bundler_spec.development_dependencies.find do |dep|
+ ronn_dep = development_dependencies.find do |dep|
dep.name == "ronn"
end