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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7bbb05d3dd40bb7ec180388541a0d0290023f2a152834f8246c98f285dcf40b9
4
- data.tar.gz: 363208eb22a5a347963ce4accb45ce85744f2e10507a74071d450f5af44d9a51
3
+ metadata.gz: cf90fa10c80dda9e70241b47b215748c8736eceff222cb92a96d75506fb09ab4
4
+ data.tar.gz: 8aaa86646d5f8bb1010f71485cf98bd99e84940cc06e24e42da17571abef992d
5
5
  SHA512:
6
- metadata.gz: 1c4797bf33d18a63b4230887986df0a917785f5d0064053f91bb9702089230de430ceeef0224fbd5a7178bd2b4f610c75b8ea336f823e8dd5cda82a34e070726
7
- data.tar.gz: 015abe2bf689816f2c81951797fac0da9cefb1eebf51f0ed80990b76ff02f21453c1b508e4039524aeba2d22949b612006915ec4d3e6e20786e1119192aa1129
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
@@ -8,7 +8,7 @@ module Calltally
8
8
  DEFAULTS = {
9
9
  "profile" => "auto", # auto|rails|default
10
10
  "dirs" => %w[.],
11
- "exclude" => %w[spec test vendor node_modules tmp log .git .bundle],
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
@@ -84,7 +84,9 @@ module Calltally
84
84
 
85
85
  def excluded?(path)
86
86
  rel = path.sub(@base_dir + "/", "")
87
- @config["exclude"].any? { |ex| rel.include?("/#{ex}/") || File.basename(rel).start_with?("#{ex}.") }
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Calltally
4
- VERSION = "0.3.0"
4
+ VERSION = "0.3.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calltally
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Naoki Nishiguchi