Permalink
Browse files

Merge pull request #110 from iNecas/ruby2-rdoc4

Problem installing with Ruby 2.0 + RDoc 4.0
  • Loading branch information...
2 parents 15fcba2 + fa5ec50 commit 12ec1c5b08e6863445d512357a064f9be3d4a944 @iNecas iNecas committed Mar 29, 2013
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/apipie/markup.rb
@@ -7,7 +7,11 @@ class RDoc
def initialize
require 'rdoc'
require 'rdoc/markup/to_html'
- @rdoc ||= ::RDoc::Markup::ToHtml.new
+ if Gem::Version.new(::RDoc::VERSION) < Gem::Version.new('4.0.0')
+ @rdoc ||= ::RDoc::Markup::ToHtml.new()
+ else
+ @rdoc ||= ::RDoc::Markup::ToHtml.new(::RDoc::Options.new)
+ end
end
def to_html(text)

0 comments on commit 12ec1c5

Please sign in to comment.