yard-lint 1.2.0 → 1.2.2
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 +11 -0
- data/bin/yard-lint +4 -4
- data/lib/yard/lint/version.rb +1 -1
- data/lib/yard/lint.rb +0 -2
- data/lib/yard-lint.rb +3 -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: ce486b9b4338392c9c03ff8392f0f8bacbb7e303e1b594222ee7092ec2b916a7
|
|
4
|
+
data.tar.gz: 22defb3b4fc8f1ea0481bd16f3a0690930ce570678d3f625ae2500bd359fb8c0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 134751b6c3b73c9749d0b3ec156c67333caa3b610fdd74ddd86b581c4456c05e8485a7f9ab2adffefbbfe90d706b7a0919a78d2439f9219405c0c82e9dc5dd2d
|
|
7
|
+
data.tar.gz: 3e9fd559c1583cea798fdbe014e0e6c1a5bfb5243faf9cab8aad30ffeefce7771728fe679645eca2e35621675df3f8d2ec29f21f59d747be08ec275b765ecea2
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# YARD-Lint Changelog
|
|
2
2
|
|
|
3
|
+
## 1.2.2 (2025-11-13)
|
|
4
|
+
- **[Fix]** Fix `--version` flag failing with `uninitialized constant Yard::Lint::VERSION` error
|
|
5
|
+
- Zeitwerk expected `Version` (camel case) but file defined `VERSION` (all caps)
|
|
6
|
+
- Added version.rb to Zeitwerk ignore list and load it manually
|
|
7
|
+
- Prevents Zeitwerk naming convention conflicts with constant names
|
|
8
|
+
- Added CLI integration specs to test version flag behavior
|
|
9
|
+
- [Change] Remove unused `net/http` and `uri` dependencies
|
|
10
|
+
|
|
11
|
+
## 1.2.1 (2025-11-12)
|
|
12
|
+
- [Fix] Fix help text examples showing incorrect argument order (options before PATH instead of PATH before options)
|
|
13
|
+
|
|
3
14
|
## 1.2.0 (2025-11-12)
|
|
4
15
|
- **[Fix]** Add Ruby 3.5+ compatibility without requiring IRB gem dependency
|
|
5
16
|
- Ruby 3.5 moved IRB out of default gems, requiring explicit installation
|
data/bin/yard-lint
CHANGED
|
@@ -73,10 +73,10 @@ OptionParser.new do |opts|
|
|
|
73
73
|
puts
|
|
74
74
|
puts 'Examples:'
|
|
75
75
|
puts ' yard-lint lib/ # Lint all files in lib/'
|
|
76
|
-
puts ' yard-lint --diff main
|
|
77
|
-
puts ' yard-lint --staged
|
|
78
|
-
puts ' yard-lint --changed
|
|
79
|
-
puts ' yard-lint --format json
|
|
76
|
+
puts ' yard-lint lib/ --diff main # Lint only files changed since main branch'
|
|
77
|
+
puts ' yard-lint lib/ --staged # Lint only staged files'
|
|
78
|
+
puts ' yard-lint lib/ --changed # Lint only uncommitted files'
|
|
79
|
+
puts ' yard-lint lib/ --format json # Output in JSON format'
|
|
80
80
|
exit
|
|
81
81
|
end
|
|
82
82
|
end.parse!
|
data/lib/yard/lint/version.rb
CHANGED
data/lib/yard/lint.rb
CHANGED
data/lib/yard-lint.rb
CHANGED
|
@@ -10,7 +10,9 @@ require 'zeitwerk'
|
|
|
10
10
|
loader = Zeitwerk::Loader.for_gem(warn_on_extra_files: false)
|
|
11
11
|
loader.ignore(__FILE__)
|
|
12
12
|
loader.ignore("#{__dir__}/yard/lint/ext")
|
|
13
|
+
loader.ignore("#{__dir__}/yard/lint/version.rb")
|
|
13
14
|
loader.setup
|
|
14
15
|
|
|
15
|
-
# Manually load
|
|
16
|
+
# Manually load files that don't follow Zeitwerk naming conventions
|
|
17
|
+
require_relative 'yard/lint/version'
|
|
16
18
|
require_relative 'yard/lint'
|