karafka-core 2.4.1 → 2.4.3
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
- checksums.yaml.gz.sig +2 -3
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +2 -2
- data/config/locales/errors.yml +1 -0
- data/karafka-core.gemspec +1 -1
- data/lib/karafka/core/contractable/contract.rb +5 -3
- data/lib/karafka/core/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +4 -4
- 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
@@ -1,3 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
M���!�F<҈ʘ"��k�c\�=z�
|
1
|
+
���*��v�=��e���������hl��DY�,��k1�S7p �13<�v����?������b����yU�4;�*�,����H���l6�ov��lUC�X�͂����i����q'Z(`H�Ҡ�um+��X��|R*�6��$�����c}k��(�=�ʨ��d9=&l�8i���u��)�C��e��AߕH<+���".�
|
2
|
+
�K%�)��r>?i]�N�=+�q[��~+x ��y�[�M��F�h�`�s[+�"8�f\�^������Y��+{���awb�w�����3j0!���\��*�Q�ȧ�Pi"3�Y�7�E�L��.�;��D�O��|!aR���V�1.����*Z
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
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
|
+
|
6
|
+
## 2.4.2 (2024-06-17)
|
7
|
+
- [Enhancement] Allow `karafka-rdkafka` `0.16.x` to be used since API compatible.
|
8
|
+
|
3
9
|
## 2.4.1 (2024-06-17)
|
4
10
|
- [Enhancement] Provide fast-track for events without subscriptions to save on allocations.
|
5
11
|
- [Enhancement] Save memory allocation on each contract rule validation execution.
|
data/Gemfile.lock
CHANGED
data/config/locales/errors.yml
CHANGED
data/karafka-core.gemspec
CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
|
|
16
16
|
spec.description = 'A toolset of small support modules used throughout the Karafka ecosystem'
|
17
17
|
spec.licenses = %w[MIT]
|
18
18
|
|
19
|
-
spec.add_dependency 'karafka-rdkafka', '>= 0.15.0', '< 0.
|
19
|
+
spec.add_dependency 'karafka-rdkafka', '>= 0.15.0', '< 0.17.0'
|
20
20
|
|
21
21
|
spec.required_ruby_version = '>= 3.0.0'
|
22
22
|
|
@@ -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
|
@@ -46,7 +46,7 @@ dependencies:
|
|
46
46
|
version: 0.15.0
|
47
47
|
- - "<"
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: 0.
|
49
|
+
version: 0.17.0
|
50
50
|
type: :runtime
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -56,7 +56,7 @@ dependencies:
|
|
56
56
|
version: 0.15.0
|
57
57
|
- - "<"
|
58
58
|
- !ruby/object:Gem::Version
|
59
|
-
version: 0.
|
59
|
+
version: 0.17.0
|
60
60
|
description: A toolset of small support modules used throughout the Karafka ecosystem
|
61
61
|
email:
|
62
62
|
- contact@karafka.io
|
metadata.gz.sig
CHANGED
Binary file
|