diff options
author | Andre Arko <andre@arko.net> | 2014-03-02 21:37:58 -0800 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2014-03-02 21:37:58 -0800 |
commit | 2e2be72e1350a7aa05eed2bf18937a54b5e6cb52 (patch) | |
tree | 7270888af9dcf4db41dde02f7ae93ff6f289e466 /Rakefile | |
parent | a97ee81ddb7bdd88a870cde9d45237ed54bfeed9 (diff) | |
download | bundler-2e2be72e1350a7aa05eed2bf18937a54b5e6cb52.tar.gz |
Ruby 1.8 is still a thing
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -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}' || " \ |