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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eb5e9ce0ee619596a8e5d35f7d46a9494ac6e0682215ad0f0bf48a3a87ee8f04
4
- data.tar.gz: 5eff9bd848c484de1c752d60577f9d3ce2910a8d4f61825b02d1552a9209c598
3
+ metadata.gz: 94fb689d34dd180a9dd434050717aff86bbb3a2eb386e61dc5f10c94927bd18b
4
+ data.tar.gz: d04b4e22866b4a688ec057251075ec4ec50aab43b81551a2f77559b8983296f6
5
5
  SHA512:
6
- metadata.gz: 1e435ab938578b0c84ce189def96cfe2c0ab3e0d5881ab3a7d8e1c89b4e082fa21b0388175685ccce08df1a95bcacca8d5c61a703f0aaf81f9950b6bd95119a8
7
- data.tar.gz: 1de8b9658868b6bda3504151486ffa25fc86ee379d3fd41e19b05b5bf93024bd6f244bfaf79e97d45b08e4a3862db890dda9a4f8d8d9576e616021c945a43bf9
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 (Unreleased)
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
- # YARD's legacy parser vendors old IRB code that depends on IRB::Notifier.
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
- # This shim provides just enough functionality to keep YARD's legacy parser working
8
- # without requiring the full IRB gem as a dependency.
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
- # The notifier is only used for debug output in YARD's legacy parser, which we don't need.
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)
@@ -3,6 +3,6 @@
3
3
  module Yard
4
4
  module Lint
5
5
  # @return [String] version of the YARD Lint gem
6
- VERSION = '1.3.0.rc1'
6
+ VERSION = '1.3.0'
7
7
  end
8
8
  end
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yard-lint
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0.rc1
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maciej Mensfeld