diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-03-25 13:54:45 +0100 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-03-25 13:54:45 +0100 |
commit | c0016e29df21296efc3baa099ee496eb929af911 (patch) | |
tree | 25d4a22990dc215897dd304df51afce14d362915 | |
parent | aaa0b0ce6a447aa0f01301799f3163832da6566d (diff) | |
download | bundler-c0016e29df21296efc3baa099ee496eb929af911.tar.gz |
Little refactor
-rw-r--r-- | Rakefile | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |