summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2014-05-10 18:34:06 -0700
committerAndre Arko <andre@arko.net>2014-07-17 22:33:01 -0700
commitcb046bc4555c255a8b42eb9b4dabf43a333f672a (patch)
treeae6cad0ce2708366d5eb9c3435e520aa090cc0e8 /Rakefile
parentb4a39e8cc408aca7669bdb7bd86600df4ae47122 (diff)
downloadbundler-cb046bc4555c255a8b42eb9b4dabf43a333f672a.tar.gz
move the dev deps list into the gemspec
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile10
1 files changed, 4 insertions, 6 deletions
diff --git a/Rakefile b/Rakefile
index 3177114563..3775c3dda7 100644
--- a/Rakefile
+++ b/Rakefile
@@ -30,11 +30,10 @@ end
namespace :spec do
desc "Ensure spec dependencies are installed"
task :deps do
- deps = {
- "rdiscount" => "~> 1.6",
- "ronn" => "~> 0.7.3",
- "rspec" => "~> 3.0.beta"
- }
+ spec = Gem::Specification.load("bundler.gemspec")
+ deps = Hash[spec.development_dependencies.map do |d|
+ [d.name, d.requirement.to_s]
+ end]
# JRuby can't build ronn or rdiscount, so we skip that
if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'jruby'
@@ -77,7 +76,6 @@ namespace :spec do
end
begin
- # running the specs needs both rspec and ronn
require 'rspec/core/rake_task'
desc "Run specs"