lex-redis 0.1.1 → 0.2.0

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: a9539cd6fbe7a2f4a2272455f198262475204c51dfaed6357c144631a9f9708e
4
- data.tar.gz: 9708872e0b5637714f479b53422e721a5b9ba58df3ff0dc7f35b1275186eb624
3
+ metadata.gz: 9f273fe69d0bd2d48811459891dcf582e3dc5c4109ac830107c6fd782656b5c7
4
+ data.tar.gz: '07796f5b244afdfa2d18d2a08445070e5e96c55c87c191b65d2dcb6224978654'
5
5
  SHA512:
6
- metadata.gz: 728607659576c3248fa6cc3a97b1112f33c0c8765dd47ffcbda6095b147e71154464c4094a24bb4f2f0532587aa803a9681273c7ce63ddf43d659791a1b3c7c5
7
- data.tar.gz: f08234977a05e370814ccaadd78e784d76e0e1567666ab1ddf59f8b8f47420bc02d1d592e5f2aa139ab33aa411b367e027dd3295c6545d1537d3261c5e1e61b4
6
+ metadata.gz: f94ef0cd15b0a20113bfd6658a95995eca067a010fdf50de725e1544a837be9060970b06d669c457e1649a862f53e360f07d8519cce0103e639d52fc8ca6579a
7
+ data.tar.gz: a01a0ab843ddcad4d656ecd14097fc467b342197af11b4618752d5de1475952e8bf4b7d84dd71e0f53251d1fb1ee0eef76520f1b77fb7f4ef6c807b840c9df86
@@ -0,0 +1,18 @@
1
+ name: CI
2
+ on:
3
+ push:
4
+ branches: [main]
5
+ pull_request:
6
+
7
+ jobs:
8
+ ci:
9
+ uses: LegionIO/.github/.github/workflows/ci.yml@main
10
+ with:
11
+ needs-redis: true
12
+
13
+ release:
14
+ needs: ci
15
+ if: github.event_name == 'push' && github.ref == 'refs/heads/main'
16
+ uses: LegionIO/.github/.github/workflows/release.yml@main
17
+ secrets:
18
+ rubygems-api-key: ${{ secrets.RUBYGEMS_API_KEY }}
data/.rubocop.yml CHANGED
@@ -1,22 +1,50 @@
1
+ AllCops:
2
+ TargetRubyVersion: 3.4
3
+ NewCops: enable
4
+ SuggestExtensions: false
5
+
1
6
  Layout/LineLength:
2
- Max: 120
7
+ Max: 160
8
+
9
+ Layout/SpaceAroundEqualsInParameterDefault:
10
+ EnforcedStyle: space
11
+
12
+ Layout/HashAlignment:
13
+ EnforcedHashRocketStyle: table
14
+ EnforcedColonStyle: table
15
+
3
16
  Metrics/MethodLength:
4
- Max: 30
17
+ Max: 50
18
+
5
19
  Metrics/ClassLength:
6
20
  Max: 1500
21
+
22
+ Metrics/ModuleLength:
23
+ Max: 1500
24
+
7
25
  Metrics/BlockLength:
8
- Max: 50
26
+ Max: 40
27
+ Exclude:
28
+ - 'spec/**/*'
29
+
9
30
  Metrics/AbcSize:
10
- Max: 30
31
+ Max: 60
32
+
33
+ Metrics/CyclomaticComplexity:
34
+ Max: 15
35
+
36
+ Metrics/PerceivedComplexity:
37
+ Max: 17
38
+
11
39
  Style/Documentation:
12
40
  Enabled: false
13
- AllCops:
14
- TargetRubyVersion: 2.5
15
- NewCops: enable
16
- SuggestExtensions: false
41
+
42
+ Style/SymbolArray:
43
+ Enabled: true
44
+
17
45
  Style/FrozenStringLiteralComment:
18
- Enabled: false
46
+ Enabled: true
47
+ EnforcedStyle: always
48
+
19
49
  Naming/FileName:
20
50
  Enabled: false
21
- Style/ClassAndModuleChildren:
22
- Enabled: false
data/CHANGELOG.md CHANGED
@@ -1,4 +1,22 @@
1
- # LEX::Redis
1
+ # Changelog
2
2
 
3
- ## v0.1.1
4
- Bumping version for GitHub migration
3
+ ## [0.2.0] - 2026-03-15
4
+
5
+ ### Added
6
+ - Standalone `Client` class including all runner modules
7
+ - Client accepts `host:`, `port:`, and additional kwargs at construction
8
+ - Per-call option overrides via `client(**override)`
9
+
10
+ ## [0.1.1] - 2026-03-15
11
+
12
+ ### Added
13
+ - Comprehensive specs for `Helpers::Client`: connection defaults, custom host/port,
14
+ optional db and password keyword arguments
15
+ - Comprehensive specs for `Runners::Item`: get, set (with and without ttl), delete,
16
+ exists, increment, decrement, keys (glob pattern), and rename
17
+ - Comprehensive specs for `Runners::Server`: keys, ping (with and without message),
18
+ save, time, flushall, and flush_db (default and custom db)
19
+ - Expanded specs for `Legion::Extensions::Redis` module: version format validation
20
+
21
+ ### Changed
22
+ - Version bump for GitHub migration
data/CLAUDE.md ADDED
@@ -0,0 +1,71 @@
1
+ # lex-redis: Redis Integration for LegionIO
2
+
3
+ **Repository Level 3 Documentation**
4
+ - **Parent (Level 2)**: `/Users/miverso2/rubymine/legion/extensions/CLAUDE.md`
5
+ - **Parent (Level 1)**: `/Users/miverso2/rubymine/legion/CLAUDE.md`
6
+
7
+ ## Purpose
8
+
9
+ Legion Extension that connects LegionIO to Redis servers. Provides runners for item-level key/value operations and server management.
10
+
11
+ **Version**: 0.2.0
12
+ **GitHub**: https://github.com/LegionIO/lex-redis
13
+ **License**: MIT
14
+
15
+ ## Architecture
16
+
17
+ ```
18
+ Legion::Extensions::Redis
19
+ ├── Runners/
20
+ │ ├── Item # Key/value operations (get, set, delete, etc.)
21
+ │ └── Server # Server management and info
22
+ ├── Helpers/
23
+ │ └── Client # Redis client connection helper (module method: .client)
24
+ └── Client # Standalone client class wrapping Helpers::Client + all runners
25
+ ```
26
+
27
+ ## Key Files
28
+
29
+ | Path | Purpose |
30
+ |------|---------|
31
+ | `lib/legion/extensions/redis.rb` | Entry point, extension registration |
32
+ | `lib/legion/extensions/redis/runners/item.rb` | Key/value runner |
33
+ | `lib/legion/extensions/redis/runners/server.rb` | Server management runner |
34
+ | `lib/legion/extensions/redis/helpers/client.rb` | Redis connection builder |
35
+ | `lib/legion/extensions/redis/client.rb` | Standalone `Client` class for use outside Legion framework |
36
+
37
+ ## Runner Methods
38
+
39
+ **Item** (`lib/legion/extensions/redis/runners/item.rb`): `get`, `set` (with optional `ttl:`), `delete`, `exists`, `increment`, `decrement`, `keys`, `rename`
40
+
41
+ **Server** (`lib/legion/extensions/redis/runners/server.rb`): `ping`, `save`, `time`, `flushall`, `flush_db`, `keys`
42
+
43
+ Both runners use `extend Legion::Extensions::Redis::Helpers::Client` so `client(**kwargs)` is available as a module-level method.
44
+
45
+ ## Connection Defaults
46
+
47
+ `Helpers::Client.client` defaults: `host: '127.0.0.1'`, `port: 6380`. Note the non-standard default port of 6380 (not the Redis default 6379). Pass `host:`, `port:`, `db:`, and `password:` in task payloads to override.
48
+
49
+ ## Standalone Client
50
+
51
+ `Client` wraps `Helpers::Client` and includes all runners (`Item`, `Server`), enabling use as a standalone Redis client outside the full LegionIO framework.
52
+
53
+ ## Dependencies
54
+
55
+ | Gem | Purpose |
56
+ |-----|---------|
57
+ | `redis` | Redis Ruby client (>= 5.0) |
58
+
59
+ ## Testing
60
+
61
+ 49 specs total (40 existing + 9 in `spec/legion/extensions/redis/client_spec.rb`).
62
+
63
+ ```bash
64
+ bundle install
65
+ bundle exec rspec
66
+ bundle exec rubocop
67
+ ```
68
+
69
+ ---
70
+
71
+ **Maintained By**: Matthew Iverson (@Esity)
data/Dockerfile CHANGED
@@ -2,4 +2,4 @@ FROM legionio/legion:latest
2
2
  LABEL maintainer="Matthew Iverson <matthewdiverson@gmail.com>"
3
3
 
4
4
  RUN gem install lex-redis --no-document --no-prerelease
5
- CMD ruby --jit $(which legionio)
5
+ CMD ruby --yjit $(which legionio)
data/Gemfile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source 'https://rubygems.org'
2
4
  gemspec
3
5
 
data/Gemfile.lock CHANGED
@@ -1,59 +1,84 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lex-redis (0.1.1)
5
- redis
4
+ lex-redis (0.2.0)
5
+ redis (>= 5.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- ast (2.4.2)
11
- diff-lcs (1.4.4)
12
- docile (1.4.0)
13
- parallel (1.20.1)
14
- parser (3.0.1.1)
10
+ addressable (2.8.9)
11
+ public_suffix (>= 2.0.2, < 8.0)
12
+ ast (2.4.3)
13
+ bigdecimal (4.0.1)
14
+ connection_pool (3.0.2)
15
+ diff-lcs (1.6.2)
16
+ docile (1.4.1)
17
+ json (2.19.1)
18
+ json-schema (6.2.0)
19
+ addressable (~> 2.8)
20
+ bigdecimal (>= 3.1, < 5)
21
+ language_server-protocol (3.17.0.5)
22
+ lint_roller (1.1.0)
23
+ mcp (0.8.0)
24
+ json-schema (>= 4.1)
25
+ parallel (1.27.0)
26
+ parser (3.3.10.2)
15
27
  ast (~> 2.4.1)
16
- rainbow (3.0.0)
17
- rake (13.0.3)
18
- redis (4.3.1)
19
- regexp_parser (2.1.1)
20
- rexml (3.2.5)
21
- rspec (3.10.0)
22
- rspec-core (~> 3.10.0)
23
- rspec-expectations (~> 3.10.0)
24
- rspec-mocks (~> 3.10.0)
25
- rspec-core (3.10.1)
26
- rspec-support (~> 3.10.0)
27
- rspec-expectations (3.10.1)
28
+ racc
29
+ prism (1.9.0)
30
+ public_suffix (7.0.5)
31
+ racc (1.8.1)
32
+ rainbow (3.1.1)
33
+ rake (13.3.1)
34
+ redis (5.4.1)
35
+ redis-client (>= 0.22.0)
36
+ redis-client (0.27.0)
37
+ connection_pool
38
+ regexp_parser (2.11.3)
39
+ rspec (3.13.2)
40
+ rspec-core (~> 3.13.0)
41
+ rspec-expectations (~> 3.13.0)
42
+ rspec-mocks (~> 3.13.0)
43
+ rspec-core (3.13.6)
44
+ rspec-support (~> 3.13.0)
45
+ rspec-expectations (3.13.5)
28
46
  diff-lcs (>= 1.2.0, < 2.0)
29
- rspec-support (~> 3.10.0)
30
- rspec-mocks (3.10.2)
47
+ rspec-support (~> 3.13.0)
48
+ rspec-mocks (3.13.8)
31
49
  diff-lcs (>= 1.2.0, < 2.0)
32
- rspec-support (~> 3.10.0)
33
- rspec-support (3.10.2)
34
- rspec_junit_formatter (0.4.1)
50
+ rspec-support (~> 3.13.0)
51
+ rspec-support (3.13.7)
52
+ rspec_junit_formatter (0.6.0)
35
53
  rspec-core (>= 2, < 4, != 2.12.0)
36
- rubocop (1.16.1)
54
+ rubocop (1.85.1)
55
+ json (~> 2.3)
56
+ language_server-protocol (~> 3.17.0.2)
57
+ lint_roller (~> 1.1.0)
58
+ mcp (~> 0.6)
37
59
  parallel (~> 1.10)
38
- parser (>= 3.0.0.0)
60
+ parser (>= 3.3.0.2)
39
61
  rainbow (>= 2.2.2, < 4.0)
40
- regexp_parser (>= 1.8, < 3.0)
41
- rexml
42
- rubocop-ast (>= 1.7.0, < 2.0)
62
+ regexp_parser (>= 2.9.3, < 3.0)
63
+ rubocop-ast (>= 1.49.0, < 2.0)
43
64
  ruby-progressbar (~> 1.7)
44
- unicode-display_width (>= 1.4.0, < 3.0)
45
- rubocop-ast (1.7.0)
46
- parser (>= 3.0.1.1)
47
- ruby-progressbar (1.11.0)
48
- simplecov (0.21.2)
65
+ unicode-display_width (>= 2.4.0, < 4.0)
66
+ rubocop-ast (1.49.1)
67
+ parser (>= 3.3.7.2)
68
+ prism (~> 1.7)
69
+ ruby-progressbar (1.13.0)
70
+ simplecov (0.22.0)
49
71
  docile (~> 1.1)
50
72
  simplecov-html (~> 0.11)
51
73
  simplecov_json_formatter (~> 0.1)
52
- simplecov-html (0.12.3)
53
- simplecov_json_formatter (0.1.3)
54
- unicode-display_width (2.0.0)
74
+ simplecov-html (0.13.2)
75
+ simplecov_json_formatter (0.1.4)
76
+ unicode-display_width (3.2.0)
77
+ unicode-emoji (~> 4.1)
78
+ unicode-emoji (4.2.0)
55
79
 
56
80
  PLATFORMS
81
+ arm64-darwin-25
57
82
  ruby
58
83
 
59
84
  DEPENDENCIES
@@ -65,4 +90,4 @@ DEPENDENCIES
65
90
  simplecov
66
91
 
67
92
  BUNDLED WITH
68
- 2.1.4
93
+ 2.6.9
data/README.md CHANGED
@@ -1,3 +1,69 @@
1
- # Legion::Extensions::Redis
1
+ # lex-redis
2
2
 
3
- Connects LegionIO to Redis
3
+ Redis integration for [LegionIO](https://github.com/LegionIO/LegionIO). Run key/value operations and server management commands against Redis servers from within task chains.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ gem install lex-redis
9
+ ```
10
+
11
+ ## Functions
12
+
13
+ ### Item Runner (key/value operations)
14
+
15
+ | Function | Parameters | Description |
16
+ |----------|-----------|-------------|
17
+ | `get` | `key:` | Get value by key |
18
+ | `set` | `key:`, `value:`, `ttl:` (optional) | Set key to value, with optional TTL in seconds |
19
+ | `delete` | `key:` | Delete a key |
20
+ | `exists` | `key:` | Check if a key exists (returns boolean) |
21
+ | `increment` | `key:`, `number:` (default: 1) | Increment key by number |
22
+ | `decrement` | `key:`, `number:` (default: 1) | Decrement key by number |
23
+ | `keys` | `glob:` (default: `'*'`) | List keys matching a glob pattern |
24
+ | `rename` | `old_key`, `key:` | Rename a key |
25
+
26
+ ### Server Runner (server management)
27
+
28
+ | Function | Parameters | Description |
29
+ |----------|-----------|-------------|
30
+ | `ping` | `message:` (optional) | Ping the server |
31
+ | `save` | (none) | Trigger a blocking BGSAVE |
32
+ | `time` | (none) | Return server time |
33
+ | `flushall` | (none) | Flush all databases |
34
+ | `flush_db` | `db:` (default: 0) | Flush a specific database |
35
+ | `keys` | `glob:` (default: `'*'`) | List keys matching a glob pattern |
36
+
37
+ ### Connection Parameters
38
+
39
+ All runners accept connection kwargs forwarded to `Helpers::Client`:
40
+
41
+ | Parameter | Default | Description |
42
+ |-----------|---------|-------------|
43
+ | `host` | `'127.0.0.1'` | Redis server hostname |
44
+ | `port` | `6380` | Redis server port |
45
+ | `db` | (none) | Database number |
46
+ | `password` | (none) | Auth password |
47
+
48
+ Note: the default port is `6380`, not the standard Redis default of `6379`.
49
+
50
+ ## Standalone Client
51
+
52
+ Use `Legion::Extensions::Redis::Client` outside the full LegionIO framework.
53
+
54
+ ```ruby
55
+ require 'legion/extensions/redis'
56
+ client = Legion::Extensions::Redis::Client.new(host: '127.0.0.1', port: 6379)
57
+ client.set(key: 'foo', value: 'bar', ttl: 300)
58
+ client.get(key: 'foo')
59
+ ```
60
+
61
+ ## Requirements
62
+
63
+ - Ruby >= 3.4
64
+ - [LegionIO](https://github.com/LegionIO/LegionIO) framework
65
+ - Redis server >= 5.0
66
+
67
+ ## License
68
+
69
+ MIT
data/docker_deploy.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
2
3
 
3
4
  long_name = 'lex-redis'
4
5
  name = 'redis'
data/lex-redis.gemspec CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require_relative 'lib/legion/extensions/redis/version'
2
4
 
3
5
  Gem::Specification.new do |spec|
@@ -10,16 +12,17 @@ Gem::Specification.new do |spec|
10
12
  spec.description = 'Connects LegionIO to Redis Servers'
11
13
  spec.homepage = 'https://github.com/LegionIO/lex-redis'
12
14
  spec.license = 'MIT'
13
- spec.required_ruby_version = Gem::Requirement.new('>= 2.5.0')
15
+ spec.required_ruby_version = '>= 3.4'
14
16
 
15
17
  spec.metadata['homepage_uri'] = spec.homepage
16
18
  spec.metadata['source_code_uri'] = 'https://github.com/LegionIO/lex-redis'
17
19
  spec.metadata['documentation_uri'] = 'https://github.com/LegionIO/lex-redis'
18
20
  spec.metadata['changelog_uri'] = 'https://github.com/LegionIO/lex-redis'
19
21
  spec.metadata['bug_tracker_uri'] = 'https://github.com/LegionIO/lex-redis/issues'
22
+ spec.metadata['rubygems_mfa_required'] = 'true'
20
23
  spec.files = Dir.chdir(File.expand_path(__dir__)) do
21
24
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
22
25
  end
23
26
  spec.require_paths = ['lib']
24
- spec.add_dependency 'redis'
27
+ spec.add_dependency 'redis', '>= 5.0'
25
28
  end
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'helpers/client'
4
+ require_relative 'runners/item'
5
+ require_relative 'runners/server'
6
+
7
+ module Legion
8
+ module Extensions
9
+ module Redis
10
+ class Client
11
+ include Runners::Item
12
+ include Runners::Server
13
+
14
+ attr_reader :opts
15
+
16
+ def initialize(host: '127.0.0.1', port: 6380, **extra)
17
+ @opts = { host: host, port: port, **extra }
18
+ end
19
+
20
+ def client(**override)
21
+ Helpers::Client.client(**@opts, **override)
22
+ end
23
+ end
24
+ end
25
+ end
26
+ end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'redis'
2
4
 
3
5
  module Legion
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'legion/extensions/redis/helpers/client'
2
4
 
3
5
  module Legion
@@ -5,36 +7,36 @@ module Legion
5
7
  module Redis
6
8
  module Runners
7
9
  module Item
8
- def get(key:, **opts)
9
- { result: client(**opts).get(key) }
10
+ def get(key:, **)
11
+ { result: client(**).get(key) }
10
12
  end
11
13
 
12
- def decrement(key:, number: 1, **opts)
13
- { result: client(**opts).decrby(key, number) }
14
+ def decrement(key:, number: 1, **)
15
+ { result: client(**).decrby(key, number) }
14
16
  end
15
17
 
16
- def delete(key:, **opts)
17
- { result: client(**opts).del(key) }
18
+ def delete(key:, **)
19
+ { result: client(**).del(key) }
18
20
  end
19
21
 
20
- def exists(key:, **opts)
21
- { result: client(**opts).exists?(key) }
22
+ def exists(key:, **)
23
+ { result: client(**).exists?(key) }
22
24
  end
23
25
 
24
- def increment(key:, number: 1, **opts)
25
- { result: client(**opts).incrby(key, number) }
26
+ def increment(key:, number: 1, **)
27
+ { result: client(**).incrby(key, number) }
26
28
  end
27
29
 
28
- def keys(glob: '*', **opts)
29
- { result: client(**opts).keys(glob) }
30
+ def keys(glob: '*', **)
31
+ { result: client(**).keys(glob) }
30
32
  end
31
33
 
32
- def rename(old_key, key:, **opts)
33
- { result: client(**opts).rename(old_key, key) }
34
+ def rename(old_key, key:, **)
35
+ { result: client(**).rename(old_key, key) }
34
36
  end
35
37
 
36
- def set(key:, value:, ttl: nil, **opts)
37
- { result: client(**opts).set(key, value, ex: ttl) }
38
+ def set(key:, value:, ttl: nil, **)
39
+ { result: client(**).set(key, value, ex: ttl) }
38
40
  end
39
41
 
40
42
  extend Legion::Extensions::Redis::Helpers::Client
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'legion/extensions/redis/helpers/client'
2
4
 
3
5
  module Legion
@@ -5,28 +7,28 @@ module Legion
5
7
  module Redis
6
8
  module Runners
7
9
  module Server
8
- def keys(glob: '*', **opts)
9
- { result: client(**opts).keys(glob) }
10
+ def keys(glob: '*', **)
11
+ { result: client(**).keys(glob) }
10
12
  end
11
13
 
12
- def ping(message: nil, **opts)
13
- { result: client(**opts).ping(message) }
14
+ def ping(message: nil, **)
15
+ { result: client(**).ping(message) }
14
16
  end
15
17
 
16
- def save(**opts)
17
- { result: client(**opts).save }
18
+ def save(**)
19
+ { result: client(**).save }
18
20
  end
19
21
 
20
- def time(**opts)
21
- { result: client(**opts).time }
22
+ def time(**)
23
+ { result: client(**).time }
22
24
  end
23
25
 
24
- def flushall(**opts)
25
- { result: client(**opts).flushall }
26
+ def flushall(**)
27
+ { result: client(**).flushall }
26
28
  end
27
29
 
28
- def flush_db(db: 0, **opts)
29
- { results: client(db: db, **opts).flushdb(db) }
30
+ def flush_db(db: 0, **)
31
+ { results: client(db: db, **).flushdb(db) }
30
32
  end
31
33
 
32
34
  extend Legion::Extensions::Redis::Helpers::Client
@@ -1,7 +1,9 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Legion
2
4
  module Extensions
3
5
  module Redis
4
- VERSION = '0.1.1'.freeze
6
+ VERSION = '0.2.0'
5
7
  end
6
8
  end
7
9
  end
@@ -1,4 +1,10 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'legion/extensions/redis/version'
4
+ require 'legion/extensions/redis/helpers/client'
5
+ require 'legion/extensions/redis/runners/item'
6
+ require 'legion/extensions/redis/runners/server'
7
+ require 'legion/extensions/redis/client'
2
8
 
3
9
  module Legion
4
10
  module Extensions
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lex-redis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esity
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2021-06-13 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: redis
@@ -16,14 +15,14 @@ dependencies:
16
15
  requirements:
17
16
  - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: '0'
18
+ version: '5.0'
20
19
  type: :runtime
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
23
  - - ">="
25
24
  - !ruby/object:Gem::Version
26
- version: '0'
25
+ version: '5.0'
27
26
  description: Connects LegionIO to Redis Servers
28
27
  email:
29
28
  - matthewdiverson@gmail.com
@@ -31,13 +30,12 @@ executables: []
31
30
  extensions: []
32
31
  extra_rdoc_files: []
33
32
  files:
34
- - ".github/workflows/rspec.yml"
35
- - ".github/workflows/rubocop.yml"
33
+ - ".github/workflows/ci.yml"
36
34
  - ".gitignore"
37
35
  - ".rspec"
38
36
  - ".rubocop.yml"
39
37
  - CHANGELOG.md
40
- - CODE_OF_CONDUCT.md
38
+ - CLAUDE.md
41
39
  - Dockerfile
42
40
  - Gemfile
43
41
  - Gemfile.lock
@@ -46,6 +44,7 @@ files:
46
44
  - docker_deploy.rb
47
45
  - lex-redis.gemspec
48
46
  - lib/legion/extensions/redis.rb
47
+ - lib/legion/extensions/redis/client.rb
49
48
  - lib/legion/extensions/redis/helpers/client.rb
50
49
  - lib/legion/extensions/redis/runners/item.rb
51
50
  - lib/legion/extensions/redis/runners/server.rb
@@ -59,7 +58,7 @@ metadata:
59
58
  documentation_uri: https://github.com/LegionIO/lex-redis
60
59
  changelog_uri: https://github.com/LegionIO/lex-redis
61
60
  bug_tracker_uri: https://github.com/LegionIO/lex-redis/issues
62
- post_install_message:
61
+ rubygems_mfa_required: 'true'
63
62
  rdoc_options: []
64
63
  require_paths:
65
64
  - lib
@@ -67,15 +66,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
67
66
  requirements:
68
67
  - - ">="
69
68
  - !ruby/object:Gem::Version
70
- version: 2.5.0
69
+ version: '3.4'
71
70
  required_rubygems_version: !ruby/object:Gem::Requirement
72
71
  requirements:
73
72
  - - ">="
74
73
  - !ruby/object:Gem::Version
75
74
  version: '0'
76
75
  requirements: []
77
- rubygems_version: 3.1.6
78
- signing_key:
76
+ rubygems_version: 3.6.9
79
77
  specification_version: 4
80
78
  summary: LEX::redis
81
79
  test_files: []
@@ -1,54 +0,0 @@
1
- name: RSpec
2
- on: [push, pull_request]
3
-
4
- jobs:
5
- rspec:
6
- strategy:
7
- fail-fast: false
8
- matrix:
9
- os: [ubuntu-latest]
10
- ruby: [2.7]
11
- runs-on: ${{ matrix.os }}
12
- steps:
13
- - uses: actions/checkout@v2
14
- - uses: ruby/setup-ruby@v1
15
- with:
16
- ruby-version: ${{ matrix.ruby }}
17
- bundler-cache: true
18
- - name: RSpec run
19
- run: |
20
- bash -c "
21
- bundle exec rspec
22
- [[ $? -ne 2 ]]
23
- "
24
- rspec-mri:
25
- needs: rspec
26
- strategy:
27
- fail-fast: false
28
- matrix:
29
- os: [ ubuntu-latest ]
30
- ruby: [2.5, 2.6, '3.0', head]
31
- runs-on: ${{ matrix.os }}
32
- steps:
33
- - uses: actions/checkout@v2
34
- - uses: ruby/setup-ruby@v1
35
- with:
36
- ruby-version: ${{ matrix.ruby }}
37
- bundler-cache: true
38
- - run: bundle exec rspec
39
- rspec-truffleruby:
40
- needs: rspec
41
- strategy:
42
- fail-fast: false
43
- matrix:
44
- os: [ ubuntu-latest ]
45
- ruby: [truffleruby]
46
- runs-on: ${{ matrix.os }}
47
- steps:
48
- - uses: actions/checkout@v2
49
- - uses: ruby/setup-ruby@v1
50
- with:
51
- ruby-version: ${{ matrix.ruby }}
52
- bundler-cache: true
53
- - run: bundle exec rspec
54
-
@@ -1,28 +0,0 @@
1
- name: Rubocop
2
- on: [push, pull_request]
3
- jobs:
4
- rubocop:
5
- strategy:
6
- fail-fast: false
7
- matrix:
8
- os: [ubuntu-latest]
9
- ruby: [2.7]
10
- runs-on: ${{ matrix.os }}
11
- steps:
12
- - uses: actions/checkout@v2
13
- - uses: ruby/setup-ruby@v1
14
- with:
15
- ruby-version: ${{ matrix.ruby }}
16
- bundler-cache: true
17
- - name: Install Rubocop
18
- run: gem install rubocop code-scanning-rubocop
19
- - name: Rubocop run --no-doc
20
- run: |
21
- bash -c "
22
- rubocop --require code_scanning --format CodeScanning::SarifFormatter -o rubocop.sarif
23
- [[ $? -ne 2 ]]
24
- "
25
- - name: Upload Sarif output
26
- uses: github/codeql-action/upload-sarif@v1
27
- with:
28
- sarif_file: rubocop.sarif
data/CODE_OF_CONDUCT.md DELETED
@@ -1,74 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- In the interest of fostering an open and welcoming environment, we as
6
- contributors and maintainers pledge to making participation in our project and
7
- our community a harassment-free experience for everyone, regardless of age, body
8
- size, disability, ethnicity, gender identity and expression, level of experience,
9
- nationality, personal appearance, race, religion, or sexual identity and
10
- orientation.
11
-
12
- ## Our Standards
13
-
14
- Examples of behavior that contributes to creating a positive environment
15
- include:
16
-
17
- * Using welcoming and inclusive language
18
- * Being respectful of differing viewpoints and experiences
19
- * Gracefully accepting constructive criticism
20
- * Focusing on what is best for the community
21
- * Showing empathy towards other community members
22
-
23
- Examples of unacceptable behavior by participants include:
24
-
25
- * The use of sexualized language or imagery and unwelcome sexual attention or
26
- advances
27
- * Trolling, insulting/derogatory comments, and personal or political attacks
28
- * Public or private harassment
29
- * Publishing others' private information, such as a physical or electronic
30
- address, without explicit permission
31
- * Other conduct which could reasonably be considered inappropriate in a
32
- professional setting
33
-
34
- ## Our Responsibilities
35
-
36
- Project maintainers are responsible for clarifying the standards of acceptable
37
- behavior and are expected to take appropriate and fair corrective action in
38
- response to any instances of unacceptable behavior.
39
-
40
- Project maintainers have the right and responsibility to remove, edit, or
41
- reject comments, commits, code, wiki edits, issues, and other contributions
42
- that are not aligned to this Code of Conduct, or to ban temporarily or
43
- permanently any contributor for other behaviors that they deem inappropriate,
44
- threatening, offensive, or harmful.
45
-
46
- ## Scope
47
-
48
- This Code of Conduct applies both within project spaces and in public spaces
49
- when an individual is representing the project or its community. Examples of
50
- representing a project or community include using an official project e-mail
51
- address, posting via an official social media account, or acting as an appointed
52
- representative at an online or offline event. Representation of a project may be
53
- further defined and clarified by project maintainers.
54
-
55
- ## Enforcement
56
-
57
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
- reported by contacting the project team at matthewdiverson@gmail.com. All
59
- complaints will be reviewed and investigated and will result in a response that
60
- is deemed necessary and appropriate to the circumstances. The project team is
61
- obligated to maintain confidentiality with regard to the reporter of an incident.
62
- Further details of specific enforcement policies may be posted separately.
63
-
64
- Project maintainers who do not follow or enforce the Code of Conduct in good
65
- faith may face temporary or permanent repercussions as determined by other
66
- members of the project's leadership.
67
-
68
- ## Attribution
69
-
70
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
- available at [https://contributor-covenant.org/version/1/4][version]
72
-
73
- [homepage]: https://contributor-covenant.org
74
- [version]: https://contributor-covenant.org/version/1/4/