yard-lint 1.2.1 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2d38dac401b22e4a61826034aa1740ba5247e8ea68c9e691b56da84adc77686b
4
- data.tar.gz: bd050e14472438df84b88a715b1bcdcc7583a23ea5856617f23fbf6e2369f25b
3
+ metadata.gz: ce486b9b4338392c9c03ff8392f0f8bacbb7e303e1b594222ee7092ec2b916a7
4
+ data.tar.gz: 22defb3b4fc8f1ea0481bd16f3a0690930ce570678d3f625ae2500bd359fb8c0
5
5
  SHA512:
6
- metadata.gz: 40fbbeb3b0f9bcd22681dc949474a56f410ca3ffa6fa765961987a95c1101781291f9064e93ffa3d348bcab3f047730ffb01481621cbe65dbf3ad5eb4ac00b0a
7
- data.tar.gz: 4a7ecfefa949d7569ff00de5fb5df521ba4c64237cf0e639b4ec4dac47c91d3857dba2655f5f132f0594212362f56fcdbd177c92fef94cf5f3936c10d119b1b4
6
+ metadata.gz: 134751b6c3b73c9749d0b3ec156c67333caa3b610fdd74ddd86b581c4456c05e8485a7f9ab2adffefbbfe90d706b7a0919a78d2439f9219405c0c82e9dc5dd2d
7
+ data.tar.gz: 3e9fd559c1583cea798fdbe014e0e6c1a5bfb5243faf9cab8aad30ffeefce7771728fe679645eca2e35621675df3f8d2ec29f21f59d747be08ec275b765ecea2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
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
+
3
11
  ## 1.2.1 (2025-11-12)
4
12
  - [Fix] Fix help text examples showing incorrect argument order (options before PATH instead of PATH before options)
5
13
 
@@ -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.2.1'
6
+ VERSION = '1.2.2'
7
7
  end
8
8
  end
data/lib/yard/lint.rb CHANGED
@@ -6,8 +6,6 @@ require 'open3'
6
6
  require 'tempfile'
7
7
  require 'tmpdir'
8
8
  require 'digest'
9
- require 'net/http'
10
- require 'uri'
11
9
 
12
10
  module Yard
13
11
  # YARD Lint module providing linting functionality for YARD documentation
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 the main module since it contains class-level methods
16
+ # Manually load files that don't follow Zeitwerk naming conventions
17
+ require_relative 'yard/lint/version'
16
18
  require_relative 'yard/lint'
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.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maciej Mensfeld