rdoc 6.7.0 → 6.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/ExampleMarkdown.md +2 -0
  3. data/ExampleRDoc.rdoc +2 -0
  4. data/History.rdoc +64 -62
  5. data/LICENSE.rdoc +2 -0
  6. data/README.rdoc +13 -0
  7. data/RI.md +842 -0
  8. data/TODO.rdoc +8 -7
  9. data/lib/rdoc/{alias.rb → code_object/alias.rb} +1 -1
  10. data/lib/rdoc/{class_module.rb → code_object/class_module.rb} +68 -1
  11. data/lib/rdoc/{method_attr.rb → code_object/method_attr.rb} +17 -5
  12. data/lib/rdoc/{top_level.rb → code_object/top_level.rb} +4 -4
  13. data/lib/rdoc/code_object.rb +6 -0
  14. data/lib/rdoc/generator/darkfish.rb +45 -3
  15. data/lib/rdoc/generator/pot/message_extractor.rb +1 -1
  16. data/lib/rdoc/generator/pot/po_entry.rb +1 -1
  17. data/lib/rdoc/generator/template/darkfish/_head.rhtml +23 -0
  18. data/lib/rdoc/generator/template/darkfish/_sidebar_classes.rhtml +1 -0
  19. data/lib/rdoc/generator/template/darkfish/_sidebar_methods.rhtml +20 -11
  20. data/lib/rdoc/generator/template/darkfish/_sidebar_parent.rhtml +3 -8
  21. data/lib/rdoc/generator/template/darkfish/_sidebar_toggle.rhtml +3 -0
  22. data/lib/rdoc/generator/template/darkfish/class.rhtml +69 -43
  23. data/lib/rdoc/generator/template/darkfish/css/rdoc.css +380 -399
  24. data/lib/rdoc/generator/template/darkfish/index.rhtml +7 -6
  25. data/lib/rdoc/generator/template/darkfish/js/darkfish.js +24 -1
  26. data/lib/rdoc/generator/template/darkfish/page.rhtml +5 -5
  27. data/lib/rdoc/generator/template/darkfish/servlet_not_found.rhtml +10 -8
  28. data/lib/rdoc/generator/template/darkfish/servlet_root.rhtml +5 -2
  29. data/lib/rdoc/generator/template/darkfish/table_of_contents.rhtml +11 -0
  30. data/lib/rdoc/markdown.kpeg +1 -1
  31. data/lib/rdoc/markdown.rb +21 -11
  32. data/lib/rdoc/markup/attribute_manager.rb +2 -2
  33. data/lib/rdoc/markup/formatter.rb +19 -12
  34. data/lib/rdoc/markup/pre_process.rb +26 -6
  35. data/lib/rdoc/markup/to_bs.rb +1 -1
  36. data/lib/rdoc/markup/to_html.rb +1 -1
  37. data/lib/rdoc/markup/to_html_crossref.rb +63 -12
  38. data/lib/rdoc/markup/to_rdoc.rb +5 -5
  39. data/lib/rdoc/markup.rb +18 -13
  40. data/lib/rdoc/options.rb +78 -12
  41. data/lib/rdoc/parser/c.rb +25 -1
  42. data/lib/rdoc/parser/changelog.rb +2 -2
  43. data/lib/rdoc/parser/prism_ruby.rb +1028 -0
  44. data/lib/rdoc/parser/ripper_state_lex.rb +7 -305
  45. data/lib/rdoc/parser/ruby.rb +15 -6
  46. data/lib/rdoc/parser.rb +2 -1
  47. data/lib/rdoc/rd/block_parser.rb +3 -3
  48. data/lib/rdoc/rd/inline_parser.rb +3 -3
  49. data/lib/rdoc/rdoc.rb +6 -3
  50. data/lib/rdoc/ri/driver.rb +58 -14
  51. data/lib/rdoc/rubygems_hook.rb +90 -8
  52. data/lib/rdoc/store.rb +12 -0
  53. data/lib/rdoc/task.rb +2 -3
  54. data/lib/rdoc/tom_doc.rb +1 -7
  55. data/lib/rdoc/version.rb +1 -1
  56. data/lib/rdoc.rb +22 -24
  57. data/lib/rubygems_plugin.rb +23 -0
  58. metadata +27 -26
  59. data/RI.rdoc +0 -57
  60. data/lib/rdoc/generator/template/darkfish/.document +0 -0
  61. data/lib/rdoc/generator/template/json_index/.document +0 -1
  62. /data/lib/rdoc/{anon_class.rb → code_object/anon_class.rb} +0 -0
  63. /data/lib/rdoc/{any_method.rb → code_object/any_method.rb} +0 -0
  64. /data/lib/rdoc/{attr.rb → code_object/attr.rb} +0 -0
  65. /data/lib/rdoc/{constant.rb → code_object/constant.rb} +0 -0
  66. /data/lib/rdoc/{context → code_object/context}/section.rb +0 -0
  67. /data/lib/rdoc/{context.rb → code_object/context.rb} +0 -0
  68. /data/lib/rdoc/{extend.rb → code_object/extend.rb} +0 -0
  69. /data/lib/rdoc/{ghost_method.rb → code_object/ghost_method.rb} +0 -0
  70. /data/lib/rdoc/{include.rb → code_object/include.rb} +0 -0
  71. /data/lib/rdoc/{meta_method.rb → code_object/meta_method.rb} +0 -0
  72. /data/lib/rdoc/{mixin.rb → code_object/mixin.rb} +0 -0
  73. /data/lib/rdoc/{normal_class.rb → code_object/normal_class.rb} +0 -0
  74. /data/lib/rdoc/{normal_module.rb → code_object/normal_module.rb} +0 -0
  75. /data/lib/rdoc/{require.rb → code_object/require.rb} +0 -0
  76. /data/lib/rdoc/{single_class.rb → code_object/single_class.rb} +0 -0
@@ -3,13 +3,19 @@ require 'rubygems/user_interaction'
3
3
  require 'fileutils'
4
4
  require_relative '../rdoc'
5
5
 
6
- ##
7
- # Gem::RDoc provides methods to generate RDoc and ri data for installed gems
8
- # upon gem installation.
6
+ # We define the following two similar name classes in this file:
9
7
  #
10
- # This file is automatically required by RubyGems 1.9 and newer.
8
+ # - RDoc::RubyGemsHook
9
+ # - RDoc::RubygemsHook
10
+ #
11
+ # RDoc::RubyGemsHook is the main class that has real logic.
12
+ #
13
+ # RDoc::RubygemsHook is a class that is only for
14
+ # compatibility. RDoc::RubygemsHook is used by RubyGems directly. We
15
+ # can remove this when all maintained RubyGems remove
16
+ # `rubygems/rdoc.rb`.
11
17
 
12
- class RDoc::RubygemsHook
18
+ class RDoc::RubyGemsHook
13
19
 
14
20
  include Gem::UserInteraction
15
21
  extend Gem::UserInteraction
@@ -45,7 +51,7 @@ class RDoc::RubygemsHook
45
51
  # Post installs hook that generates documentation for each specification in
46
52
  # +specs+
47
53
 
48
- def self.generation_hook installer, specs
54
+ def self.generate installer, specs
49
55
  start = Time.now
50
56
  types = installer.document
51
57
 
@@ -64,6 +70,10 @@ class RDoc::RubygemsHook
64
70
  say "Done installing documentation for #{names} after #{duration} seconds"
65
71
  end
66
72
 
73
+ def self.remove uninstaller
74
+ new(uninstaller.spec).remove
75
+ end
76
+
67
77
  ##
68
78
  # Loads the RDoc generator
69
79
 
@@ -171,10 +181,10 @@ class RDoc::RubygemsHook
171
181
  options = ::RDoc::Options.new
172
182
  options.default_title = "#{@spec.full_name} Documentation"
173
183
  options.parse args
184
+ options.quiet = !Gem.configuration.really_verbose
185
+ options.finish
174
186
  end
175
187
 
176
- options.quiet = !Gem.configuration.really_verbose
177
-
178
188
  @rdoc = new_rdoc
179
189
  @rdoc.options = options
180
190
 
@@ -246,3 +256,75 @@ class RDoc::RubygemsHook
246
256
  end
247
257
 
248
258
  end
259
+
260
+ # This class is referenced by RubyGems to create documents.
261
+ # All implementations are moved to the above RubyGemsHook.
262
+ #
263
+ # This class does nothing when this RDoc is installed as a normal gem
264
+ # or a bundled gem.
265
+ #
266
+ # This class does generate/remove documents for compatibility when
267
+ # this RDoc is installed as a default gem.
268
+ #
269
+ # We can remove this when all maintained RubyGems remove
270
+ # `rubygems/rdoc.rb`.
271
+ module RDoc
272
+ class RubygemsHook
273
+
274
+ attr_accessor :generate_rdoc, :generate_ri, :force
275
+
276
+ def self.default_gem?
277
+ !File.exist?(File.join(__dir__, "..", "rubygems_plugin.rb"))
278
+ end
279
+
280
+ def initialize(spec, generate_rdoc = false, generate_ri = true)
281
+ @spec = spec
282
+ @generate_rdoc = generate_rdoc
283
+ @generate_ri = generate_ri
284
+ @force = false
285
+ end
286
+
287
+ def generate
288
+ # Do nothing if this is NOT a default gem.
289
+ return unless self.class.default_gem?
290
+
291
+ # Generate document for compatibility if this is a default gem.
292
+ hook = RubyGemsHook.new(@spec, @generate_rdoc, @generate_ri)
293
+ hook.force = @force
294
+ hook.generate
295
+ end
296
+
297
+ def remove
298
+ # Do nothing if this is NOT a default gem.
299
+ return unless self.class.default_gem?
300
+
301
+ # Remove generated document for compatibility if this is a
302
+ # default gem.
303
+ RubyGemsHook.new(@spec).remove
304
+ end
305
+
306
+ def self.generation_hook installer, specs
307
+ # Do nothing if this is NOT a default gem.
308
+ return unless default_gem?
309
+
310
+ # Generate document for compatibility if this is a default gem.
311
+ RubyGemsHook.generate(installer, specs)
312
+ end
313
+
314
+ def self.load_rdoc
315
+ RubyGemsHook.load_rdoc
316
+ end
317
+
318
+ def self.rdoc_version
319
+ RubyGemsHook.rdoc_version
320
+ end
321
+
322
+ def rdoc_installed?
323
+ RubyGemsHook.new(@spec).rdoc_installed?
324
+ end
325
+
326
+ def ri_installed?
327
+ RubyGemsHook.new(@spec).ri_installed?
328
+ end
329
+ end
330
+ end
data/lib/rdoc/store.rb CHANGED
@@ -197,6 +197,18 @@ class RDoc::Store
197
197
  top_level
198
198
  end
199
199
 
200
+ ##
201
+ # Make sure any references to C variable names are resolved to the corresponding class.
202
+ #
203
+
204
+ def resolve_c_superclasses
205
+ @classes_hash.each_value do |klass|
206
+ if klass.superclass.is_a?(String) && (candidate = find_c_enclosure(klass.superclass))
207
+ klass.superclass = candidate
208
+ end
209
+ end
210
+ end
211
+
200
212
  ##
201
213
  # Sets the parser of +absolute_name+, unless it from a source code file.
202
214
 
data/lib/rdoc/task.rb CHANGED
@@ -104,9 +104,8 @@ class RDoc::Task < Rake::TaskLib
104
104
  attr_accessor :name
105
105
 
106
106
  ##
107
- # Comment markup format. rdoc, rd and tomdoc are supported. (default is
108
- # 'rdoc')
109
-
107
+ # The markup format; one of: +rdoc+ (the default), +markdown+, +rd+, +tomdoc+.
108
+ # See {Markup Formats}[rdoc-ref:RDoc::Markup@Markup+Formats].
110
109
  attr_accessor :markup
111
110
 
112
111
  ##
data/lib/rdoc/tom_doc.rb CHANGED
@@ -3,13 +3,7 @@
3
3
 
4
4
  # A parser for TomDoc based on TomDoc 1.0.0-rc1 (02adef9b5a)
5
5
  #
6
- # The TomDoc specification can be found at:
7
- #
8
- # http://tomdoc.org
9
- #
10
- # The latest version of the TomDoc specification can be found at:
11
- #
12
- # https://github.com/mojombo/tomdoc/blob/master/tomdoc.md
6
+ # The TomDoc specification can be found at http://tomdoc.org.
13
7
  #
14
8
  # To choose TomDoc as your only default format see RDoc::Options@Saved+Options
15
9
  # for instructions on setting up a <code>.rdoc_options</code> file to store
data/lib/rdoc/version.rb CHANGED
@@ -5,6 +5,6 @@ module RDoc
5
5
  ##
6
6
  # RDoc version you are using
7
7
 
8
- VERSION = '6.7.0'
8
+ VERSION = '6.11.0'
9
9
 
10
10
  end
data/lib/rdoc.rb CHANGED
@@ -1,8 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  $DEBUG_RDOC = nil
3
3
 
4
- # :main: README.rdoc
5
-
6
4
  ##
7
5
  # RDoc produces documentation for Ruby source files by parsing the source and
8
6
  # extracting the definition for classes, modules, methods, includes and
@@ -21,7 +19,7 @@ $DEBUG_RDOC = nil
21
19
  # see RDoc::Markup and refer to <tt>rdoc --help</tt> for command line usage.
22
20
  #
23
21
  # If you want to set the default markup format see
24
- # RDoc::Markup@Supported+Formats
22
+ # RDoc::Markup@Markup+Formats
25
23
  #
26
24
  # If you want to store rdoc configuration in your gem (such as the default
27
25
  # markup format) see RDoc::Options@Saved+Options
@@ -188,26 +186,26 @@ module RDoc
188
186
  # programs: classes, modules, methods, and so on.
189
187
  autoload :CodeObject, "#{__dir__}/rdoc/code_object"
190
188
 
191
- autoload :Context, "#{__dir__}/rdoc/context"
192
- autoload :TopLevel, "#{__dir__}/rdoc/top_level"
193
-
194
- autoload :AnonClass, "#{__dir__}/rdoc/anon_class"
195
- autoload :ClassModule, "#{__dir__}/rdoc/class_module"
196
- autoload :NormalClass, "#{__dir__}/rdoc/normal_class"
197
- autoload :NormalModule, "#{__dir__}/rdoc/normal_module"
198
- autoload :SingleClass, "#{__dir__}/rdoc/single_class"
199
-
200
- autoload :Alias, "#{__dir__}/rdoc/alias"
201
- autoload :AnyMethod, "#{__dir__}/rdoc/any_method"
202
- autoload :MethodAttr, "#{__dir__}/rdoc/method_attr"
203
- autoload :GhostMethod, "#{__dir__}/rdoc/ghost_method"
204
- autoload :MetaMethod, "#{__dir__}/rdoc/meta_method"
205
- autoload :Attr, "#{__dir__}/rdoc/attr"
206
-
207
- autoload :Constant, "#{__dir__}/rdoc/constant"
208
- autoload :Mixin, "#{__dir__}/rdoc/mixin"
209
- autoload :Include, "#{__dir__}/rdoc/include"
210
- autoload :Extend, "#{__dir__}/rdoc/extend"
211
- autoload :Require, "#{__dir__}/rdoc/require"
189
+ autoload :Context, "#{__dir__}/rdoc/code_object/context"
190
+ autoload :TopLevel, "#{__dir__}/rdoc/code_object/top_level"
191
+
192
+ autoload :AnonClass, "#{__dir__}/rdoc/code_object/anon_class"
193
+ autoload :ClassModule, "#{__dir__}/rdoc/code_object/class_module"
194
+ autoload :NormalClass, "#{__dir__}/rdoc/code_object/normal_class"
195
+ autoload :NormalModule, "#{__dir__}/rdoc/code_object/normal_module"
196
+ autoload :SingleClass, "#{__dir__}/rdoc/code_object/single_class"
197
+
198
+ autoload :Alias, "#{__dir__}/rdoc/code_object/alias"
199
+ autoload :AnyMethod, "#{__dir__}/rdoc/code_object/any_method"
200
+ autoload :MethodAttr, "#{__dir__}/rdoc/code_object/method_attr"
201
+ autoload :GhostMethod, "#{__dir__}/rdoc/code_object/ghost_method"
202
+ autoload :MetaMethod, "#{__dir__}/rdoc/code_object/meta_method"
203
+ autoload :Attr, "#{__dir__}/rdoc/code_object/attr"
204
+
205
+ autoload :Constant, "#{__dir__}/rdoc/code_object/constant"
206
+ autoload :Mixin, "#{__dir__}/rdoc/code_object/mixin"
207
+ autoload :Include, "#{__dir__}/rdoc/code_object/include"
208
+ autoload :Extend, "#{__dir__}/rdoc/code_object/extend"
209
+ autoload :Require, "#{__dir__}/rdoc/code_object/require"
212
210
 
213
211
  end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ # If this file is exist, RDoc generates and removes documents by rubygems plugins.
4
+ #
5
+ # In follwing cases,
6
+ # RubyGems directly exectute RDoc::RubygemsHook.generation_hook and RDoc::RubygemsHook#remove to generate and remove documents.
7
+ #
8
+ # - RDoc is used as a default gem.
9
+ # - RDoc is a old version that doesn't have rubygems_plugin.rb.
10
+
11
+ require_relative 'rdoc/rubygems_hook'
12
+
13
+ # To install dependency libraries of RDoc, you need to run bundle install.
14
+ # At that time, rdoc/markdown is not generated.
15
+ # If generate and remove are executed at that time, an error will occur.
16
+ # So, we can't register generate and remove to Gem at that time.
17
+ begin
18
+ require_relative 'rdoc/markdown'
19
+ rescue LoadError
20
+ else
21
+ Gem.done_installing(&RDoc::RubyGemsHook.method(:generate))
22
+ Gem.pre_uninstall(&RDoc::RubyGemsHook.method(:remove))
23
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.7.0
4
+ version: 6.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Hodel
@@ -13,7 +13,7 @@ authors:
13
13
  - ITOYANAGI Sakura
14
14
  bindir: exe
15
15
  cert_chain: []
16
- date: 2024-05-23 00:00:00.000000000 Z
16
+ date: 2025-01-16 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: psych
@@ -53,7 +53,7 @@ extra_rdoc_files:
53
53
  - LEGAL.rdoc
54
54
  - LICENSE.rdoc
55
55
  - README.rdoc
56
- - RI.rdoc
56
+ - RI.md
57
57
  - TODO.rdoc
58
58
  files:
59
59
  - CONTRIBUTING.rdoc
@@ -64,27 +64,37 @@ files:
64
64
  - LEGAL.rdoc
65
65
  - LICENSE.rdoc
66
66
  - README.rdoc
67
- - RI.rdoc
67
+ - RI.md
68
68
  - TODO.rdoc
69
69
  - exe/rdoc
70
70
  - exe/ri
71
71
  - lib/rdoc.rb
72
- - lib/rdoc/alias.rb
73
- - lib/rdoc/anon_class.rb
74
- - lib/rdoc/any_method.rb
75
- - lib/rdoc/attr.rb
76
- - lib/rdoc/class_module.rb
77
72
  - lib/rdoc/code_object.rb
73
+ - lib/rdoc/code_object/alias.rb
74
+ - lib/rdoc/code_object/anon_class.rb
75
+ - lib/rdoc/code_object/any_method.rb
76
+ - lib/rdoc/code_object/attr.rb
77
+ - lib/rdoc/code_object/class_module.rb
78
+ - lib/rdoc/code_object/constant.rb
79
+ - lib/rdoc/code_object/context.rb
80
+ - lib/rdoc/code_object/context/section.rb
81
+ - lib/rdoc/code_object/extend.rb
82
+ - lib/rdoc/code_object/ghost_method.rb
83
+ - lib/rdoc/code_object/include.rb
84
+ - lib/rdoc/code_object/meta_method.rb
85
+ - lib/rdoc/code_object/method_attr.rb
86
+ - lib/rdoc/code_object/mixin.rb
87
+ - lib/rdoc/code_object/normal_class.rb
88
+ - lib/rdoc/code_object/normal_module.rb
89
+ - lib/rdoc/code_object/require.rb
90
+ - lib/rdoc/code_object/single_class.rb
91
+ - lib/rdoc/code_object/top_level.rb
78
92
  - lib/rdoc/code_objects.rb
79
93
  - lib/rdoc/comment.rb
80
- - lib/rdoc/constant.rb
81
- - lib/rdoc/context.rb
82
- - lib/rdoc/context/section.rb
83
94
  - lib/rdoc/cross_reference.rb
84
95
  - lib/rdoc/encoding.rb
85
96
  - lib/rdoc/erb_partial.rb
86
97
  - lib/rdoc/erbio.rb
87
- - lib/rdoc/extend.rb
88
98
  - lib/rdoc/generator.rb
89
99
  - lib/rdoc/generator/darkfish.rb
90
100
  - lib/rdoc/generator/json_index.rb
@@ -94,7 +104,6 @@ files:
94
104
  - lib/rdoc/generator/pot/po.rb
95
105
  - lib/rdoc/generator/pot/po_entry.rb
96
106
  - lib/rdoc/generator/ri.rb
97
- - lib/rdoc/generator/template/darkfish/.document
98
107
  - lib/rdoc/generator/template/darkfish/_footer.rhtml
99
108
  - lib/rdoc/generator/template/darkfish/_head.rhtml
100
109
  - lib/rdoc/generator/template/darkfish/_sidebar_VCS_info.rhtml
@@ -110,6 +119,7 @@ files:
110
119
  - lib/rdoc/generator/template/darkfish/_sidebar_search.rhtml
111
120
  - lib/rdoc/generator/template/darkfish/_sidebar_sections.rhtml
112
121
  - lib/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml
122
+ - lib/rdoc/generator/template/darkfish/_sidebar_toggle.rhtml
113
123
  - lib/rdoc/generator/template/darkfish/class.rhtml
114
124
  - lib/rdoc/generator/template/darkfish/css/fonts.css
115
125
  - lib/rdoc/generator/template/darkfish/css/rdoc.css
@@ -151,14 +161,11 @@ files:
151
161
  - lib/rdoc/generator/template/darkfish/servlet_not_found.rhtml
152
162
  - lib/rdoc/generator/template/darkfish/servlet_root.rhtml
153
163
  - lib/rdoc/generator/template/darkfish/table_of_contents.rhtml
154
- - lib/rdoc/generator/template/json_index/.document
155
164
  - lib/rdoc/generator/template/json_index/js/navigation.js
156
165
  - lib/rdoc/generator/template/json_index/js/searcher.js
157
- - lib/rdoc/ghost_method.rb
158
166
  - lib/rdoc/i18n.rb
159
167
  - lib/rdoc/i18n/locale.rb
160
168
  - lib/rdoc/i18n/text.rb
161
- - lib/rdoc/include.rb
162
169
  - lib/rdoc/known_classes.rb
163
170
  - lib/rdoc/markdown.kpeg
164
171
  - lib/rdoc/markdown.rb
@@ -200,16 +207,12 @@ files:
200
207
  - lib/rdoc/markup/to_test.rb
201
208
  - lib/rdoc/markup/to_tt_only.rb
202
209
  - lib/rdoc/markup/verbatim.rb
203
- - lib/rdoc/meta_method.rb
204
- - lib/rdoc/method_attr.rb
205
- - lib/rdoc/mixin.rb
206
- - lib/rdoc/normal_class.rb
207
- - lib/rdoc/normal_module.rb
208
210
  - lib/rdoc/options.rb
209
211
  - lib/rdoc/parser.rb
210
212
  - lib/rdoc/parser/c.rb
211
213
  - lib/rdoc/parser/changelog.rb
212
214
  - lib/rdoc/parser/markdown.rb
215
+ - lib/rdoc/parser/prism_ruby.rb
213
216
  - lib/rdoc/parser/rd.rb
214
217
  - lib/rdoc/parser/ripper_state_lex.rb
215
218
  - lib/rdoc/parser/ruby.rb
@@ -223,7 +226,6 @@ files:
223
226
  - lib/rdoc/rd/inline_parser.rb
224
227
  - lib/rdoc/rd/inline_parser.ry
225
228
  - lib/rdoc/rdoc.rb
226
- - lib/rdoc/require.rb
227
229
  - lib/rdoc/ri.rb
228
230
  - lib/rdoc/ri/driver.rb
229
231
  - lib/rdoc/ri/formatter.rb
@@ -232,7 +234,6 @@ files:
232
234
  - lib/rdoc/ri/task.rb
233
235
  - lib/rdoc/rubygems_hook.rb
234
236
  - lib/rdoc/servlet.rb
235
- - lib/rdoc/single_class.rb
236
237
  - lib/rdoc/stats.rb
237
238
  - lib/rdoc/stats/normal.rb
238
239
  - lib/rdoc/stats/quiet.rb
@@ -242,8 +243,8 @@ files:
242
243
  - lib/rdoc/text.rb
243
244
  - lib/rdoc/token_stream.rb
244
245
  - lib/rdoc/tom_doc.rb
245
- - lib/rdoc/top_level.rb
246
246
  - lib/rdoc/version.rb
247
+ - lib/rubygems_plugin.rb
247
248
  - man/ri.1
248
249
  homepage: https://ruby.github.io/rdoc
249
250
  licenses:
@@ -268,7 +269,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
268
269
  - !ruby/object:Gem::Version
269
270
  version: '2.2'
270
271
  requirements: []
271
- rubygems_version: 3.6.0.dev
272
+ rubygems_version: 3.6.2
272
273
  specification_version: 4
273
274
  summary: RDoc produces HTML and command-line documentation for Ruby projects
274
275
  test_files: []
data/RI.rdoc DELETED
@@ -1,57 +0,0 @@
1
- = RI
2
-
3
- +ri+ is a tool that allows Ruby documentation to be viewed on the command-line.
4
-
5
- You can use +ri+ to look up information from either the command line or
6
- interactively. When you run +ri+ without any arguments it will launch in
7
- interactive mode. In interactive mode you can tab-complete class and method
8
- names.
9
-
10
- == Usage
11
-
12
- To see information for a class, do:
13
- ri ClassName
14
-
15
- For example, for the Array class, do:
16
- ri Array
17
-
18
- To see information on a method on a class, do:
19
- ri ClassName.method
20
-
21
- This will show both instance and class methods. For example, the IO
22
- class defines both IO::read and IO#read:
23
- ri IO.read
24
-
25
- To see information for an instance method, do:
26
- ri ClassName#method_name
27
-
28
- For example, for Array's +join+ method, do:
29
- ri Array#join
30
-
31
- To see information for a class method, do:
32
- ri ClassName::method_name
33
-
34
- For example, for Module's +private+ method, do:
35
- ri Module::private
36
-
37
- To read documentation for all +read+ methods, do:
38
- ri read
39
-
40
- == Options
41
-
42
- +ri+ supports a variety of options, all of which can be viewed via +--help+.
43
- Of particular interest, are:
44
-
45
- [<tt>-f</tt>]
46
- Outputs ri data using the selected formatter. You can see the available
47
- formatters in <tt>ri --help</tt>
48
- [<tt>-T</tt>]
49
- Send output to stdout, rather than to a pager.
50
-
51
- All options also can be specified through the +RI+ environment variable.
52
- Command-line options always override those specified in the +RI+ environment
53
- variable.
54
-
55
- The +RI_PAGER+ environment variable allows you to choose a particular pager or
56
- particular options for your pager.
57
-
File without changes
@@ -1 +0,0 @@
1
- # ignore all files in this directory
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes