summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2014-03-02 21:37:58 -0800
committerAndre Arko <andre@arko.net>2014-03-02 21:37:58 -0800
commit2e2be72e1350a7aa05eed2bf18937a54b5e6cb52 (patch)
tree7270888af9dcf4db41dde02f7ae93ff6f289e466 /Rakefile
parenta97ee81ddb7bdd88a870cde9d45237ed54bfeed9 (diff)
downloadbundler-2e2be72e1350a7aa05eed2bf18937a54b5e6cb52.tar.gz
Ruby 1.8 is still a thing
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/Rakefile b/Rakefile
index d1dafa1c6e..b79d0b4639 100644
--- a/Rakefile
+++ b/Rakefile
@@ -30,9 +30,17 @@ end
namespace :spec do
desc "Ensure spec dependencies are installed"
task :deps do
- deps = RUBY_ENGINE == 'jruby' ?
- {"rspec" => "~> 3.0.beta"} :
- {"rdiscount" => "~> 1.6", "ronn" => "~> 0.7.3", "rspec" => "~> 3.0.beta"}
+ deps = {
+ "rdiscount" => "~> 1.6",
+ "ronn" => "~> 0.7.3",
+ "rspec" => "~> 3.0.beta"
+ }
+
+ # JRuby can't build ronn or rdiscount, so we skip that
+ if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'jruby'
+ deps.delete("ronn")
+ deps.delete("rdiscount")
+ end
deps.each do |name, version|
sh "#{Gem.ruby} -S gem list -i '^#{name}$' -v '#{version}' || " \