calltally 0.3.0 → 0.3.1
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 +10 -0
- data/lib/calltally/config.rb +1 -1
- data/lib/calltally/scanner.rb +3 -1
- data/lib/calltally/version.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: cf90fa10c80dda9e70241b47b215748c8736eceff222cb92a96d75506fb09ab4
|
4
|
+
data.tar.gz: 8aaa86646d5f8bb1010f71485cf98bd99e84940cc06e24e42da17571abef992d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e325e9b2de437c842f5c9eb5b4048a156389c68d89d4e6f16ce840cdf7e2c4f37b1659e2d4684da003cc64ab5cbb7e8e7d8d4efa1134e49a303331eb772f0281
|
7
|
+
data.tar.gz: fad085d0dabf7ea45e8864c7c060ddb1680e13070f60d8737e0b10fee48bee461297f17b2234a53fb31f1b9fbca1748334ad6dedcb93ccb8f359dd77eb27f5b8
|
data/CHANGELOG.md
CHANGED
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
7
7
|
|
8
8
|
## [Unreleased]
|
9
9
|
|
10
|
+
## [0.3.1] - 2025-10-10
|
11
|
+
|
12
|
+
### Fixed
|
13
|
+
- Fixed `--exclude` option not properly excluding root-level directories (e.g., `spec/`, `test/`)
|
14
|
+
- Simplified exclude pattern matching logic for better reliability
|
15
|
+
|
16
|
+
### Changed
|
17
|
+
- Removed `test` and `spec` from default exclude list to enable test code analysis
|
18
|
+
- Test and spec directories are now scanned by default (can still be excluded with `-x test,spec`)
|
19
|
+
|
10
20
|
## [0.3.0] - 2025-09-20
|
11
21
|
|
12
22
|
### Added
|
data/lib/calltally/config.rb
CHANGED
@@ -8,7 +8,7 @@ module Calltally
|
|
8
8
|
DEFAULTS = {
|
9
9
|
"profile" => "auto", # auto|rails|default
|
10
10
|
"dirs" => %w[.],
|
11
|
-
"exclude" => %w[
|
11
|
+
"exclude" => %w[vendor node_modules tmp log .git .bundle],
|
12
12
|
"top" => 100,
|
13
13
|
"verbose" => false,
|
14
14
|
"mode" => "pairs", # pairs|methods|receivers
|
data/lib/calltally/scanner.rb
CHANGED
@@ -84,7 +84,9 @@ module Calltally
|
|
84
84
|
|
85
85
|
def excluded?(path)
|
86
86
|
rel = path.sub(@base_dir + "/", "")
|
87
|
-
@config["exclude"].any?
|
87
|
+
@config["exclude"].any? do |ex|
|
88
|
+
rel == ex || rel.start_with?("#{ex}/", "#{ex}.") || rel.include?("/#{ex}/")
|
89
|
+
end
|
88
90
|
end
|
89
91
|
|
90
92
|
def read_source(path)
|
data/lib/calltally/version.rb
CHANGED