lex-uais 0.1.0 → 0.1.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: b6c9562fc2b37ffa26eec00a63d7c0bd0bccb34feb807ba5f7f9e5a1d36d253f
4
- data.tar.gz: 4b7a16c4dc99c84dd2766b770ce6f569ab65f2c46a442ae8b18dc3407ef08d51
3
+ metadata.gz: 1a69ce4750f4857bd82f7227a8776e3e79bb9c809b3d32a0a9efd1e78658d879
4
+ data.tar.gz: 05e293c0c387d46bd781d9e26901511e7cc2126394795eaac0704d59dfe3c8a1
5
5
  SHA512:
6
- metadata.gz: 465dc286dcfcfa2471447df60517e57c727cc7e53a966b16ac69ed5c1766448cf1f5e871d72e9d9dace0c7818b721d4d4a8a1b87a0fa223e8d3347c3d632ed64
7
- data.tar.gz: 3ad6cb3bf597404a8d5931e34b024661883236b1567c68605b0e708363dbd1ddbd0848c1125acb18e82a345c89a103b4718aa86c3b307289a12c449fc3eab565
6
+ metadata.gz: 7f0f98bfca3c6f96f208bd9b3087296e6bb1c436672483ec524e298dc74157240db57fe9ea39e74846a4ca966a528d5fcee204a766395c5d51cc3144d80e4086
7
+ data.tar.gz: 450bb369e9ca9ede6fc73c4dab5b4c601931e567576873639f1c65e9d08fecf8f5751519d46ad4adfa969fe554abb79f8cffc537e16969a94a21f8cb4400f31c
@@ -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,7 +27,7 @@ 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:
data/.rubocop.yml CHANGED
@@ -1,50 +1,10 @@
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
-
9
- Layout/SpaceAroundEqualsInParameterDefault:
10
- EnforcedStyle: space
11
-
12
- Layout/HashAlignment:
13
- EnforcedHashRocketStyle: table
14
- EnforcedColonStyle: table
15
-
16
- Metrics/MethodLength:
17
- Max: 50
18
-
19
- Metrics/ClassLength:
20
- Max: 1500
21
-
22
- Metrics/ModuleLength:
23
- Max: 1500
24
-
25
- Metrics/BlockLength:
26
- Max: 40
27
- Exclude:
28
- - 'spec/**/*'
29
-
30
- Metrics/AbcSize:
31
- Max: 60
32
-
33
- Metrics/CyclomaticComplexity:
34
- Max: 15
35
-
36
- Metrics/PerceivedComplexity:
37
- Max: 17
38
-
39
- Style/Documentation:
4
+ # Runner methods return hashes from private helpers (mock_register, mock_deregister)
5
+ Legion/Extension/RunnerReturnHash:
40
6
  Enabled: false
41
7
 
42
- Style/SymbolArray:
43
- Enabled: true
44
-
45
- Style/FrozenStringLiteralComment:
46
- Enabled: true
47
- EnforcedStyle: always
48
-
49
- Naming/FileName:
8
+ # Runner module uses include Helpers::Client at bottom, satisfying the intent
9
+ Legion/Extension/RunnerIncludeHelpers:
50
10
  Enabled: false
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.1.1] - 2026-03-30
4
+
5
+ ### Changed
6
+ - update to rubocop-legion 0.1.7, resolve all offenses
7
+
3
8
  ## [0.1.0] - 2026-03-27
4
9
 
5
10
  ### Added
data/Gemfile CHANGED
@@ -8,6 +8,7 @@ group :test do
8
8
  gem 'rspec'
9
9
  gem 'rspec_junit_formatter'
10
10
  gem 'rubocop'
11
+ gem 'rubocop-legion', '~> 0.1'
11
12
  gem 'simplecov'
12
13
 
13
14
  gem 'legion-cache'
@@ -17,7 +17,7 @@ module Legion
17
17
  http.instance_variable_set(:@_api_key, api_key)
18
18
 
19
19
  def http.api_key
20
- @_api_key
20
+ @_api_key # rubocop:disable ThreadSafety/ClassInstanceVariable
21
21
  end
22
22
 
23
23
  http
@@ -36,7 +36,7 @@ module Legion
36
36
  req = klass.new(path)
37
37
  req['Content-Type'] = 'application/json'
38
38
  req['Authorization'] = "Bearer #{api_key}" if api_key
39
- req.body = Legion::JSON.dump(body) if body
39
+ req.body = Legion::JSON.dump(body) if body # rubocop:disable Legion/HelperMigration/DirectJson
40
40
  req
41
41
  end
42
42
  end
@@ -85,8 +85,8 @@ module Legion
85
85
 
86
86
  def parse_response(resp)
87
87
  body = begin
88
- Legion::JSON.load(resp.body)
89
- rescue StandardError
88
+ Legion::JSON.load(resp.body) # rubocop:disable Legion/HelperMigration/DirectJson
89
+ rescue StandardError => _e
90
90
  {}
91
91
  end
92
92
  { success: resp.is_a?(Net::HTTPSuccess), status: resp.code.to_i, data: body }
@@ -107,7 +107,7 @@ module Legion
107
107
  end
108
108
 
109
109
  def soft_warn(message)
110
- Legion::Logging.warn("[lex-uais] #{message}") if defined?(Legion::Logging)
110
+ Legion::Logging.warn("[lex-uais] #{message}") if defined?(Legion::Logging) # rubocop:disable Legion/HelperMigration/DirectLogging, Legion/HelperMigration/LoggingGuard
111
111
  end
112
112
 
113
113
  include Helpers::Client if defined?(Helpers::Client)
@@ -3,7 +3,7 @@
3
3
  module Legion
4
4
  module Extensions
5
5
  module Uais
6
- VERSION = '0.1.0'
6
+ VERSION = '0.1.1'
7
7
  end
8
8
  end
9
9
  end
@@ -7,7 +7,7 @@ require 'legion/extensions/uais/runners/registration'
7
7
  module Legion
8
8
  module Extensions
9
9
  module Uais
10
- extend Legion::Extensions::Core if Legion::Extensions.const_defined? :Core
10
+ extend Legion::Extensions::Core if Legion::Extensions.const_defined? :Core, false
11
11
 
12
12
  def self.default_settings
13
13
  {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lex-uais
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esity