karafka-core 2.4.2 → 2.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +1 -1
- data/config/locales/errors.yml +1 -0
- data/lib/karafka/core/contractable/contract.rb +5 -3
- data/lib/karafka/core/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b5320e4ddb995e3c944e8ad2f2b31649ef455a4f9af3653c7e9c2c8bd793bec
|
4
|
+
data.tar.gz: c0817e7374a1f37c9fcd9595b78d20b83213a08676b5ec97903cccf886bead03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 922644dda424831e922a4cb3647fdb4fa598d8a79d5d01f10e11a14ab84a362a66640d4d4025de6df565f03f1a2f6537ded6b0f8d27b9c2d36bb9ba91218153d
|
7
|
+
data.tar.gz: cbcdbf0848a9a5c88e61fd3703aedd636a47ccfa6e2172f18a51f3d7d9540469730f0ac20972e2947ded1e888509523f85b87b31caa2cd76a333b713772c2111
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# Karafka core changelog
|
2
2
|
|
3
|
+
## 2.4.3 (2024-06-18)
|
4
|
+
- [Fix] Use `Object` instead of `BasicObject` for rule result comparison because of Time mismatch with BasicObject.
|
5
|
+
|
3
6
|
## 2.4.2 (2024-06-17)
|
4
7
|
- [Enhancement] Allow `karafka-rdkafka` `0.16.x` to be used since API compatible.
|
5
8
|
|
data/Gemfile.lock
CHANGED
data/config/locales/errors.yml
CHANGED
@@ -12,7 +12,7 @@ module Karafka
|
|
12
12
|
# Constant representing a miss during dig
|
13
13
|
# We use it as a result value not to return an array with found object and a state to
|
14
14
|
# prevent additional array allocation
|
15
|
-
DIG_MISS =
|
15
|
+
DIG_MISS = Object.new
|
16
16
|
|
17
17
|
private_constant :DIG_MISS
|
18
18
|
|
@@ -120,7 +120,9 @@ module Karafka
|
|
120
120
|
def validate_required(data, rule, errors)
|
121
121
|
for_checking = dig(data, rule.path)
|
122
122
|
|
123
|
-
|
123
|
+
# We need to compare `DIG_MISS` against stuff because of the ownership of the `#==`
|
124
|
+
# method
|
125
|
+
if DIG_MISS == for_checking
|
124
126
|
errors << [rule.path, :missing]
|
125
127
|
else
|
126
128
|
result = rule.validator.call(for_checking, data, errors, self)
|
@@ -140,7 +142,7 @@ module Karafka
|
|
140
142
|
def validate_optional(data, rule, errors)
|
141
143
|
for_checking = dig(data, rule.path)
|
142
144
|
|
143
|
-
return if
|
145
|
+
return if DIG_MISS == for_checking
|
144
146
|
|
145
147
|
result = rule.validator.call(for_checking, data, errors, self)
|
146
148
|
|
data/lib/karafka/core/version.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: karafka-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maciej Mensfeld
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
AnG1dJU+yL2BK7vaVytLTstJME5mepSZ46qqIJXMuWob/YPDmVaBF39TDSG9e34s
|
36
36
|
msG3BiCqgOgHAnL23+CN3Rt8MsuRfEtoTKpJVcCfoEoNHOkc
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2024-06-
|
38
|
+
date: 2024-06-18 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: karafka-rdkafka
|
metadata.gz.sig
CHANGED
Binary file
|