From bd2982ee38a575679de87f883f65bc07c2cd2916 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20Lafoucrie=CC=80re?= Date: Mon, 26 Aug 2013 12:47:22 +0000 Subject: [PATCH] Fix Rdoc render with ruby 2.0 --- lib/github/markup/rdoc.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/github/markup/rdoc.rb b/lib/github/markup/rdoc.rb index 8332e40..0d58f82 100644 --- a/lib/github/markup/rdoc.rb +++ b/lib/github/markup/rdoc.rb @@ -9,7 +9,11 @@ def initialize(content) end def to_html - h = ::RDoc::Markup::ToHtml.new + if Gem::Version.new(::RDoc::VERSION) < Gem::Version.new('4.0.0') + h = ::RDoc::Markup::ToHtml.new + else + h = ::RDoc::Markup::ToHtml.new(::RDoc::Options.new) + end h.convert(@content) end end -- 1.8.5.1