Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ruby 1.8 is still a thing

  • Loading branch information...
commit 2e2be72e1350a7aa05eed2bf18937a54b5e6cb52 1 parent a97ee81
@indirect indirect authored
Showing with 11 additions and 3 deletions.
  1. +11 −3 Rakefile
View
14 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}' || " \
Please sign in to comment.
Something went wrong with that request. Please try again.