rdoc 3.9.5 → 3.10.pre.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of rdoc might be problematic. Click here for more details.

Files changed (183) hide show
  1. data.tar.gz.sig +0 -0
  2. data/.autotest +6 -3
  3. data/History.txt +63 -13
  4. data/LICENSE.rdoc +57 -0
  5. data/Manifest.txt +60 -6
  6. data/Rakefile +24 -12
  7. data/TODO.rdoc +30 -0
  8. data/bin/rdoc +0 -2
  9. data/lib/rdoc.rb +55 -2
  10. data/lib/rdoc/alias.rb +0 -2
  11. data/lib/rdoc/anon_class.rb +0 -2
  12. data/lib/rdoc/any_method.rb +0 -3
  13. data/lib/rdoc/attr.rb +0 -2
  14. data/lib/rdoc/class_module.rb +40 -7
  15. data/lib/rdoc/code_object.rb +1 -3
  16. data/lib/rdoc/code_objects.rb +3 -21
  17. data/lib/rdoc/comment.rb +225 -0
  18. data/lib/rdoc/constant.rb +0 -2
  19. data/lib/rdoc/context.rb +37 -120
  20. data/lib/rdoc/context/section.rb +114 -0
  21. data/lib/rdoc/cross_reference.rb +16 -7
  22. data/lib/rdoc/encoding.rb +0 -2
  23. data/lib/rdoc/gauntlet.rb +1 -1
  24. data/lib/rdoc/generator.rb +7 -2
  25. data/lib/rdoc/generator/darkfish.rb +126 -20
  26. data/lib/rdoc/generator/json_index.rb +240 -0
  27. data/lib/rdoc/generator/markup.rb +17 -54
  28. data/lib/rdoc/generator/ri.rb +0 -3
  29. data/lib/rdoc/generator/template/darkfish/_footer.rhtml +5 -0
  30. data/lib/rdoc/generator/template/darkfish/_head.rhtml +16 -0
  31. data/lib/rdoc/generator/template/darkfish/_sidebar_VCS_info.rhtml +18 -0
  32. data/lib/rdoc/generator/template/darkfish/_sidebar_classes.rhtml +9 -0
  33. data/lib/rdoc/generator/template/darkfish/_sidebar_in_files.rhtml +8 -0
  34. data/lib/rdoc/generator/template/darkfish/_sidebar_includes.rhtml +16 -0
  35. data/lib/rdoc/generator/template/darkfish/_sidebar_methods.rhtml +12 -0
  36. data/lib/rdoc/generator/template/darkfish/_sidebar_navigation.rhtml +7 -0
  37. data/lib/rdoc/generator/template/darkfish/_sidebar_pages.rhtml +12 -0
  38. data/lib/rdoc/generator/template/darkfish/_sidebar_parent.rhtml +10 -0
  39. data/lib/rdoc/generator/template/darkfish/_sidebar_search.rhtml +10 -0
  40. data/lib/rdoc/generator/template/darkfish/_sidebar_sections.rhtml +10 -0
  41. data/lib/rdoc/generator/template/darkfish/class.rhtml +161 -0
  42. data/lib/rdoc/generator/template/darkfish/fileinfo.rhtml +32 -0
  43. data/lib/rdoc/generator/template/darkfish/images/add.png +0 -0
  44. data/lib/rdoc/generator/template/darkfish/images/delete.png +0 -0
  45. data/lib/rdoc/generator/template/darkfish/images/tag_blue.png +0 -0
  46. data/lib/rdoc/generator/template/darkfish/images/transparent.png +0 -0
  47. data/lib/rdoc/generator/template/darkfish/index.rhtml +16 -61
  48. data/lib/rdoc/generator/template/darkfish/js/darkfish.js +99 -64
  49. data/lib/rdoc/generator/template/darkfish/js/jquery.js +15 -29
  50. data/lib/rdoc/generator/template/darkfish/js/search.js +94 -0
  51. data/lib/rdoc/generator/template/darkfish/page.rhtml +16 -0
  52. data/lib/rdoc/generator/template/darkfish/rdoc.css +126 -286
  53. data/lib/rdoc/generator/template/darkfish/table_of_contents.rhtml +50 -0
  54. data/lib/rdoc/generator/template/json_index/js/navigation.js +142 -0
  55. data/lib/rdoc/generator/template/json_index/js/searcher.js +228 -0
  56. data/lib/rdoc/ghost_method.rb +0 -2
  57. data/lib/rdoc/include.rb +0 -2
  58. data/lib/rdoc/markup.rb +204 -43
  59. data/lib/rdoc/markup/attr_changer.rb +25 -0
  60. data/lib/rdoc/markup/attr_span.rb +29 -0
  61. data/lib/rdoc/markup/attribute.rb +51 -0
  62. data/lib/rdoc/markup/document.rb +22 -1
  63. data/lib/rdoc/markup/formatter.rb +4 -11
  64. data/lib/rdoc/markup/formatter_test_case.rb +1 -2
  65. data/lib/rdoc/markup/heading.rb +44 -0
  66. data/lib/rdoc/markup/include.rb +42 -0
  67. data/lib/rdoc/markup/inline.rb +1 -144
  68. data/lib/rdoc/markup/list.rb +2 -1
  69. data/lib/rdoc/markup/parser.rb +6 -16
  70. data/lib/rdoc/markup/pre_process.rb +64 -10
  71. data/lib/rdoc/markup/raw.rb +1 -1
  72. data/lib/rdoc/markup/special.rb +40 -0
  73. data/lib/rdoc/markup/text_formatter_test_case.rb +0 -2
  74. data/lib/rdoc/markup/to_ansi.rb +0 -2
  75. data/lib/rdoc/markup/to_bs.rb +0 -2
  76. data/lib/rdoc/markup/to_html.rb +102 -34
  77. data/lib/rdoc/markup/to_html_crossref.rb +36 -5
  78. data/lib/rdoc/markup/to_html_snippet.rb +270 -0
  79. data/lib/rdoc/markup/to_label.rb +55 -0
  80. data/lib/rdoc/markup/to_rdoc.rb +0 -3
  81. data/lib/rdoc/markup/to_table_of_contents.rb +62 -0
  82. data/lib/rdoc/markup/to_test.rb +0 -3
  83. data/lib/rdoc/markup/to_tt_only.rb +0 -3
  84. data/lib/rdoc/markup/verbatim.rb +18 -0
  85. data/lib/rdoc/meta_method.rb +0 -2
  86. data/lib/rdoc/method_attr.rb +17 -1
  87. data/lib/rdoc/normal_class.rb +0 -2
  88. data/lib/rdoc/normal_module.rb +0 -2
  89. data/lib/rdoc/options.rb +18 -3
  90. data/lib/rdoc/parser.rb +74 -42
  91. data/lib/rdoc/parser/c.rb +79 -118
  92. data/lib/rdoc/parser/rd.rb +22 -0
  93. data/lib/rdoc/parser/ruby.rb +86 -54
  94. data/lib/rdoc/parser/simple.rb +21 -9
  95. data/lib/rdoc/parser/text.rb +11 -0
  96. data/lib/rdoc/rd.rb +95 -0
  97. data/lib/rdoc/rd/block_parser.ry +638 -0
  98. data/lib/rdoc/rd/inline.rb +71 -0
  99. data/lib/rdoc/rd/inline_parser.ry +575 -0
  100. data/lib/rdoc/rdoc.rb +8 -23
  101. data/lib/rdoc/require.rb +0 -2
  102. data/lib/rdoc/ri.rb +4 -2
  103. data/lib/rdoc/ri/driver.rb +2 -6
  104. data/lib/rdoc/ri/store.rb +0 -1
  105. data/lib/rdoc/ruby_lex.rb +43 -20
  106. data/lib/rdoc/ruby_token.rb +44 -2
  107. data/lib/rdoc/single_class.rb +0 -2
  108. data/lib/rdoc/stats.rb +0 -5
  109. data/lib/rdoc/task.rb +2 -6
  110. data/lib/rdoc/test_case.rb +59 -0
  111. data/lib/rdoc/text.rb +42 -30
  112. data/lib/rdoc/token_stream.rb +45 -0
  113. data/lib/rdoc/tom_doc.rb +232 -0
  114. data/lib/rdoc/top_level.rb +36 -4
  115. data/test/test_attribute_manager.rb +26 -29
  116. data/test/test_rdoc_any_method.rb +2 -26
  117. data/test/test_rdoc_attr.rb +4 -4
  118. data/test/test_rdoc_class_module.rb +95 -12
  119. data/test/test_rdoc_code_object.rb +10 -3
  120. data/test/test_rdoc_comment.rb +504 -0
  121. data/test/test_rdoc_context.rb +60 -11
  122. data/test/test_rdoc_context_section.rb +16 -17
  123. data/test/test_rdoc_cross_reference.rb +17 -2
  124. data/test/test_rdoc_encoding.rb +4 -7
  125. data/test/test_rdoc_generator_darkfish.rb +12 -11
  126. data/test/test_rdoc_generator_json_index.rb +255 -0
  127. data/test/test_rdoc_generator_markup.rb +56 -0
  128. data/test/test_rdoc_generator_ri.rb +8 -11
  129. data/test/test_rdoc_markup.rb +9 -5
  130. data/test/test_rdoc_markup_attribute_manager.rb +5 -8
  131. data/test/test_rdoc_markup_document.rb +34 -6
  132. data/test/test_rdoc_markup_formatter.rb +11 -13
  133. data/test/test_rdoc_markup_heading.rb +20 -0
  134. data/test/test_rdoc_markup_include.rb +19 -0
  135. data/test/test_rdoc_markup_indented_paragraph.rb +4 -5
  136. data/test/test_rdoc_markup_paragraph.rb +2 -5
  137. data/test/test_rdoc_markup_parser.rb +87 -7
  138. data/test/test_rdoc_markup_pre_process.rb +60 -9
  139. data/test/test_rdoc_markup_raw.rb +4 -6
  140. data/test/test_rdoc_markup_to_ansi.rb +1 -4
  141. data/test/test_rdoc_markup_to_bs.rb +1 -4
  142. data/test/test_rdoc_markup_to_html.rb +170 -31
  143. data/test/test_rdoc_markup_to_html_crossref.rb +89 -11
  144. data/test/test_rdoc_markup_to_html_snippet.rb +668 -0
  145. data/test/test_rdoc_markup_to_label.rb +50 -0
  146. data/test/test_rdoc_markup_to_rdoc.rb +1 -4
  147. data/test/test_rdoc_markup_to_table_of_contents.rb +90 -0
  148. data/test/test_rdoc_markup_to_tt_only.rb +1 -4
  149. data/test/test_rdoc_markup_verbatim.rb +16 -0
  150. data/test/test_rdoc_method_attr.rb +16 -1
  151. data/test/test_rdoc_options.rb +17 -7
  152. data/test/test_rdoc_parser.rb +75 -6
  153. data/test/test_rdoc_parser_c.rb +56 -104
  154. data/test/test_rdoc_parser_rd.rb +52 -0
  155. data/test/test_rdoc_parser_ruby.rb +264 -323
  156. data/test/test_rdoc_parser_simple.rb +33 -17
  157. data/test/test_rdoc_rd.rb +30 -0
  158. data/test/test_rdoc_rd_block_parser.rb +527 -0
  159. data/test/test_rdoc_rd_inline.rb +63 -0
  160. data/test/test_rdoc_rd_inline_parser.rb +173 -0
  161. data/test/test_rdoc_rdoc.rb +7 -9
  162. data/test/test_rdoc_ri_driver.rb +10 -15
  163. data/test/test_rdoc_ri_paths.rb +6 -6
  164. data/test/test_rdoc_ri_store.rb +6 -13
  165. data/test/test_rdoc_ruby_lex.rb +53 -5
  166. data/test/test_rdoc_rubygems_hook.rb +2 -1
  167. data/test/test_rdoc_stats.rb +83 -103
  168. data/test/test_rdoc_task.rb +5 -4
  169. data/test/test_rdoc_text.rb +156 -11
  170. data/test/test_rdoc_token_stream.rb +42 -0
  171. data/test/test_rdoc_tom_doc.rb +458 -0
  172. data/test/test_rdoc_top_level.rb +49 -2
  173. data/test/xref_test_case.rb +4 -8
  174. metadata +217 -111
  175. metadata.gz.sig +0 -0
  176. checksums.yaml +0 -7
  177. checksums.yaml.gz.sig +0 -0
  178. data/CVE-2013-0256.rdoc +0 -49
  179. data/LICENSE.txt +0 -57
  180. data/lib/rdoc/generator/template/darkfish/classpage.rhtml +0 -321
  181. data/lib/rdoc/generator/template/darkfish/filepage.rhtml +0 -124
  182. data/lib/rdoc/generator/template/darkfish/js/quicksearch.js +0 -114
  183. data/lib/rdoc/generator/template/darkfish/js/thickbox-compressed.js +0 -10
metadata.gz.sig CHANGED
Binary file
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 9d9a58840506bd6b738237a6af63e481cb99d722
4
- data.tar.gz: dd7c3e432a825b7d424a72c6d809fc846b4ca15d
5
- SHA512:
6
- metadata.gz: 4aed26561794caea63847544ac7af1664170b460e6c1f0124f31396aa1a0e4f1f7feb59101342fe00160a0f4c823d64aaa5b5744c350b597d5bdf7ae39f23c9d
7
- data.tar.gz: d7b563efe923aedecb2cfcd7d6c256cf70dc12791104e348be074ea68e9b951d9fef08bd32e8f36c9594124a94a7a629317d32c5a551d4311a69e4398ed177c7
Binary file
@@ -1,49 +0,0 @@
1
- = RDoc 2.3.0 through 3.12 XSS Exploit
2
-
3
- RDoc documentation generated by rdoc 2.3.0 through rdoc 3.12 and prereleases up
4
- to rdoc 4.0.0.preview2.1 are vulnerable to an XSS exploit. This exploit may
5
- lead to cookie disclosure to third parties.
6
-
7
- The exploit exists in darkfish.js which is copied from the RDoc install
8
- location to the generated documentation.
9
-
10
- RDoc is a static documentation generation tool. Patching the library itself
11
- is insufficient to correct this exploit. Those hosting rdoc documentation will
12
- need to apply the following patch. If applied while ignoring whitespace, this
13
- patch will correct all affected versions:
14
-
15
- diff --git darkfish.js darkfish.js
16
- index 4be722f..f26fd45 100644
17
- --- darkfish.js
18
- +++ darkfish.js
19
- @@ -109,13 +109,15 @@ function hookSearch() {
20
- function highlightTarget( anchor ) {
21
- console.debug( "Highlighting target '%s'.", anchor );
22
-
23
- - $("a[name=" + anchor + "]").each( function() {
24
- - if ( !$(this).parent().parent().hasClass('target-section') ) {
25
- - console.debug( "Wrapping the target-section" );
26
- - $('div.method-detail').unwrap( 'div.target-section' );
27
- - $(this).parent().wrap( '<div class="target-section"></div>' );
28
- - } else {
29
- - console.debug( "Already wrapped." );
30
- + $("a[name]").each( function() {
31
- + if ( $(this).attr("name") == anchor ) {
32
- + if ( !$(this).parent().parent().hasClass('target-section') ) {
33
- + console.debug( "Wrapping the target-section" );
34
- + $('div.method-detail').unwrap( 'div.target-section' );
35
- + $(this).parent().wrap( '<div class="target-section"></div>' );
36
- + } else {
37
- + console.debug( "Already wrapped." );
38
- + }
39
- }
40
- });
41
- };
42
-
43
- RDoc 3.9.5, 3.12.1 and RDoc 4.0.0.rc.2 and newer are not vulnerable to this
44
- exploit.
45
-
46
- This exploit was discovered by Evgeny Ermakov <corwmh@gmail.com>.
47
-
48
- This vulnerability has been assigned the CVE identifier CVE-2013-0256.
49
-
@@ -1,57 +0,0 @@
1
- RDoc is copyrighted free software.
2
-
3
- You can redistribute it and/or modify it under either the terms of the GPL
4
- version 2 (see the file GPL), or the conditions below:
5
-
6
- 1. You may make and give away verbatim copies of the source form of the
7
- software without restriction, provided that you duplicate all of the
8
- original copyright notices and associated disclaimers.
9
-
10
- 2. You may modify your copy of the software in any way, provided that
11
- you do at least ONE of the following:
12
-
13
- a) place your modifications in the Public Domain or otherwise
14
- make them Freely Available, such as by posting said
15
- modifications to Usenet or an equivalent medium, or by allowing
16
- the author to include your modifications in the software.
17
-
18
- b) use the modified software only within your corporation or
19
- organization.
20
-
21
- c) give non-standard binaries non-standard names, with
22
- instructions on where to get the original software distribution.
23
-
24
- d) make other distribution arrangements with the author.
25
-
26
- 3. You may distribute the software in object code or binary form,
27
- provided that you do at least ONE of the following:
28
-
29
- a) distribute the binaries and library files of the software,
30
- together with instructions (in the manual page or equivalent)
31
- on where to get the original distribution.
32
-
33
- b) accompany the distribution with the machine-readable source of
34
- the software.
35
-
36
- c) give non-standard binaries non-standard names, with
37
- instructions on where to get the original software distribution.
38
-
39
- d) make other distribution arrangements with the author.
40
-
41
- 4. You may modify and include the part of the software into any other
42
- software (possibly commercial). But some files in the distribution
43
- are not written by the author, so that they are not under these terms.
44
-
45
- For the list of those files and their copying conditions, see the
46
- file LEGAL.
47
-
48
- 5. The scripts and library files supplied as input to or produced as
49
- output from the software do not automatically fall under the
50
- copyright of the software, but belong to whomever generated them,
51
- and may be sold commercially, and may be aggregated with this
52
- software.
53
-
54
- 6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
55
- IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
56
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
57
- PURPOSE.
@@ -1,321 +0,0 @@
1
- <?xml version="1.0" encoding="<%= @options.charset %>"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
- <head>
6
- <meta content="text/html; charset=<%= @options.charset %>" http-equiv="Content-Type" />
7
-
8
- <title><%= klass.type.capitalize %>: <%= klass.full_name %></title>
9
-
10
- <link rel="stylesheet" href="<%= rel_prefix %>/rdoc.css" type="text/css" media="screen" />
11
-
12
- <script src="<%= rel_prefix %>/js/jquery.js" type="text/javascript" charset="utf-8"></script>
13
- <script src="<%= rel_prefix %>/js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
14
- <script src="<%= rel_prefix %>/js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
15
- <script src="<%= rel_prefix %>/js/darkfish.js" type="text/javascript" charset="utf-8"></script>
16
-
17
- </head>
18
- <body id="top" class="<%= klass.type %>">
19
-
20
- <div id="metadata">
21
- <div id="home-metadata">
22
- <div id="home-section" class="section">
23
- <h3 class="section-header">
24
- <a href="<%= rel_prefix %>/index.html">Home</a>
25
- <a href="<%= rel_prefix %>/index.html#classes">Classes</a>
26
- <a href="<%= rel_prefix %>/index.html#methods">Methods</a>
27
- </h3>
28
- </div>
29
- </div>
30
-
31
- <div id="file-metadata">
32
- <div id="file-list-section" class="section">
33
- <h3 class="section-header">In Files</h3>
34
- <div class="section-body">
35
- <ul>
36
- <% klass.in_files.each do |tl| %>
37
- <li><a href="<%= rel_prefix %>/<%= h tl.path %>?TB_iframe=true&amp;height=550&amp;width=785"
38
- class="thickbox" title="<%= h tl.absolute_name %>"><%= h tl.absolute_name %></a></li>
39
- <% end %>
40
- </ul>
41
- </div>
42
- </div>
43
-
44
- <% if !svninfo.empty? then %>
45
- <div id="file-svninfo-section" class="section">
46
- <h3 class="section-header">Subversion Info</h3>
47
- <div class="section-body">
48
- <dl class="svninfo">
49
- <dt>Rev</dt>
50
- <dd><%= svninfo[:rev] %></dd>
51
-
52
- <dt>Last Checked In</dt>
53
- <dd><%= svninfo[:commitdate].strftime('%Y-%m-%d %H:%M:%S') %>
54
- (<%= svninfo[:commitdelta] %> ago)</dd>
55
-
56
- <dt>Checked in by</dt>
57
- <dd><%= svninfo[:committer] %></dd>
58
- </dl>
59
- </div>
60
- </div>
61
- <% end %>
62
- </div>
63
-
64
- <div id="class-metadata">
65
- <% if klass.type == 'class' then %>
66
- <!-- Parent Class -->
67
- <div id="parent-class-section" class="section">
68
- <h3 class="section-header">Parent</h3>
69
- <% if klass.superclass and not String === klass.superclass then %>
70
- <p class="link"><a href="<%= klass.aref_to klass.superclass.path %>"><%= klass.superclass.full_name %></a></p>
71
- <% else %>
72
- <p class="link"><%= klass.superclass %></p>
73
- <% end %>
74
- </div>
75
- <% end %>
76
-
77
- <% unless klass.sections.length == 1 then %>
78
- <!-- Sections -->
79
- <div id="sections-section" class="section">
80
- <h3 class="section-header">Sections</h3>
81
- <ul class="link-list">
82
- <% klass.sections.sort_by { |s| s.title.to_s }.each do |section| %>
83
- <li><a href="#<%= section.aref %>"><%= h section.title %></a></li>
84
- <% end %>
85
- </ul>
86
- </div>
87
- <% end %>
88
-
89
- <% unless klass.classes_and_modules.empty? then %>
90
- <!-- Namespace Contents -->
91
- <div id="namespace-list-section" class="section">
92
- <h3 class="section-header">Namespace</h3>
93
- <ul class="link-list">
94
- <% (klass.modules.sort + klass.classes.sort).each do |mod| %>
95
- <li><span class="type"><%= mod.type.upcase %></span> <a href="<%= klass.aref_to mod.path %>"><%= mod.full_name %></a></li>
96
- <% end %>
97
- </ul>
98
- </div>
99
- <% end %>
100
-
101
- <% unless klass.method_list.empty? then %>
102
- <!-- Method Quickref -->
103
- <div id="method-list-section" class="section">
104
- <h3 class="section-header">Methods</h3>
105
- <ul class="link-list">
106
- <% klass.each_method do |meth| %>
107
- <li><a href="#<%= meth.aref %>"><%= meth.singleton ? '::' : '#' %><%= meth.name %></a></li>
108
- <% end %>
109
- </ul>
110
- </div>
111
- <% end %>
112
-
113
- <% unless klass.includes.empty? then %>
114
- <!-- Included Modules -->
115
- <div id="includes-section" class="section">
116
- <h3 class="section-header">Included Modules</h3>
117
- <ul class="link-list">
118
- <% klass.each_include do |inc| %>
119
- <% unless String === inc.module then %>
120
- <li><a class="include" href="<%= klass.aref_to inc.module.path %>"><%= inc.module.full_name %></a></li>
121
- <% else %>
122
- <li><span class="include"><%= inc.name %></span></li>
123
- <% end %>
124
- <% end %>
125
- </ul>
126
- </div>
127
- <% end %>
128
- </div>
129
-
130
- <div id="project-metadata">
131
- <% simple_files = @files.select {|tl| tl.parser == RDoc::Parser::Simple } %>
132
- <% unless simple_files.empty? then %>
133
- <div id="fileindex-section" class="section project-section">
134
- <h3 class="section-header">Files</h3>
135
- <ul>
136
- <% simple_files.each do |file| %>
137
- <li class="file"><a href="<%= rel_prefix %>/<%= file.path %>"><%= h file.base_name %></a></li>
138
- <% end %>
139
- </ul>
140
- </div>
141
- <% end %>
142
-
143
- <div id="classindex-section" class="section project-section">
144
- <h3 class="section-header">Class/Module Index
145
- <span class="search-toggle"><img src="<%= rel_prefix %>/images/find.png"
146
- height="16" width="16" alt="[+]"
147
- title="show/hide quicksearch" /></span></h3>
148
- <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
149
- <fieldset>
150
- <legend>Quicksearch</legend>
151
- <input type="text" name="quicksearch" value=""
152
- class="quicksearch-field" />
153
- </fieldset>
154
- </form>
155
-
156
- <ul class="link-list">
157
- <% @modsort.each do |index_klass| %>
158
- <li><a href="<%= rel_prefix %>/<%= index_klass.path %>"><%= index_klass.full_name %></a></li>
159
- <% end %>
160
- </ul>
161
- <div id="no-class-search-results" style="display: none;">No matching classes.</div>
162
- </div>
163
-
164
- <% if $DEBUG_RDOC then %>
165
- <div id="debugging-toggle"><img src="<%= rel_prefix %>/images/bug.png"
166
- alt="toggle debugging" height="16" width="16" /></div>
167
- <% end %>
168
- </div>
169
- </div>
170
-
171
- <div id="documentation">
172
- <h1 class="<%= klass.type %>"><%= klass.full_name %></h1>
173
-
174
- <div id="description" class="description">
175
- <%= klass.description %>
176
- </div><!-- description -->
177
-
178
- <% klass.each_section do |section, constants, attributes| %>
179
- <% constants = constants.select { |const| const.display? } %>
180
- <% attributes = attributes.select { |attr| attr.display? } %>
181
- <div id="<%= section.aref %>" class="documentation-section">
182
- <% if section.title then %>
183
- <h2 class="section-header">
184
- <%= section.title %>
185
- <a href="#top">&uarr; top</a>
186
- </h2>
187
- <% end %>
188
-
189
- <% if section.comment then %>
190
- <div class="description">
191
- <%= section.description %>
192
- </div>
193
- <% end %>
194
-
195
- <% unless constants.empty? then %>
196
- <!-- Constants -->
197
- <div id="constants-list" class="section">
198
- <h3 class="section-header">Constants</h3>
199
- <dl>
200
- <% constants.each do |const| %>
201
- <dt><a name="<%= const.name %>"><%= const.name %></a></dt>
202
- <% if const.comment then %>
203
- <dd class="description"><%= const.description.strip %></dd>
204
- <% else %>
205
- <dd class="description missing-docs">(Not documented)</dd>
206
- <% end %>
207
- <% end %>
208
- </dl>
209
- </div>
210
- <% end %>
211
-
212
- <% unless attributes.empty? then %>
213
- <!-- Attributes -->
214
- <div id="attribute-method-details" class="method-section section">
215
- <h3 class="section-header">Attributes</h3>
216
-
217
- <% attributes.each do |attrib| %>
218
- <div id="<%= attrib.html_name %>-attribute-method" class="method-detail">
219
- <a name="<%= h attrib.name %>"></a>
220
- <% if attrib.rw =~ /w/i then %>
221
- <a name="<%= h attrib.name %>="></a>
222
- <% end %>
223
- <div class="method-heading attribute-method-heading">
224
- <span class="method-name"><%= h attrib.name %></span><span
225
- class="attribute-access-type">[<%= attrib.rw %>]</span>
226
- </div>
227
-
228
- <div class="method-description">
229
- <% if attrib.comment then %>
230
- <%= attrib.description.strip %>
231
- <% else %>
232
- <p class="missing-docs">(Not documented)</p>
233
- <% end %>
234
- </div>
235
- </div>
236
- <% end %>
237
- </div><!-- attribute-method-details -->
238
- <% end %>
239
-
240
- <!-- Methods -->
241
- <% klass.methods_by_type(section).each do |type, visibilities|
242
- next if visibilities.empty?
243
- visibilities.each do |visibility, methods|
244
- next if methods.empty? %>
245
- <div id="<%= visibility %>-<%= type %>-method-details" class="method-section section">
246
- <h3 class="section-header"><%= visibility.to_s.capitalize %> <%= type.capitalize %> Methods</h3>
247
-
248
- <% methods.each do |method| %>
249
- <div id="<%= method.html_name %>-method" class="method-detail <%= method.is_alias_for ? "method-alias" : '' %>">
250
- <a name="<%= h method.aref %>"></a>
251
-
252
- <% if method.call_seq then %>
253
- <% method.call_seq.strip.split("\n").each_with_index do |call_seq, i| %>
254
- <div class="method-heading">
255
- <span class="method-callseq"><%= call_seq.strip.gsub(/->/, '&rarr;').gsub( /^\w+\./m, '') %></span>
256
- <% if i == 0 then %>
257
- <span class="method-click-advice">click to toggle source</span>
258
- <% end %>
259
- </div>
260
- <% end %>
261
- <% else %>
262
- <div class="method-heading">
263
- <span class="method-name"><%= h method.name %></span><span
264
- class="method-args"><%= method.params %></span>
265
- <span class="method-click-advice">click to toggle source</span>
266
- </div>
267
- <% end %>
268
-
269
- <div class="method-description">
270
- <% if method.comment then %>
271
- <%= method.description.strip %>
272
- <% else %>
273
- <p class="missing-docs">(Not documented)</p>
274
- <% end %>
275
-
276
- <% if method.token_stream then %>
277
- <div class="method-source-code" id="<%= method.html_name %>-source">
278
- <pre>
279
- <%= method.markup_code %>
280
- </pre>
281
- </div><!-- <%= method.html_name %>-source -->
282
- <% end %>
283
- </div>
284
-
285
- <% unless method.aliases.empty? then %>
286
- <div class="aliases">
287
- Also aliased as: <%= method.aliases.map do |aka|
288
- if aka.parent then # HACK lib/rexml/encodings
289
- %{<a href="#{klass.aref_to aka.path}">#{h aka.name}</a>}
290
- else
291
- h aka.name
292
- end
293
- end.join ", " %>
294
- </div>
295
- <% end %>
296
-
297
- <% if method.is_alias_for then %>
298
- <div class="aliases">
299
- Alias for: <a href="<%= klass.aref_to method.is_alias_for.path %>"><%= h method.is_alias_for.name %></a>
300
- </div>
301
- <% end %>
302
- </div><!-- <%= method.html_name %>-method -->
303
-
304
- <% end %>
305
- </div><!-- <%= visibility %>-<%= type %>-method-details -->
306
- <% end
307
- end %>
308
- </div><!-- <%= section.aref %> -->
309
- <% end %>
310
-
311
- </div><!-- documentation -->
312
-
313
- <div id="validator-badges">
314
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
315
- <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
316
- Rdoc Generator</a> <%= RDoc::Generator::Darkfish::VERSION %></small>.</p>
317
- </div>
318
-
319
- </body>
320
- </html>
321
-
@@ -1,124 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
-
5
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
- <head>
7
- <meta content="text/html; charset=<%= @options.charset %>" http-equiv="Content-Type" />
8
-
9
- <title>File: <%= file.base_name %> [<%= @options.title %>]</title>
10
-
11
- <link type="text/css" media="screen" href="<%= rel_prefix %>/rdoc.css" rel="stylesheet" />
12
-
13
- <script src="<%= rel_prefix %>/js/jquery.js" type="text/javascript"
14
- charset="utf-8"></script>
15
- <script src="<%= rel_prefix %>/js/thickbox-compressed.js" type="text/javascript"
16
- charset="utf-8"></script>
17
- <script src="<%= rel_prefix %>/js/quicksearch.js" type="text/javascript"
18
- charset="utf-8"></script>
19
- <script src="<%= rel_prefix %>/js/darkfish.js" type="text/javascript"
20
- charset="utf-8"></script>
21
- </head>
22
-
23
- <% if file.parser == RDoc::Parser::Simple %>
24
- <body class="file">
25
- <div id="metadata">
26
- <div id="home-metadata">
27
- <div id="home-section" class="section">
28
- <h3 class="section-header">
29
- <a href="<%= rel_prefix %>/index.html">Home</a>
30
- <a href="<%= rel_prefix %>/index.html#classes">Classes</a>
31
- <a href="<%= rel_prefix %>/index.html#methods">Methods</a>
32
- </h3>
33
- </div>
34
- </div>
35
-
36
- <div id="project-metadata">
37
- <% simple_files = @files.select { |f| f.parser == RDoc::Parser::Simple } %>
38
- <% unless simple_files.empty? then %>
39
- <div id="fileindex-section" class="section project-section">
40
- <h3 class="section-header">Files</h3>
41
- <ul>
42
- <% simple_files.each do |f| %>
43
- <li class="file"><a href="<%= rel_prefix %>/<%= f.path %>"><%= h f.base_name %></a></li>
44
- <% end %>
45
- </ul>
46
- </div>
47
- <% end %>
48
-
49
- <div id="classindex-section" class="section project-section">
50
- <h3 class="section-header">Class Index
51
- <span class="search-toggle"><img src="<%= rel_prefix %>/images/find.png"
52
- height="16" width="16" alt="[+]"
53
- title="show/hide quicksearch" /></span></h3>
54
- <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
55
- <fieldset>
56
- <legend>Quicksearch</legend>
57
- <input type="text" name="quicksearch" value=""
58
- class="quicksearch-field" />
59
- </fieldset>
60
- </form>
61
-
62
- <ul class="link-list">
63
- <% @modsort.each do |index_klass| %>
64
- <li><a href="<%= rel_prefix %>/<%= index_klass.path %>"><%= index_klass.full_name %></a></li>
65
- <% end %>
66
- </ul>
67
- <div id="no-class-search-results" style="display: none;">No matching classes.</div>
68
- </div>
69
-
70
- <% if $DEBUG_RDOC %>
71
- <div id="debugging-toggle"><img src="<%= rel_prefix %>/images/bug.png"
72
- alt="toggle debugging" height="16" width="16" /></div>
73
- <% end %>
74
- </div>
75
- </div>
76
-
77
- <div id="documentation">
78
- <%= file.description %>
79
- </div>
80
-
81
- <div id="validator-badges">
82
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
83
- <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
84
- Rdoc Generator</a> <%= RDoc::Generator::Darkfish::VERSION %></small>.</p>
85
- </div>
86
- </body>
87
- <% else %>
88
- <body class="file file-popup">
89
- <div id="metadata">
90
- <dl>
91
- <dt class="modified-date">Last Modified</dt>
92
- <dd class="modified-date"><%= file.last_modified %></dd>
93
-
94
- <% if file.requires %>
95
- <dt class="requires">Requires</dt>
96
- <dd class="requires">
97
- <ul>
98
- <% file.requires.each do |require| %>
99
- <li><%= require.name %></li>
100
- <% end %>
101
- </ul>
102
- </dd>
103
- <% end %>
104
-
105
- <% if @options.webcvs %>
106
- <dt class="scs-url">Trac URL</dt>
107
- <dd class="scs-url"><a target="_top"
108
- href="<%= file.cvs_url %>"><%= file.cvs_url %></a></dd>
109
- <% end %>
110
- </dl>
111
- </div>
112
-
113
- <div id="documentation">
114
- <% if file.comment %>
115
- <div class="description">
116
- <h2>Description</h2>
117
- <%= file.description %>
118
- </div>
119
- <% end %>
120
- </div>
121
- </body>
122
- <% end %>
123
- </html>
124
-