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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 752c58278dac55778d56ab11ca257f5902224f23e0f0a50aa69e5868dfc3fb34
4
- data.tar.gz: bf83b7a81ffb712d5b377308a4af2b35d59a5d0c394b9082fae938399410931f
3
+ metadata.gz: 8d37c61d3b62301d9edb9907e9d479ed46ee9c930ef642ab50c5a8ef9793aa6c
4
+ data.tar.gz: 987db79f9426bf33980775d980fc0ea36f527f74dd2098433450ee18a3ab1715
5
5
  SHA512:
6
- metadata.gz: 85231fbcadaf3c4890808169e0ee5ffb83083a58dc803f8c67048fbfef9ff718f0d595d09b56772d916b7233a819fcf23874fc8386e65b5e9902e3f3b451e27a
7
- data.tar.gz: 63a2be58e2972b5aea4c57fc7c617246403de2c8e4436954225753d3271026311d2cc40344ffe15232a7df139af623994b012e6514bca940c724cb0da5a441a9
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
- http_url
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
- http_url
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
@@ -5,6 +5,6 @@ module RDoc
5
5
  ##
6
6
  # RDoc version you are using
7
7
 
8
- VERSION = '6.13.0'
8
+ VERSION = '6.13.1'
9
9
 
10
10
  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.13.0
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-23 00:00:00.000000000 Z
16
+ date: 2025-03-29 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: psych