yard 0.9.38 → 0.9.39

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: a3a536051e6077e89b4ef2bc4ac2f30e60b8e65d33cdca957fed25644bf901a7
4
- data.tar.gz: 6f4a7736baaeec0a55e7595b12f5828927fc46115e20e4dd919e96543541cbbd
3
+ metadata.gz: b836f5d9002f597a10995cf2cad6397d7b165eb97f62913dc8139edcebecd447
4
+ data.tar.gz: 97acbcdc84297f679bd3b47964e11fb4f8db59b147f4d2a18e8969b81788ba7f
5
5
  SHA512:
6
- metadata.gz: b9a5348496a1778b2f4a7793df24716329a665fdabbe237932cd126c8309be4543d35b35a279e4ddb3cb31978c1b6e88ae0b799004ee79f2316d6896b9057201
7
- data.tar.gz: f5c993f3808b9f5baca0c8fc1f92abeb7a113b1be7164dfd71b0b4bff98c58416ea5a82baf473780995d132bbbd7ffbbbffceddb01fda40993fac04bdb790cf8
6
+ metadata.gz: 98c9eb39c6f8d904630317d2d322339fa427e6b44e38b5e1d51ebcf8f7a97db74b1959e33c98ba9b6eb4f4ff6ef25b3422bdac600b66007235ed008691e3bded
7
+ data.tar.gz: 3758da9b0b0a6c8ef9e169aee6774d31e1b4599e1c7fbe4e912b40bfb6f27136485342a3b273b0aab2d55e39df396be9076bb83da67d1284576b9cb2f027d464
data/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # main
2
2
 
3
+ # [0.9.39] - April 8th, 2026
4
+
5
+ [0.9.39]: https://github.com/lsegal/yard/compare/v0.9.38...v0.9.39
6
+
7
+ - Add support for Ruby 4.0 (#1663)
8
+ - Add changelog URI to gemspec metadata (#1641)
9
+ - Fix issues with source ranges (#1642)
10
+ - Fix an issue loading relative links from file list in HTML template (#1660)
11
+ - Various test fixes (#1650, #1651)
12
+
13
+
3
14
  # [0.9.38] - December 5th, 2025
4
15
 
5
16
  [0.9.38]: https://github.com/lsegal/yard/compare/v0.9.37...v0.9.38
@@ -10,7 +10,25 @@
10
10
  #
11
11
  #
12
12
 
13
- require "irb/notifier"
13
+ begin
14
+ require "irb/notifier"
15
+ rescue LoadError
16
+ module IRB
17
+ module DebugLogger
18
+ def self.pp(*args) end
19
+ end
20
+
21
+ module Notifier
22
+ D_NOMSG = 0x00
23
+ def self.def_notifier(*args) self end
24
+ def self.pp(*args) end
25
+ def self.exec_if(*args, &block) end
26
+ def self.printf(*args) end
27
+ def self.puts(*args) end
28
+ def self.level=(value) end
29
+ end
30
+ end
31
+ end
14
32
 
15
33
  # @private
16
34
  module IRB
@@ -398,8 +398,10 @@ module YARD
398
398
 
399
399
  def on_aref_field(*args)
400
400
  @map[:lbracket].pop
401
- AstNode.new(:aref_field, args,
402
- :listline => lineno..lineno, :listchar => charno...charno)
401
+ ll, lc = *@map[:aref].shift
402
+ sr = args.first.source_range.begin..lc
403
+ lr = args.first.line_range.begin..ll
404
+ AstNode.new(:aref_field, args, :char => sr, :line => lr)
403
405
  end
404
406
 
405
407
  def on_array(other)
@@ -11,7 +11,7 @@ class Gem::Specification
11
11
  @has_rdoc == 'yard'
12
12
  end
13
13
 
14
- undef has_rdoc?
14
+ undef has_rdoc? if method_defined?(:has_rdoc?)
15
15
  def has_rdoc?
16
16
  (@has_rdoc ||= true) && @has_rdoc != 'yard'
17
17
  end
@@ -228,7 +228,7 @@ module YARD
228
228
  # @return [String] HTML with linkified references
229
229
  def resolve_links(text)
230
230
  code_tags = 0
231
- text.gsub(%r{<(/)?(pre|code|tt)|(\\|!)?\{(?!\})(\S+?)(?:\s([^\}]*?\S))?\}(?=[\W<]|.+</|$)}m) do |str|
231
+ text.gsub(%r{<(/)?(pre|code|tt)|(\\|!)?\{(?!\})(\S+?)(?:\s([^\}]*?\S))?\}(?=\W|.+</|$)}m) do |str|
232
232
  closed = $1
233
233
  tag = $2
234
234
  escape = $3
data/lib/yard/version.rb CHANGED
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module YARD
5
- VERSION = '0.9.38'
5
+ VERSION = '0.9.39'
6
6
  end
@@ -43,10 +43,11 @@ function enableLinks() {
43
43
  elem.dispatchEvent(newEvent);
44
44
  evt.preventDefault();
45
45
  } else {
46
- window.top.postMessage({
47
- action: "navigate",
48
- url: $clicked.find('.object_link a').attr('href'),
49
- }, "*");
46
+ let url = $clicked.find('.object_link a').attr('href');
47
+ try {
48
+ url = new URL(url, window.location.href).href;
49
+ } catch { }
50
+ window.top.postMessage({ action: "navigate", url: url }, "*");
50
51
  }
51
52
  return false;
52
53
  });
@@ -201,7 +202,7 @@ function isInView(element) {
201
202
  window.innerHeight || document.documentElement.clientHeight;
202
203
  return rect.left >= 0 && rect.bottom <= windowHeight;
203
204
  }
204
-
205
+
205
206
  /**
206
207
  * Expands the tree to the target element and its immediate
207
208
  * children.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.38
4
+ version: 0.9.39
5
5
  platform: ruby
6
6
  authors:
7
7
  - Loren Segal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-12-05 00:00:00.000000000 Z
11
+ date: 2026-04-08 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |2
14
14
  YARD is a documentation generation tool for the Ruby programming language.
@@ -398,6 +398,7 @@ licenses:
398
398
  - MIT
399
399
  metadata:
400
400
  yard.run: yri
401
+ changelog_uri: https://rubydoc.info/gems/yard/file/CHANGELOG.md
401
402
  post_install_message:
402
403
  rdoc_options: []
403
404
  require_paths: