summaryrefslogtreecommitdiffstats
path: root/rubygem-github-markup-1.0.0-rdoc.patch
diff options
context:
space:
mode:
Diffstat (limited to 'rubygem-github-markup-1.0.0-rdoc.patch')
-rw-r--r--rubygem-github-markup-1.0.0-rdoc.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/rubygem-github-markup-1.0.0-rdoc.patch b/rubygem-github-markup-1.0.0-rdoc.patch
new file mode 100644
index 0000000..c47d13c
--- /dev/null
+++ b/rubygem-github-markup-1.0.0-rdoc.patch
@@ -0,0 +1,30 @@
+From bd2982ee38a575679de87f883f65bc07c2cd2916 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Philippe=20Lafoucrie=CC=80re?=
+ <philippe.lafoucriere@gmail.com>
+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
+