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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 000d6bfa1a755d1e18ad088b57075b682d41c56e0d0a56651985de70684337ca
4
- data.tar.gz: cd8c7c28715da1251622eeb9714617a2922c531c180c18720d51c7f5cfe3fc8c
3
+ metadata.gz: 3b5320e4ddb995e3c944e8ad2f2b31649ef455a4f9af3653c7e9c2c8bd793bec
4
+ data.tar.gz: c0817e7374a1f37c9fcd9595b78d20b83213a08676b5ec97903cccf886bead03
5
5
  SHA512:
6
- metadata.gz: 82bcbc11df50e423aad06ac779785c0073cb2c4325c16e984b881f631804028574961f2a4abaa4ef46f24e6c318b7402a6b3aaa0564e6ed78838184ccdbae595
7
- data.tar.gz: 9c3b5aa7541838387bb75e1d7d75f2097454c68e2bc708e9bc35c94774a9517a055a50e9dbf49bc85cedd415ba0ec366863ad8842b63f45818f1375bee52afb2
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- karafka-core (2.4.2)
4
+ karafka-core (2.4.3)
5
5
  karafka-rdkafka (>= 0.15.0, < 0.17.0)
6
6
 
7
7
  GEM
@@ -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
@@ -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.2'
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.2
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
metadata.gz.sig CHANGED
Binary file