Skip to content

Commit 430da84

Browse files
authored
Remove rdoc coverage workaround (#3913)
This is long dead code
1 parent caf018e commit 430da84

1 file changed

Lines changed: 0 additions & 24 deletions

File tree

rakelib/rdoc.rake

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,6 @@ rescue LoadError
77
return
88
end
99

10-
if RDoc::VERSION <= "6.5.0"
11-
# RDoc 6.5.0 and earlier did not create an rdoc:coverage task. This patches it
12-
# in in the same way newer versions do.
13-
RDoc::Task.prepend(
14-
Module.new {
15-
def define
16-
super.tap do
17-
namespace rdoc_task_name do
18-
desc "Print RDoc coverage report"
19-
task :coverage do
20-
@before_running_rdoc.call if @before_running_rdoc
21-
opts = option_list << "-C"
22-
args = opts + @rdoc_files
23-
24-
$stderr.puts "rdoc #{args.join(" ")}" if Rake.application.options.trace
25-
RDoc::RDoc.new.document(args)
26-
end
27-
end
28-
end
29-
end
30-
}
31-
)
32-
end
33-
3410
RDoc::Task.new(:rdoc) do |rdoc|
3511
rdoc.main = "README.md"
3612
rdoc.markup = "markdown"

0 commit comments

Comments
 (0)