rdoc 6.13.0 → 6.13.1
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.
- checksums.yaml +4 -4
- data/lib/rdoc/code_object/class_module.rb +3 -1
- data/lib/rdoc/code_object/top_level.rb +3 -1
- data/lib/rdoc/options.rb +12 -0
- data/lib/rdoc/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d37c61d3b62301d9edb9907e9d479ed46ee9c930ef642ab50c5a8ef9793aa6c
|
4
|
+
data.tar.gz: 987db79f9426bf33980775d980fc0ea36f527f74dd2098433450ee18a3ab1715
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6afade46cb94e3cbd3d595d49ae76d41b07a4c987e4a30159558caf368453628ddf7f790c9eeb0d95023323f5ff63c2e64df8ec99b1fb87a1b490bc42feb23b
|
7
|
+
data.tar.gz: 8e7e146ab28264fc33223f1e31c38985844718bc679aa7c11e0daef73edef93325f322c60fc1b78d5182d426ef972b6f685b31010f55f5e02be2d0a333972eb0
|
@@ -630,7 +630,9 @@ class RDoc::ClassModule < RDoc::Context
|
|
630
630
|
# Path to this class or module for use with HTML generator output.
|
631
631
|
|
632
632
|
def path
|
633
|
-
|
633
|
+
prefix = options.class_module_path_prefix
|
634
|
+
return http_url unless prefix
|
635
|
+
File.join(prefix, http_url)
|
634
636
|
end
|
635
637
|
|
636
638
|
##
|
@@ -226,7 +226,9 @@ class RDoc::TopLevel < RDoc::Context
|
|
226
226
|
# Path to this file for use with HTML generator output.
|
227
227
|
|
228
228
|
def path
|
229
|
-
|
229
|
+
prefix = options.file_path_prefix
|
230
|
+
return http_url unless prefix
|
231
|
+
File.join(prefix, http_url)
|
230
232
|
end
|
231
233
|
|
232
234
|
def pretty_print q # :nodoc:
|
data/lib/rdoc/options.rb
CHANGED
@@ -363,6 +363,16 @@ class RDoc::Options
|
|
363
363
|
# Words to be ignored in autolink cross-references
|
364
364
|
attr_accessor :autolink_excluded_words
|
365
365
|
|
366
|
+
##
|
367
|
+
# The prefix to use for class and module page paths
|
368
|
+
|
369
|
+
attr_accessor :class_module_path_prefix
|
370
|
+
|
371
|
+
##
|
372
|
+
# The prefix to use for file page paths
|
373
|
+
|
374
|
+
attr_accessor :file_path_prefix
|
375
|
+
|
366
376
|
def initialize loaded_options = nil # :nodoc:
|
367
377
|
init_ivars
|
368
378
|
override loaded_options if loaded_options
|
@@ -417,6 +427,8 @@ class RDoc::Options
|
|
417
427
|
@charset = @encoding.name
|
418
428
|
@skip_tests = true
|
419
429
|
@apply_default_exclude = true
|
430
|
+
@class_module_path_prefix = nil
|
431
|
+
@file_path_prefix = nil
|
420
432
|
end
|
421
433
|
|
422
434
|
def init_with map # :nodoc:
|
data/lib/rdoc/version.rb
CHANGED
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.13.
|
4
|
+
version: 6.13.1
|
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: 2025-03-
|
16
|
+
date: 2025-03-29 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: psych
|