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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a2bb8c13b7ef3c4a38029a71e02f46a3d572cc9f27e2d625f779b39bef07197a
4
- data.tar.gz: b6bfcdd221a08c429eac645c01598817c5c1bd01304b937da143d6a5c0c9eb26
3
+ metadata.gz: 47038e1bf08a377dba99ae8fe91134d51726c3ee20f12a24083ee4f6ecd421db
4
+ data.tar.gz: 429275504d8993d585671dde3cb8b09f374aa315080667d3272958656a38fff3
5
5
  SHA512:
6
- metadata.gz: db79ae6b9b332d6bef3b2472f347f7b015805b70aef92ad58e5b788b8c33dac3424b9242aee60747b5eb6048a645140665e96f6dc27d6424a5160c4afe54e22f
7
- data.tar.gz: fc15ddd72010545b39df3e03a7f7c28dea0fa6b14c3d5f2a8d9a9223e01e67336254864514ff9941195457e7d5cba90535da217b6a86b7d067f03f874464c3c6
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
@@ -3,11 +3,12 @@
3
3
  require "yaml"
4
4
 
5
5
  module Keela
6
- # Loads configuration from a YAML file.
7
- #
8
- # Looks for config files in this order:
9
- # 1. keela.yml
10
- # 2. .keela.yml
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Keela
4
- VERSION = "0.2.1"
4
+ VERSION = "0.2.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: keela
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kerri Miller