karafka-sidekiq-backend 1.2.0.beta4 → 1.2.0

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: 57e4580e9858d6475c1461199217e1aba83091c90de3802457e9a2245a5700c1
4
- data.tar.gz: 57771eedaf99af86108ccebdc7518c442c04ba0a340641a9af616d6601766f87
3
+ metadata.gz: 6fd28798ad1b7204f30fac7e291bb9fe40f09158b5707f0e1b2d78f11d936036
4
+ data.tar.gz: 6e82e1395e08289f40584c756ef39abd756bac9505cc2f82c18731cb85b83e18
5
5
  SHA512:
6
- metadata.gz: 44fff2bb75bc5d3c6a0345920c4ff00e8d9d97467d570e95881749ff0a7cab408c64230eae1de01f2280e4a3b020b93c43203001ab6f208d2227094110f7a1fd
7
- data.tar.gz: 87795d7271e8a20177c251bb8bdad8044844ce1aa9334538b148de3584102e25668abf48149593c0807f82359dd6bc3de66251675a6c2aea324bcf9b3bae5b20
6
+ metadata.gz: 84fdd1fb717042b3316ac761489e4ced64bffc69799d3fa0a00333209c58c3d3a5c58329d435386218c4c15edd33c5e4074bfa51eef87800f3418f1a80a7dbd4
7
+ data.tar.gz: e35e3578b2478aeeea23b891b19b5e507b38ba91329572dfce748127c05d5d019e692d87b0da54495d5833082b626a4181e9b82f1e643bccce99e72e50eefac2
data/CHANGELOG.md CHANGED
@@ -1,10 +1,9 @@
1
1
  # Karafka Sidekiq Backend
2
2
 
3
- ## 1.2.0.beta4
3
+ ## 1.2.0
4
4
  - ```#load``` and ```#parse``` are renamed to ```#encode``` and ```#decode``` in interchangers
5
5
  - #274 - Rename controllers to consumers
6
6
  - Karafka 1.2 support
7
- - Parse data before pushing to Sidekiq
8
7
 
9
8
  ## 1.1
10
9
  - Ruby 2.4.2 support
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- karafka-sidekiq-backend (1.2.0.beta4)
5
- karafka (>= 1.2.0.beta4)
4
+ karafka-sidekiq-backend (1.2.0)
5
+ karafka (~> 1.2)
6
6
  sidekiq (>= 4.2)
7
7
 
8
8
  GEM
@@ -19,13 +19,13 @@ GEM
19
19
  king_konf (~> 0.1.8)
20
20
  ruby-kafka (~> 0.5.1)
21
21
  diff-lcs (1.3)
22
- docile (1.1.5)
22
+ docile (1.3.0)
23
23
  dry-configurable (0.7.0)
24
24
  concurrent-ruby (~> 1.0)
25
25
  dry-container (0.6.0)
26
26
  concurrent-ruby (~> 1.0)
27
27
  dry-configurable (~> 0.1, >= 0.1.3)
28
- dry-core (0.4.4)
28
+ dry-core (0.4.5)
29
29
  concurrent-ruby (~> 1.0)
30
30
  dry-equalizer (0.2.0)
31
31
  dry-events (0.1.0)
@@ -57,13 +57,13 @@ GEM
57
57
  dry-equalizer (~> 0.2)
58
58
  dry-logic (~> 0.4, >= 0.4.0)
59
59
  dry-types (~> 0.12.0)
60
- envlogic (1.0.4)
61
- activesupport
60
+ envlogic (1.1.0)
61
+ dry-inflector (~> 0.1)
62
62
  i18n (0.9.5)
63
63
  concurrent-ruby (~> 1.0)
64
64
  inflecto (0.0.2)
65
65
  json (2.1.0)
66
- karafka (1.2.0.beta4)
66
+ karafka (1.2.0)
67
67
  activesupport (>= 4.0)
68
68
  dry-configurable (~> 0.7)
69
69
  dry-inflector (~> 0.1.1)
@@ -79,11 +79,11 @@ GEM
79
79
  king_konf (0.1.10)
80
80
  minitest (5.11.3)
81
81
  multi_json (1.13.1)
82
- null-logger (0.1.4)
82
+ null-logger (0.1.5)
83
83
  rack (2.0.4)
84
84
  rack-protection (2.0.1)
85
85
  rack
86
- rake (12.3.0)
86
+ rake (12.3.1)
87
87
  redis (4.0.1)
88
88
  require_all (2.0.0)
89
89
  rouge (2.2.1)
@@ -100,14 +100,14 @@ GEM
100
100
  diff-lcs (>= 1.2.0, < 2.0)
101
101
  rspec-support (~> 3.7.0)
102
102
  rspec-support (3.7.1)
103
- ruby-kafka (0.5.3)
103
+ ruby-kafka (0.5.4)
104
104
  sidekiq (5.1.1)
105
105
  concurrent-ruby (~> 1.0)
106
106
  connection_pool (~> 2.2, >= 2.2.0)
107
107
  rack-protection (>= 1.5.0)
108
108
  redis (>= 3.3.5, < 5)
109
- simplecov (0.15.1)
110
- docile (~> 1.1.0)
109
+ simplecov (0.16.1)
110
+ docile (~> 1.1)
111
111
  json (>= 1.8, < 3)
112
112
  simplecov-html (~> 0.10.0)
113
113
  simplecov-html (0.10.2)
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
15
15
  spec.description = 'Karafka Sidekiq backend for background messages processing'
16
16
  spec.license = 'MIT'
17
17
 
18
- spec.add_dependency 'karafka', '>= 1.2.0.beta4'
18
+ spec.add_dependency 'karafka', '~> 1.2'
19
19
  spec.add_dependency 'sidekiq', '>= 4.2'
20
20
  spec.required_ruby_version = '>= 2.3.0'
21
21
 
@@ -5,7 +5,7 @@ module Karafka
5
5
  # Sidekiq backend that schedules stuff to Sidekiq worker for delayed execution
6
6
  module Sidekiq
7
7
  # Karafka Sidekiq backend version
8
- VERSION = '1.2.0.beta4'
8
+ VERSION = '1.2.0'
9
9
 
10
10
  # Enqueues the execution of perform method into a worker.
11
11
  # @note Each worker needs to have a class #perform_async method that will allow us to pass
@@ -9,23 +9,17 @@ module Karafka
9
9
  # - decode - decoded params back to a hash format that we can use
10
10
  #
11
11
  # This interchanger uses default Sidekiq options to exchange data
12
- # @note Since we use symbols for Karafka params (performance reasons), they will be
13
- # deserialized into string versions. Keep that in mind.
14
12
  class Interchanger
15
13
  class << self
16
14
  # @param params_batch [Karafka::Params::ParamsBatch] Karafka params batch object
17
- # @return [Karafka::Params::ParamsBatch] parsed params batch. There are too many problems
18
- # with passing unparsed data from Karafka to Sidekiq, to make it a default. In case you
19
- # need this, please implement your own interchanger.
15
+ # @return [Array<Karafka::Params::Params>] Array with hash/hashwithindiff values that will
16
+ # be serialized using Sidekiq serialization engine
20
17
  def encode(params_batch)
21
- params_batch.parsed
18
+ params_batch.to_a
22
19
  end
23
20
 
24
21
  # @param params_batch [Array<Hash>] Sidekiq params that are now an array
25
- # @note Since Sidekiq does not like symbols, we restore symbolized keys for system keys, so
26
- # everything can work as expected. Keep in mind, that custom data will always be assigned
27
- # with string keys per design. To change it, please change this interchanger and create
28
- # your own custom parser
22
+ # @return [Array<Hash>] exactly what we've fetched from Sidekiq
29
23
  def decode(params_batch)
30
24
  params_batch
31
25
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: karafka-sidekiq-backend
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0.beta4
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maciej Mensfeld
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-08 00:00:00.000000000 Z
11
+ date: 2018-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: karafka
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.2.0.beta4
19
+ version: '1.2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.2.0.beta4
26
+ version: '1.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sidekiq
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -82,9 +82,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
82
82
  version: 2.3.0
83
83
  required_rubygems_version: !ruby/object:Gem::Requirement
84
84
  requirements:
85
- - - ">"
85
+ - - ">="
86
86
  - !ruby/object:Gem::Version
87
- version: 1.3.1
87
+ version: '0'
88
88
  requirements: []
89
89
  rubyforge_project:
90
90
  rubygems_version: 2.7.6