<%- case @markup
    when :markdown -%>
  case RUBY_PLATFORM
  when 'java'
    gem 'maruku'
  else
    gem 'bluecloth', '>= 2.0.0'
  end
<%- when :textile -%>
  gem 'RedCloth'
<%- end -%>
  gem 'yard', '<%= @yard_dependency %>'

<%- case @markup
    when :markdown -%>
  platforms :jruby do
    gem 'maruku'
  end

  platforms :ruby do
    gem 'bluecloth', '>= 2.0.0'
  end
<%- when :textile -%>
  gem 'RedCloth'
<%- end -%>
  gem 'yard', '<%= @yard_dependency %>'

Use platforms :jruby and platforms :ruby to separate JRuby deps from non-JRuby deps.
Use platforms :jruby and platforms :ruby to separate JRuby deps from non-JRuby deps.
