karafka 1.4.0.rc1 → 1.4.0.rc2

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: e1bc3a30364a87750723e5c338cdddffb6c6c4c2965e12a7379fbe96a6e7756c
4
- data.tar.gz: 073fe6b2ffe1d7cbd53670330cd14780b48dda4f364a4ba160a42c13a1914c2d
3
+ metadata.gz: 62798b3cc6f5f12fd89e13e4f1163aaf6f759d9cebf7862b591e7d3c6603bfc3
4
+ data.tar.gz: f4b416b014de9d6b4da282735014d5e16ec4195db01b98798764efc7a9c8ce8d
5
5
  SHA512:
6
- metadata.gz: d7bbc41af65bf2590d7e045e552b10121f202b7a031681c7ac5d20148e8c6c053eced4aa98ece0661a1ead6df1c163b8d03e06b19ca5f83346c4575ec10489c7
7
- data.tar.gz: 522f1a73478633269333f04ebdfffb988e26a405b659e44bf44da5757b105dd24bc16f3214415d4258c325c1c4fa899f54ef322a335b31b859dda131a70e2021
6
+ metadata.gz: 47848c70c13d6456c863e9c0811e08084f9ad1710ac299e2a954eed08e5b283eb990333c4443bfcaf70929d1fc85d597ff820b5321016fe19ef4d78951dd2853
7
+ data.tar.gz: 961cfbc6c5be4acef1c897c685f591c1549c92ea95f438013ce405f073b1e85745b4413a726017bed8b328a76d100bdd4fc1f9b74eeffd6bca0561e2d4d7632c
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,9 +1,9 @@
1
1
  # Karafka framework changelog
2
2
 
3
- ## 1.4.0.rc1 (2020-08-25)
3
+ ## 1.4.0.rc2 (2020-08-25)
4
4
  - Rename `Karafka::Params::Metadata` to `Karafka::Params::BatchMetadata`
5
5
  ` Rename consumer `#metadata` to `#batch_metadata`
6
- - Separate metadata (including Karafka native metadata) from the root of params
6
+ - Separate metadata (including Karafka native metadata) from the root of params (backwards compatibility preseverd thanks to rabotyaga)
7
7
  - Remove metadata hash dependency
8
8
  - Remove params dependency on a hash in favour of PORO
9
9
  - Remove batch metadata dependency on a hash
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- karafka (1.4.0.rc1)
4
+ karafka (1.4.0.rc2)
5
5
  dry-configurable (~> 0.8)
6
6
  dry-inflector (~> 0.1)
7
7
  dry-monitor (~> 0.3)
@@ -7,8 +7,12 @@ module Karafka
7
7
  # using deserializer until we execute our logic. That way we can operate with
8
8
  # heavy-deserialization data without slowing down the whole application.
9
9
  class Params
10
+ extend Forwardable
11
+
10
12
  attr_reader :raw_payload, :metadata
11
13
 
14
+ def_delegators :metadata, *Metadata.members
15
+
12
16
  # @param raw_payload [Object] incoming payload before deserialization
13
17
  # @param metadata [Karafka::Params::Metadata] message metadata object
14
18
  def initialize(raw_payload, metadata)
@@ -3,5 +3,5 @@
3
3
  # Main module namespace
4
4
  module Karafka
5
5
  # Current Karafka version
6
- VERSION = '1.4.0.rc1'
6
+ VERSION = '1.4.0.rc2'
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: karafka
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0.rc1
4
+ version: 1.4.0.rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maciej Mensfeld
@@ -36,7 +36,7 @@ cert_chain:
36
36
  2DND//YJUikn1zwbz1kT70XmHd97B4Eytpln7K+M1u2g1pHVEPW4owD/ammXNpUy
37
37
  nt70FcDD4yxJQ+0YNiHd0N8IcVBM1TMIVctMNQ==
38
38
  -----END CERTIFICATE-----
39
- date: 2020-08-25 00:00:00.000000000 Z
39
+ date: 2020-08-30 00:00:00.000000000 Z
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: dry-configurable
metadata.gz.sig CHANGED
Binary file