Fix Rdoc render with ruby 2.0
Philippe Lafoucrière philippe.lafoucriere@gmail.com
Mon, 26 Aug 2013 12:47:22 +0000
1 files changed,
5 insertions(+),
1 deletions(-)
jump to
M
lib/github/markup/rdoc.rb
→
lib/github/markup/rdoc.rb
@@ -9,7 +9,11 @@ @content = 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