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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d81b91dd9915c98583d90d66de91e5e872073ebd0ada82e180d329b1081d81b4
4
- data.tar.gz: 7632ea245d4ce7245fac25fb961b18640b90260ffdbb2bac0a2b6f7780c46d04
3
+ metadata.gz: 3b5320e4ddb995e3c944e8ad2f2b31649ef455a4f9af3653c7e9c2c8bd793bec
4
+ data.tar.gz: c0817e7374a1f37c9fcd9595b78d20b83213a08676b5ec97903cccf886bead03
5
5
  SHA512:
6
- metadata.gz: 20b19dc4289d344a904321f780c67b2889f2cb6101c4e543060f1528daaab71676a8a418c6db0f370f7244636816c822e32badaf8c195343a639bc6525f8cdea
7
- data.tar.gz: 22bdaf25da78d88c97c46e75c44826161e338e85ce6cd40c26b8b4385aa7620b02e943ab75b67f4237ca89b36a93968a554cee64d67821b443d21dcc40b0dba8
6
+ metadata.gz: 922644dda424831e922a4cb3647fdb4fa598d8a79d5d01f10e11a14ab84a362a66640d4d4025de6df565f03f1a2f6537ded6b0f8d27b9c2d36bb9ba91218153d
7
+ data.tar.gz: cbcdbf0848a9a5c88e61fd3703aedd636a47ccfa6e2172f18a51f3d7d9540469730f0ac20972e2947ded1e888509523f85b87b31caa2cd76a333b713772c2111
checksums.yaml.gz.sig CHANGED
@@ -1,3 +1,2 @@
1
- ^=�'Y6%�/�4����0 ���r;%<.D��=�� ����z[T{��`Z&��Z�wuNU�ל����a�晝)����Q�%��NLu9ү24t:ֿ�N�o}P�)�����lm}F����y��*��"&�
2
- -/E��|�Υ��z�/Gqz'�7]��Ez��aU,�\^�tN{��#�_ ��Q̵lx��E!?������,�9IR)�-0p��&Z�W�*�SETKZ{Cg
3
- M���!�F<҈ʘ"��k�c\�=z�
1
+ ���*��v�=��e���������hl��DY�,��k1S7p �13<�v����?������b����yU4;�*�,����H���l6ov��lU“CX�͂֋����i����q' Z(`H�Ҡ�um+��X��|R*�6��$�����c}k��(�=�ʨ��d9=&l8i���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��.�;��DO��|!aR���V1.���� *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
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- karafka-core (2.4.1)
5
- karafka-rdkafka (>= 0.15.0, < 0.16.0)
4
+ karafka-core (2.4.3)
5
+ karafka-rdkafka (>= 0.15.0, < 0.17.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -8,3 +8,4 @@ en:
8
8
  config:
9
9
  missing: needs to be present
10
10
  id_format: needs to be a String
11
+ test_format: needs to be nil
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.16.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 = BasicObject.new
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
- if for_checking == DIG_MISS
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 for_checking == DIG_MISS
145
+ return if DIG_MISS == for_checking
144
146
 
145
147
  result = rule.validator.call(for_checking, data, errors, self)
146
148
 
@@ -4,6 +4,6 @@ module Karafka
4
4
  module Core
5
5
  # Current Karafka::Core version
6
6
  # We follow the versioning schema of given Karafka version
7
- VERSION = '2.4.1'
7
+ VERSION = '2.4.3'
8
8
  end
9
9
  end
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.1
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-17 00:00:00.000000000 Z
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.16.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.16.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