keela 0.2.1 → 0.2.3
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 +17 -0
- data/lib/keela/config_file.rb +7 -6
- data/lib/keela/strategies/constants.rb +2 -2
- data/lib/keela/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: 47038e1bf08a377dba99ae8fe91134d51726c3ee20f12a24083ee4f6ecd421db
|
|
4
|
+
data.tar.gz: 429275504d8993d585671dde3cb8b09f374aa315080667d3272958656a38fff3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 146b50c0ec50be23c122a63481ba8a6185234dc9234577530178753346f1da8f30bccbecfc4d414a014bb056bf1d2adbcbb80531391ebb7f1185a266497b9ffc
|
|
7
|
+
data.tar.gz: d3250b7c810ae53389e0a18551d1c408f7218b1437f5047b76bc36e36e4fdf069d1166cd6e0ac64356366278ed73b986d0e511ad1cbf531814bdab3093fbf233
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.2.3] - 2026-07-31
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- Constants strategy no longer detects regex match operator (`=~`) usage as constant definitions ([#31](https://github.com/kerrizor/keela/pull/31))
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- Stop tracking `Gemfile.lock` - gems should not commit their lockfile ([#33](https://github.com/kerrizor/keela/pull/33))
|
|
19
|
+
|
|
20
|
+
## [0.2.2] - 2026-07-27
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
|
|
24
|
+
- Config file lookup now includes `.keela/config.yml` as the first option ([#30](https://github.com/kerrizor/keela/pull/30))
|
|
25
|
+
- Lookup order: `.keela/config.yml` → `keela.yml` → `.keela.yml`
|
|
26
|
+
|
|
10
27
|
## [0.2.1] - 2026-07-27
|
|
11
28
|
|
|
12
29
|
### Added
|
data/lib/keela/config_file.rb
CHANGED
|
@@ -3,11 +3,12 @@
|
|
|
3
3
|
require "yaml"
|
|
4
4
|
|
|
5
5
|
module Keela
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
# Loads configuration from a YAML file.
|
|
7
|
+
#
|
|
8
|
+
# Looks for config files in this order:
|
|
9
|
+
# 1. .keela/config.yml
|
|
10
|
+
# 2. keela.yml
|
|
11
|
+
# 3. .keela.yml
|
|
11
12
|
#
|
|
12
13
|
# Supported keys:
|
|
13
14
|
# - extensions: Array of file extensions to scan
|
|
@@ -30,7 +31,7 @@ module Keela
|
|
|
30
31
|
# - erb
|
|
31
32
|
#
|
|
32
33
|
module ConfigFile
|
|
33
|
-
CONFIG_FILENAMES = %w[keela.yml .keela.yml].freeze
|
|
34
|
+
CONFIG_FILENAMES = %w[.keela/config.yml keela.yml .keela.yml].freeze
|
|
34
35
|
|
|
35
36
|
ALLOWED_KEYS = %w[
|
|
36
37
|
extensions
|
|
@@ -26,8 +26,8 @@ module Keela
|
|
|
26
26
|
# - Namespaced access: Foo::BAR
|
|
27
27
|
# - Class/module definitions
|
|
28
28
|
|
|
29
|
-
# First check it's not a comparison
|
|
30
|
-
return nil if line =~ /[!=]
|
|
29
|
+
# First check it's not a comparison or regex match operator
|
|
30
|
+
return nil if line =~ /[!=]=|=~/
|
|
31
31
|
|
|
32
32
|
# Match the constant definition pattern
|
|
33
33
|
return nil unless line =~ /^\s*([A-Z][A-Z0-9_]*)\s*=/
|
data/lib/keela/version.rb
CHANGED