lex-conditioner 0.3.2 → 0.3.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: 94d8e7e0baf6a35400f1b5a69552361508615090608b6d7977f7c1e31ab18a91
4
- data.tar.gz: 752e0c0b5ec72e910ede307337668c4d505fc4cbebcb72c91113c42c29326152
3
+ metadata.gz: bce250dac59290836c688b9835807e9ec63c7afdec5bca0b316cef70c2889d1d
4
+ data.tar.gz: 9ff211061515bee37da533730b89eb20554fd81f798a9d7066cc19e4806f448b
5
5
  SHA512:
6
- metadata.gz: dee8d4d758f4c13fed75d08d2043a254b2146b90aa54c0b07496b83290147fc60cd74209cc2f065f6a4ed197484f1cc4c98db3bf12890303a6179d48b5a9957f
7
- data.tar.gz: cbd042f36e2f33fbb10677d960cf5e96e09c728014e7673c6480c40ada1cddc8c49ddfe89741c282369490fe9f8612d9a86784bd64f5a2b356808a60f352fba8
6
+ metadata.gz: ebe046f95e2bda6c9be77d3a55b9865fe2a8d8d5263f0f219f4b6c400137519e0ee3ee4f901aed5da10f2dce6ac5fd4bf3c6317b27174ad75a31d3464421a4bd
7
+ data.tar.gz: a3c07a04fa1581f198007c91007f5568e754779ecbc092028e127fabc11031c0dbb7d8d34b3dab6b72ff737f817991314d83b000bc005a30dac5fb3d8b8bec65
@@ -10,8 +10,8 @@ jobs:
10
10
  ci:
11
11
  uses: LegionIO/.github/.github/workflows/ci.yml@main
12
12
 
13
- lint:
14
- uses: LegionIO/.github/.github/workflows/lint-patterns.yml@main
13
+ excluded-files:
14
+ uses: LegionIO/.github/.github/workflows/excluded-files.yml@main
15
15
 
16
16
  security:
17
17
  uses: LegionIO/.github/.github/workflows/security-scan.yml@main
@@ -27,8 +27,8 @@ jobs:
27
27
  uses: LegionIO/.github/.github/workflows/stale.yml@main
28
28
 
29
29
  release:
30
- needs: [ci, lint]
30
+ needs: [ci, excluded-files]
31
31
  if: github.event_name == 'push' && github.ref == 'refs/heads/main'
32
32
  uses: LegionIO/.github/.github/workflows/release.yml@main
33
33
  secrets:
34
- rubygems-api-key: ${{ secrets.RUBYGEMS_API_KEY }}
34
+ rubygems-api-key: ${{ secrets.RUBYGEMS_API_KEY }}
data/.rubocop.yml CHANGED
@@ -1,49 +1,2 @@
1
- AllCops:
2
- TargetRubyVersion: 3.4
3
- NewCops: enable
4
- SuggestExtensions: false
5
-
6
- Layout/LineLength:
7
- Max: 160
8
- Layout/SpaceAroundEqualsInParameterDefault:
9
- EnforcedStyle: space
10
- Layout/HashAlignment:
11
- EnforcedHashRocketStyle: table
12
- EnforcedColonStyle: table
13
-
14
- Metrics/MethodLength:
15
- Max: 50
16
- Metrics/ClassLength:
17
- Max: 1500
18
- Metrics/ModuleLength:
19
- Max: 1500
20
- Metrics/BlockLength:
21
- Max: 40
22
- Exclude:
23
- - 'spec/**/*'
24
- Metrics/AbcSize:
25
- Max: 60
26
- Metrics/CyclomaticComplexity:
27
- Max: 15
28
- Metrics/PerceivedComplexity:
29
- Max: 17
30
- Metrics/ParameterLists:
31
- Enabled: false
32
-
33
- Style/Documentation:
34
- Enabled: false
35
- Style/SymbolArray:
36
- Enabled: true
37
- Style/FrozenStringLiteralComment:
38
- Enabled: true
39
- EnforcedStyle: always
40
-
41
- Naming/FileName:
42
- Enabled: false
43
- Naming/PredicateMethod:
44
- Enabled: false
45
- Naming/PredicatePrefix:
46
- Enabled: false
47
-
48
- Gemspec/DevelopmentDependencies:
49
- Enabled: false
1
+ inherit_gem:
2
+ rubocop-legion: config/lex.yml
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.3.3] - 2026-03-30
4
+
5
+ ### Changed
6
+ - update to rubocop-legion 0.1.7, resolve all offenses
7
+
3
8
  ## [0.3.2] - 2026-03-27
4
9
 
5
10
  ### Changed
data/CLAUDE.md CHANGED
@@ -10,7 +10,7 @@ Legion Extension that applies conditional statements to tasks within relationshi
10
10
 
11
11
  **GitHub**: https://github.com/LegionIO/lex-conditioner
12
12
  **License**: MIT
13
- **Version**: 0.3.0
13
+ **Version**: 0.3.1
14
14
 
15
15
  ## Architecture
16
16
 
data/Gemfile CHANGED
@@ -9,6 +9,7 @@ group :test do
9
9
  gem 'rspec', '~> 3.13'
10
10
  gem 'rspec_junit_formatter'
11
11
  gem 'rubocop', '~> 1.75'
12
+ gem 'rubocop-legion', '~> 0.1', require: false
12
13
  gem 'rubocop-rspec'
13
14
  gem 'simplecov'
14
15
  end
@@ -6,8 +6,10 @@ module Legion
6
6
  module Extensions
7
7
  module Conditioner
8
8
  class Client
9
+ include Legion::JSON::Helper
10
+
9
11
  def evaluate(conditions:, values:)
10
- conditions_json = conditions.is_a?(String) ? conditions : Legion::JSON.dump(conditions)
12
+ conditions_json = conditions.is_a?(String) ? conditions : json_dump(conditions)
11
13
  condition = Condition.new(conditions: conditions_json, values: values)
12
14
  {
13
15
  valid: condition.valid?,
@@ -6,8 +6,10 @@ module Legion
6
6
  module Extensions
7
7
  module Conditioner
8
8
  class Condition
9
+ include Legion::JSON::Helper
10
+
9
11
  def initialize(args)
10
- @conditions = Legion::JSON.load(args[:conditions])
12
+ @conditions = json_load(args[:conditions])
11
13
  @values = to_dotted_hash(args[:values])
12
14
  end
13
15
 
@@ -3,7 +3,7 @@
3
3
  module Legion
4
4
  module Extensions
5
5
  module Conditioner
6
- VERSION = '0.3.2'
6
+ VERSION = '0.3.3'
7
7
  end
8
8
  end
9
9
  end
@@ -6,7 +6,7 @@ require_relative 'conditioner/client'
6
6
  module Legion
7
7
  module Extensions
8
8
  module Conditioner
9
- extend Legion::Extensions::Core if Legion::Extensions.const_defined? :Core
9
+ extend Legion::Extensions::Core if Legion::Extensions.const_defined? :Core, false
10
10
  end
11
11
  end
12
12
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lex-conditioner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esity