rimless 1.7.6 → 1.7.7

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: 1e635ab06b06126938fd981a6f5843fdd9fe9209dd60f3217979803c3908bd93
4
- data.tar.gz: 80e465ae3d3d5c876e1b8aee66889a652680cebfb262fc9b69b2f8329d3c410b
3
+ metadata.gz: 65a81e9d34d669a1e6acd791e2c10a189869fc40d2910b478fa37fac6c84accb
4
+ data.tar.gz: 69a88291a2aef544f0d646e58951f7fc9dc143848b9cc05041cfd19a8e19d47a
5
5
  SHA512:
6
- metadata.gz: 7aaf13e560d01488a7c1f58279149489b57250762e77ada485dc55abad6af0d02cf84a7ad2945b1fd306602f04dad15cf28c0c79f814e1a5d57d49134925df26
7
- data.tar.gz: 0f39ca294394e1ce8ba82d53e98c4f2109dd072907715a26d9a399fda1fe471c656b714751323a11ab1e7156e353dcfa53ebc26d1f1568e5408ceae73df122bf
6
+ metadata.gz: 427e0d60a2aae434d3742ab73ae676917077c16216282d6de286c3f32cc5a4c2df02034ff743b8acb1470f2d347d710d0bac322c264f64ddbdda5ad1526a7667
7
+ data.tar.gz: 7f1bd3ff9c139586dd4b4c14efdd80177860e3d4e7d2dc93e58a29ed2fed67985218031fb3264b103efe2bac209fb3f02a2c9a1495f23d81e66384112d0209bb
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  * TODO: Replace this bullet point with an actual description of a change.
4
4
 
5
+ ### 1.7.7
6
+
7
+ * Corrected the Sidekiq interchanger decoding, which is caused by an upstream
8
+ update of the karafka-sidekiq-backend gem (#43)
9
+
5
10
  ### 1.7.6
6
11
 
7
12
  * Added a monkey-patch for the constellation Karafka 1.4 and Thor 1.3,
@@ -11,7 +11,8 @@ module Rimless
11
11
  # Encode a binary Apache Kafka message(s) so they can be passed to the
12
12
  # Sidekiq +Rimless::ConsumerJob+.
13
13
  #
14
- # @param params_batch [Mixed] the raw message(s) to encode
14
+ # @param params_batch [Karafka::Params::ParamsBatch] the karafka params
15
+ # batch object
15
16
  # @return [String] the marshaled+base64 encoded data
16
17
  def encode(params_batch)
17
18
  Base64.encode64(Marshal.dump(super))
@@ -21,9 +22,9 @@ module Rimless
21
22
  # the Sidekiq +Rimless::ConsumerJob+.
22
23
  #
23
24
  # @param params_string [String] the marshaled+base64 encoded data
24
- # @return [Mixed] the unmarshaled+base64 decoded data
25
- def decode(params_string)
26
- Marshal.load(Base64.decode64(super)).map(&:stringify_keys)
25
+ # @return [Array<Hash>] the unmarshaled+base64 decoded data
26
+ def decode(params_batch)
27
+ super(Marshal.load(Base64.decode64(params_batch))).map(&:stringify_keys)
27
28
  end
28
29
  end
29
30
  # rubocop:enable Security/MarshalLoad
@@ -3,7 +3,7 @@
3
3
  # The gem version details.
4
4
  module Rimless
5
5
  # The version of the +rimless+ gem
6
- VERSION = '1.7.6'
6
+ VERSION = '1.7.7'
7
7
 
8
8
  class << self
9
9
  # Returns the version of gem as a string.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rimless
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.6
4
+ version: 1.7.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hermann Mayer