lex-synapse 0.4.6 → 0.4.7

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: 39062cc354ee7e7cf56da2062d54ee9a9730b76876aab24120cc341287a000ce
4
- data.tar.gz: e9a27bd40eff6e3736e053482d77fcbb91962efc058d2c44219d3299daf1b7ee
3
+ metadata.gz: b6960778e841594a06db2ac55e26f4618d66c5d0316f7e4e586d784586509171
4
+ data.tar.gz: cdf7db39426842d09a38241eb7ab3fb27e1329a6451d36de5bed80a669c96aa0
5
5
  SHA512:
6
- metadata.gz: 9f6059e5c7c9f3b96032a1168c42270185ee2fee9484a78bd818ec3874019347bc80776d66400875fabc82e4af9acf5b2b9e5984a4503f63a9bd828c0a081f97
7
- data.tar.gz: a0f56a6c852e39a737c4ccaf71e6e8421502df132093ce882e892c9706f7a3df74368bee0cf9d8df3990ffdea005b63caaa77dd9d303d3a5145fc42cb3280dfc
6
+ metadata.gz: 2ece1da6b1a9ad7e142927113f23a9f10a05aee0a8cebea0aaf49dcec41fde032f9e98435254d5c7fe7ddda2d9d859c86fec6087607c2895841c5bb0eb36dbc9
7
+ data.tar.gz: 48564fffc100fba87f7ab707e518b76322d556cea1dc2e11a3165b2a41d9e5c1572056bbe930810dc7f91a9c621f5994b3582781ac11469785509e5a4b266922
@@ -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,53 +1,27 @@
1
- AllCops:
2
- TargetRubyVersion: 3.4
3
- NewCops: enable
4
- SuggestExtensions: false
1
+ inherit_gem:
2
+ rubocop-legion: config/lex.yml
5
3
 
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:
4
+ # Actors define `def time` as instance method — cop looks for DSL call, false positive
5
+ Legion/Extension/EveryActorRequiresTime:
31
6
  Enabled: false
32
7
 
33
- Style/Documentation:
8
+ # Runner modules in this repo are designed for `include` into actors/client, not standalone
9
+ Legion/Extension/RunnerIncludeHelpers:
34
10
  Enabled: false
35
- Style/SymbolArray:
36
- Enabled: true
37
- Style/FrozenStringLiteralComment:
38
- Enabled: true
39
- EnforcedStyle: always
40
11
 
41
- Naming/FileName:
12
+ # Private helper methods return non-Hash values by design; only public runner methods require Hash
13
+ Legion/Extension/RunnerReturnHash:
42
14
  Enabled: false
43
- Naming/PredicateMethod:
44
- Enabled: false
45
- Naming/PredicatePrefix:
15
+
16
+ # migrations/ directory exists under data/; cop is checking the wrong path
17
+ Legion/Extension/DataRequiredWithoutMigrations:
46
18
  Enabled: false
47
19
 
48
- Gemspec/DevelopmentDependencies:
20
+ # Runner modules use Legion::JSON directly; helper mixin not included in standalone modules
21
+ Legion/HelperMigration/DirectJson:
49
22
  Enabled: false
50
23
 
24
+ # Spec helper defines empty stub classes for actor testing
51
25
  Lint/EmptyClass:
52
26
  Exclude:
53
27
  - 'spec/**/*'
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.4.7] - 2026-03-30
4
+
5
+ ### Changed
6
+ - update to rubocop-legion 0.1.7, resolve all offenses
7
+
3
8
  ## [0.4.6] - 2026-03-26
4
9
 
5
10
  ### Changed
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'
12
13
  gem 'rubocop-rspec'
13
14
  gem 'sequel'
14
15
  gem 'simplecov'
@@ -157,7 +157,7 @@ module Legion
157
157
  challenger_confidence: llm_confidence
158
158
  )
159
159
  rescue StandardError => e
160
- Legion::Logging.warn("Challenge LLM call failed: #{e.message}") if defined?(Legion::Logging)
160
+ log.warn("Challenge LLM call failed: #{e.message}")
161
161
  Data::Model::SynapseChallenge.create(
162
162
  proposal_id: proposal.id, challenger_type: 'llm',
163
163
  verdict: 'abstain', reasoning: "LLM error: #{e.message}",
@@ -210,7 +210,7 @@ module Legion
210
210
  )
211
211
  { output: result[:success] ? Legion::JSON.dump(result[:result]) : nil }
212
212
  rescue StandardError => e
213
- Legion::Logging.warn("Proposal LLM call failed: #{e.message}")
213
+ log.warn("Proposal LLM call failed: #{e.message}")
214
214
  { output: nil }
215
215
  end
216
216
 
@@ -45,7 +45,7 @@ module Legion
45
45
  return nil unless content
46
46
 
47
47
  content.is_a?(String) ? Legion::JSON.load(content) : content
48
- rescue StandardError
48
+ rescue StandardError => _e
49
49
  nil
50
50
  end
51
51
 
@@ -3,7 +3,7 @@
3
3
  module Legion
4
4
  module Extensions
5
5
  module Synapse
6
- VERSION = '0.4.6'
6
+ VERSION = '0.4.7'
7
7
  end
8
8
  end
9
9
  end
@@ -6,7 +6,7 @@ require_relative 'synapse/client'
6
6
  module Legion
7
7
  module Extensions
8
8
  module Synapse
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
 
11
11
  def self.remote_invocable?
12
12
  false
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lex-synapse
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.6
4
+ version: 0.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esity