lex-redis 0.2.0 → 0.2.2

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: 9f273fe69d0bd2d48811459891dcf582e3dc5c4109ac830107c6fd782656b5c7
4
- data.tar.gz: '07796f5b244afdfa2d18d2a08445070e5e96c55c87c191b65d2dcb6224978654'
3
+ metadata.gz: 121626ac45ff9cf8aa5972a43d6869b67b2c022480e3dedfc20315b228c14808
4
+ data.tar.gz: f7a559249fcb2318e6172a0dc0de4f373e734dbee0962ff1926061ac132c1627
5
5
  SHA512:
6
- metadata.gz: f94ef0cd15b0a20113bfd6658a95995eca067a010fdf50de725e1544a837be9060970b06d669c457e1649a862f53e360f07d8519cce0103e639d52fc8ca6579a
7
- data.tar.gz: a01a0ab843ddcad4d656ecd14097fc467b342197af11b4618752d5de1475952e8bf4b7d84dd71e0f53251d1fb1ee0eef76520f1b77fb7f4ef6c807b840c9df86
6
+ metadata.gz: 2f99d75380825b1568e1ba552a71d5a0c1a91ec4490efba2fd76e256e7adbe86d86256e676cbfb28422503bf26e2db81a18f84c9a4567725bf9ea8c168769422
7
+ data.tar.gz: 9b7fb82f2a929d46bf6beb58b41875afd9c62ca7c6560153aaab31be22b401102bc079240da5c26f067177ebee67bea6fbfacdac571ee6a0025d7ace6d0d95ee
@@ -7,8 +7,6 @@ on:
7
7
  jobs:
8
8
  ci:
9
9
  uses: LegionIO/.github/.github/workflows/ci.yml@main
10
- with:
11
- needs-redis: true
12
10
 
13
11
  release:
14
12
  needs: ci
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
+ Gemfile.lock
1
2
  /.bundle/
2
3
  /.yardoc
3
4
  /_yardoc/
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.2.2] - 2026-03-18
4
+
5
+ ### Fixed
6
+ - `::Redis.new` constant resolution in `Helpers::Client` (was resolving to `Legion::Extensions::Redis` module instead of the Redis gem class)
7
+ - `flush_db` runner no longer passes a positional argument to `flushdb` (Redis >= 5.0 takes no args)
8
+ - `flush_db` return key changed from `results:` to `result:` to match all other runner methods
9
+ - Added `if defined?(Legion::Extensions::Helpers::Lex)` guard to `include` in both `Runners::Item` and `Runners::Server` for standalone loading
10
+
11
+ ### Changed
12
+ - `Gemfile.lock` added to `.gitignore`
13
+
14
+ ## [0.2.1] - 2026-03-18
15
+
16
+ ### Changed
17
+ - removed needs-redis from ci workflow, deleted gemfile.lock
18
+
3
19
  ## [0.2.0] - 2026-03-15
4
20
 
5
21
  ### Added
@@ -11,7 +11,7 @@ module Legion
11
11
  connect_hash = { host: host, port: port }
12
12
  connect_hash[:db] = opts[:db] if opts.key? :db
13
13
  connect_hash[:password] = opts[:password] if opts.key? :password
14
- Redis.new(**connect_hash)
14
+ ::Redis.new(**connect_hash)
15
15
  end
16
16
  end
17
17
  end
@@ -40,7 +40,7 @@ module Legion
40
40
  end
41
41
 
42
42
  extend Legion::Extensions::Redis::Helpers::Client
43
- include Legion::Extensions::Helpers::Lex
43
+ include Legion::Extensions::Helpers::Lex if defined?(Legion::Extensions::Helpers::Lex)
44
44
  end
45
45
  end
46
46
  end
@@ -28,11 +28,11 @@ module Legion
28
28
  end
29
29
 
30
30
  def flush_db(db: 0, **)
31
- { results: client(db: db, **).flushdb(db) }
31
+ { result: client(db: db, **).flushdb }
32
32
  end
33
33
 
34
34
  extend Legion::Extensions::Redis::Helpers::Client
35
- include Legion::Extensions::Helpers::Lex
35
+ include Legion::Extensions::Helpers::Lex if defined?(Legion::Extensions::Helpers::Lex)
36
36
  end
37
37
  end
38
38
  end
@@ -3,7 +3,7 @@
3
3
  module Legion
4
4
  module Extensions
5
5
  module Redis
6
- VERSION = '0.2.0'
6
+ VERSION = '0.2.2'
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lex-redis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esity
@@ -38,7 +38,6 @@ files:
38
38
  - CLAUDE.md
39
39
  - Dockerfile
40
40
  - Gemfile
41
- - Gemfile.lock
42
41
  - LICENSE
43
42
  - README.md
44
43
  - docker_deploy.rb
data/Gemfile.lock DELETED
@@ -1,93 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- lex-redis (0.2.0)
5
- redis (>= 5.0)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
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)
27
- ast (~> 2.4.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)
46
- diff-lcs (>= 1.2.0, < 2.0)
47
- rspec-support (~> 3.13.0)
48
- rspec-mocks (3.13.8)
49
- diff-lcs (>= 1.2.0, < 2.0)
50
- rspec-support (~> 3.13.0)
51
- rspec-support (3.13.7)
52
- rspec_junit_formatter (0.6.0)
53
- rspec-core (>= 2, < 4, != 2.12.0)
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)
59
- parallel (~> 1.10)
60
- parser (>= 3.3.0.2)
61
- rainbow (>= 2.2.2, < 4.0)
62
- regexp_parser (>= 2.9.3, < 3.0)
63
- rubocop-ast (>= 1.49.0, < 2.0)
64
- ruby-progressbar (~> 1.7)
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)
71
- docile (~> 1.1)
72
- simplecov-html (~> 0.11)
73
- simplecov_json_formatter (~> 0.1)
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)
79
-
80
- PLATFORMS
81
- arm64-darwin-25
82
- ruby
83
-
84
- DEPENDENCIES
85
- lex-redis!
86
- rake
87
- rspec
88
- rspec_junit_formatter
89
- rubocop
90
- simplecov
91
-
92
- BUNDLED WITH
93
- 2.6.9