yard-lint 1.3.0.rc1 → 1.3.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -1
- data/lib/yard/lint/ext/irb_notifier_shim.rb +19 -6
- data/lib/yard/lint/version.rb +1 -1
- data/lib/yard-lint.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 94fb689d34dd180a9dd434050717aff86bbb3a2eb386e61dc5f10c94927bd18b
|
|
4
|
+
data.tar.gz: d04b4e22866b4a688ec057251075ec4ec50aab43b81551a2f77559b8983296f6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 964e60021c8c7d78308e3ceafa76f54b6f096fc65ff99e0adec51ef8620c1aa42c908d6fdef0f548ce96dbc9b0d1de380b59cd49816d7516ddf29cc337e426b3
|
|
7
|
+
data.tar.gz: e59e7924b6d7e823ca6a9146d040b3d5739360e1763afca3c966a0a885c0e6a8b782e33e48a9a0a0088b8c3ae0fa34cba64b12c2df33eac906b35c2052d318a3
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# YARD-Lint Changelog
|
|
2
2
|
|
|
3
|
-
## 1.3.0 (
|
|
3
|
+
## 1.3.0 (2025-12-10)
|
|
4
4
|
- **[Fix]** Expand `Tags/Order` default `EnforcedOrder` to include all standard YARD tags
|
|
5
5
|
- Previous config only included: `param`, `option`, `return`, `raise`, `example`
|
|
6
6
|
- Now includes full order: `param`, `option`, `yield`, `yieldparam`, `yieldreturn`, `return`, `raise`, `see`, `example`, `note`, `todo`
|
|
@@ -1,16 +1,29 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Shim for IRB::Notifier to avoid IRB dependency in Ruby 3.5+
|
|
3
|
+
# Shim for IRB::Notifier to avoid IRB dependency in Ruby 3.5+/4.0+
|
|
4
4
|
#
|
|
5
|
-
#
|
|
5
|
+
# WHY THIS SHIM IS NEEDED:
|
|
6
6
|
# In Ruby 3.5+, IRB is no longer part of the default gems and must be explicitly installed.
|
|
7
|
-
#
|
|
8
|
-
#
|
|
7
|
+
# YARD's codebase has a dependency chain that triggers `require "irb/notifier"` even when
|
|
8
|
+
# using the modern Ripper-based parser:
|
|
9
9
|
#
|
|
10
|
-
#
|
|
10
|
+
# @!attribute directive parsing
|
|
11
|
+
# → YARD::Tags::OverloadTag#parse_signature
|
|
12
|
+
# → YARD::Parser::Ruby::Legacy::TokenList
|
|
13
|
+
# → ruby_lex.rb
|
|
14
|
+
# → irb/slex.rb
|
|
15
|
+
# → require "irb/notifier" ← FAILS without IRB gem or this shim
|
|
16
|
+
#
|
|
17
|
+
# This happens because YARD uses its legacy TokenList for parsing attribute signatures,
|
|
18
|
+
# regardless of which main parser is selected. Until YARD removes this dependency,
|
|
19
|
+
# this shim is required for Ruby 3.5+/4.0+ compatibility.
|
|
20
|
+
#
|
|
21
|
+
# WHAT THIS SHIM DOES:
|
|
22
|
+
# Provides a minimal no-op implementation of IRB::Notifier that satisfies YARD's
|
|
23
|
+
# requirements. The notifier is only used for debug output which we don't need.
|
|
11
24
|
#
|
|
12
25
|
# IMPORTANT: This shim only loads if IRB::Notifier is not already defined.
|
|
13
|
-
# If IRB gem is present, we use the real implementation instead.
|
|
26
|
+
# If the IRB gem is present, we use the real implementation instead.
|
|
14
27
|
|
|
15
28
|
# Only load the shim if IRB::Notifier is not already defined
|
|
16
29
|
unless defined?(IRB::Notifier)
|
data/lib/yard/lint/version.rb
CHANGED
data/lib/yard-lint.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Load IRB notifier shim before YARD to avoid IRB dependency in Ruby 3.5+
|
|
3
|
+
# Load IRB notifier shim before YARD to avoid IRB dependency in Ruby 3.5+/4.0+
|
|
4
4
|
# This must be loaded before any YARD code is required
|
|
5
5
|
require_relative 'yard/lint/ext/irb_notifier_shim'
|
|
6
6
|
|