stellwerk 0.0.3 → 0.0.4

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: f7ad132ec4853899869bcbcee2b1986cc727a68ee2c7c9195ac671dd867f446f
4
- data.tar.gz: b277558ce497fe36c8e7d376b0a43e60a7e4ad370bed2969d6fc39c28d9e83bb
3
+ metadata.gz: 8498a359b34f36d138067c9826f5115f0af93bd0263c22d078044fd1ffb919d6
4
+ data.tar.gz: 1b78ee353ee69021bc0e6ce6c32ba14c1740f605cb6b603eb380b0c16dddcbf5
5
5
  SHA512:
6
- metadata.gz: 779e20d8e08352b85bce1abea1bed9e498889d88e2ed7776eded60e5708d7a53693bd13d0da52f31241e49813b6864802b4d4f2b2646c525851917568f8ea9f1
7
- data.tar.gz: e6091b2d39561c3a10f8a13f883139450d8bc457a8b33e1349206183705067f86f595e4a6f5b500084e01e2bb02207f38f435e314c7602988a80a1a4d497360d
6
+ metadata.gz: 7298d09081ea2f1fe25e6ead03e294afb8ad659cadd2920018244fbf1fd077e11dbeb9d282905d8a227aaa5c57c192b424eed41538d13989ca3207ea3f41617b
7
+ data.tar.gz: 994f6842cd1eb83f6dcd6b6afe9d29c4723b1c68edfcd4566539047a2878e179cace5aba5da3fb92c4194c5fc7a97a70371a9008c47ed3a472fb79c038980035
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.0.4] - 2026-02-15
4
+
5
+ - Do not check files in `vendor/`
6
+
3
7
  ## [0.0.3] - 2026-02-15
4
8
 
5
9
  - exit with non-zero exit code if any violations are found
@@ -9,6 +9,8 @@ require "stellwerk/printer"
9
9
  module Stellwerk
10
10
  module Commands
11
11
  class Check
12
+ EXCLUDED_PATHS = ["db/", "vendor/"]
13
+
12
14
  def initialize(root_path, autoloaders: nil)
13
15
  @root_path = Pathname.new(root_path)
14
16
  @autoloaders = autoloaders || fake_autoloaders
@@ -24,9 +26,11 @@ module Stellwerk
24
26
  root_path: @root_path
25
27
  )
26
28
 
29
+ absolute_exclude_paths = EXCLUDED_PATHS.map { |path| @root_path.join(path) }
30
+
27
31
  all_files = @root_path.find
28
32
  .select { |path| path.to_s.end_with?(".rb") }
29
- .reject { |path| path.relative_path_from(@root_path).to_s.start_with?("db/") }
33
+ .reject { |path| absolute_exclude_paths.any? { |exclude| path.start_with?(exclude) } }
30
34
  puts "collected #{all_files.length} files"
31
35
 
32
36
  before = Time.now
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stellwerk
4
- VERSION = "0.0.3"
4
+ VERSION = "0.0.4"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stellwerk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philip Theus