lex-redis 0.2.1 → 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: 3a05aa15c362f2f72dab7bb249b254206c6c617ab77b9813600bc19fb8ac8a7a
4
- data.tar.gz: c8aa18166f85e72107b17fc8b9d82675771f04be2e2788245a4d5263efbba23b
3
+ metadata.gz: 121626ac45ff9cf8aa5972a43d6869b67b2c022480e3dedfc20315b228c14808
4
+ data.tar.gz: f7a559249fcb2318e6172a0dc0de4f373e734dbee0962ff1926061ac132c1627
5
5
  SHA512:
6
- metadata.gz: bcfc4fde78f91288ff91f8da182886f8f2fc3206ef7278faa1908a14664a3b8a095e003eed61e0c0ac3c096f63cd53589ab18ae6aba2740e5069099521e1b32b
7
- data.tar.gz: 8770c3704bb14e6156b141a726ad351f4e9c35305d631dea30a6776e6546a52bf09c4332422675b72c2ed3b67edccf0850291521463c2c4e5aec5c10280e388a
6
+ metadata.gz: 2f99d75380825b1568e1ba552a71d5a0c1a91ec4490efba2fd76e256e7adbe86d86256e676cbfb28422503bf26e2db81a18f84c9a4567725bf9ea8c168769422
7
+ data.tar.gz: 9b7fb82f2a929d46bf6beb58b41875afd9c62ca7c6560153aaab31be22b401102bc079240da5c26f067177ebee67bea6fbfacdac571ee6a0025d7ace6d0d95ee
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,16 @@
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
+
3
14
  ## [0.2.1] - 2026-03-18
4
15
 
5
16
  ### Changed
@@ -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.1'
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.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esity