File tree Expand file tree Collapse file tree 7 files changed +35
-17
lines changed
rdoc/generator/template/rorvswild
rorvswild_theme_rdoc/patches Expand file tree Collapse file tree 7 files changed +35
-17
lines changed Original file line number Diff line number Diff line change
1
+ # Changelog of RorVsWild theme for RDoc
2
+
3
+ ## Unreleased
4
+
5
+ - Fix backward compatibility since RDoc 6.13.0
Original file line number Diff line number Diff line change 3
3
< h3 > Extended With Modules</ h3 >
4
4
5
5
< ul class ="link-list ">
6
- <%- klass . each_extend do |ext | -%>
6
+ <%- klass . extends . each do |ext | -%>
7
7
<%- unless String === ext . module then -%>
8
8
< li > < a class ="extend " href ="<%= klass . aref_to ext . module . path %> "> <%= ext . module . full_name %> </ a >
9
9
<%- else -%>
Original file line number Diff line number Diff line change 3
3
< h3 > Included Modules</ h3 >
4
4
5
5
< ul class ="link-list ">
6
- <%- klass . each_include do |inc | -%>
6
+ <%- klass . includes . each do |inc | -%>
7
7
<%- unless String === inc . module then -%>
8
8
< li > < a class ="include " href ="<%= klass . aref_to inc . module . path %> "> <%= inc . module . full_name %> </ a >
9
9
<%- else -%>
Original file line number Diff line number Diff line change 1
- require "rorvswild_theme_rdoc/patches/rdoc"
1
+ require "rorvswild_theme_rdoc/patches/rdoc_before_6.8.0"
2
+ require "rorvswild_theme_rdoc/patches/rdoc_before_6.13.0"
2
3
3
4
module RorVsWildThemeRdoc
4
5
end
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ if Gem ::Version . new ( RDoc ::VERSION ) < Gem ::Version . new ( "6.13.0" )
2
+ # https://github.com/ruby/rdoc/pull/1315
3
+ module RDoc
4
+ class NormalClass
5
+ attr_reader :includes
6
+ attr_reader :extends
7
+ attr_reader :constants
8
+ end
9
+ end
10
+ end
Original file line number Diff line number Diff line change
1
+ if Gem ::Version . new ( RDoc ::VERSION ) < Gem ::Version . new ( "6.8.0" )
2
+ class RDoc ::ClassModule
3
+ ##
4
+ # Get all super classes of this class in an array. The last element might be
5
+ # a string if the name is unknown.
6
+ def super_classes
7
+ result = [ ]
8
+ parent = self
9
+ while parent = parent . superclass
10
+ result << parent
11
+ return result if parent . is_a? ( String )
12
+ end
13
+ result
14
+ end
15
+ end
16
+ end
You can’t perform that action at this time.
0 commit comments