redis_queued_locks 1.15.0 → 1.15.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 +4 -4
- data/CHANGELOG.md +7 -0
- data/github_ci/ruby3.3.gemfile.lock +5 -6
- data/lib/redis_queued_locks/config.rb +3 -2
- data/lib/redis_queued_locks/version.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f196a3e198011c805f10df6ba3c2110471b85e0f7e3629a8d6c0594329c6a61c
|
|
4
|
+
data.tar.gz: 00d1067ee165b563380b0e2061af8c73e37466e8a55b2f43c8f119069fd90b39
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6b6066096f58daeafab9c6c06f815628be1d2b32a56374f1fc3d1d6cdcff4f7aba6271d20efc16c0439084e629b6867e66eeb58d0091454b5441e29310fcb83b
|
|
7
|
+
data.tar.gz: 43751ba0011d662474c47ad014620d2b43d4555f04ae41f1a23ac1f7072aa20736a430e5a7db2a494449fe3245331e48bcf8453b91ba56c4ceba08dafaf5ed42
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
## [1.15.1] - 2025-10-22
|
|
4
|
+
### Fixed
|
|
5
|
+
- **Config Layer**:
|
|
6
|
+
- some config keys has no correspondig validator so during config instantation
|
|
7
|
+
custom configuraiton of these keys leads to **NoMethodError**. Missing validators were added and
|
|
8
|
+
a correspondig test added too.
|
|
9
|
+
|
|
3
10
|
## [1.15.0] - 2025-10-17
|
|
4
11
|
### Changed
|
|
5
12
|
- `"redis_queud_locks.release_locks_of"` instrumentation event payload now includes `hst_id` and `acq_id`;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: ..
|
|
3
3
|
specs:
|
|
4
|
-
redis_queued_locks (1.15.
|
|
4
|
+
redis_queued_locks (1.15.1)
|
|
5
5
|
redis-client (~> 0.20)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
8
8
|
remote: https://rubygems.org/
|
|
9
9
|
specs:
|
|
10
|
-
activesupport (8.0
|
|
10
|
+
activesupport (8.1.0)
|
|
11
11
|
base64
|
|
12
|
-
benchmark (>= 0.3)
|
|
13
12
|
bigdecimal
|
|
14
13
|
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
15
14
|
connection_pool (>= 2.2.5)
|
|
16
15
|
drb
|
|
17
16
|
i18n (>= 1.6, < 2)
|
|
17
|
+
json
|
|
18
18
|
logger (>= 1.4.2)
|
|
19
19
|
minitest (>= 5.1)
|
|
20
20
|
securerandom (>= 0.3)
|
|
@@ -33,7 +33,6 @@ GEM
|
|
|
33
33
|
rubocop-thread_safety (= 0.7.2)
|
|
34
34
|
ast (2.4.3)
|
|
35
35
|
base64 (0.3.0)
|
|
36
|
-
benchmark (0.4.1)
|
|
37
36
|
bigdecimal (3.3.1)
|
|
38
37
|
coderay (1.1.3)
|
|
39
38
|
concurrent-ruby (1.3.5)
|
|
@@ -86,11 +85,11 @@ GEM
|
|
|
86
85
|
redis-client (0.26.1)
|
|
87
86
|
connection_pool
|
|
88
87
|
regexp_parser (2.11.3)
|
|
89
|
-
rspec (3.13.
|
|
88
|
+
rspec (3.13.2)
|
|
90
89
|
rspec-core (~> 3.13.0)
|
|
91
90
|
rspec-expectations (~> 3.13.0)
|
|
92
91
|
rspec-mocks (~> 3.13.0)
|
|
93
|
-
rspec-core (3.13.
|
|
92
|
+
rspec-core (3.13.6)
|
|
94
93
|
rspec-support (~> 3.13.0)
|
|
95
94
|
rspec-expectations (3.13.5)
|
|
96
95
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# @api private
|
|
4
4
|
# @since 1.13.0
|
|
5
|
-
# @version 1.
|
|
5
|
+
# @version 1.15.1
|
|
6
6
|
# rubocop:disable Metrics/ClassLength
|
|
7
7
|
class RedisQueuedLocks::Config
|
|
8
8
|
require_relative 'config/dsl'
|
|
@@ -78,12 +78,13 @@ class RedisQueuedLocks::Config
|
|
|
78
78
|
validate('retry_delay') { |val| val.is_a?(Integer) && val >= 0 }
|
|
79
79
|
validate('retry_jitter') { |val| val.is_a?(Integer) && val >= 0 }
|
|
80
80
|
validate('try_to_lock_timeout') { |val| val == nil || (val.is_a?(Integer) && val >= 0) }
|
|
81
|
-
validate('
|
|
81
|
+
validate('default_lock_ttl') { |val| val.is_a?(Integer) }
|
|
82
82
|
validate('default_queue_ttl') { |val| val.is_a?(Integer) }
|
|
83
83
|
validate('detailed_acq_timeout_error') { |val| val == true || val == false }
|
|
84
84
|
validate('lock_release_batch_size') { |val| val.is_a?(Integer) }
|
|
85
85
|
validate('clear_locks_of__lock_scan_size') { |val| val.is_a?(Integer) }
|
|
86
86
|
validate('clear_locks_of__queue_scan_size') { |val| val.is_a?(Integer) }
|
|
87
|
+
validate('key_extraction_batch_size') { |val| val.is_a?(Integer) }
|
|
87
88
|
validate('instrumenter') { |val| RedisQueuedLocks::Instrument.valid_interface?(val) }
|
|
88
89
|
validate('uniq_identifier') { |val| val.is_a?(Proc) }
|
|
89
90
|
validate('logger') { |val| RedisQueuedLocks::Logging.valid_interface?(val) }
|