karafka-sidekiq-backend 1.1.0.alpha1 → 1.1.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
  SHA1:
3
- metadata.gz: f70c2627ad1cfc9207cb5505fea5048d61145cbd
4
- data.tar.gz: 6e360b9d2328d413d11ab65c1d72ecb3946f92b3
3
+ metadata.gz: 553a28cdeb2098d283624a91466b7818d9714e72
4
+ data.tar.gz: c5ff002048db97b873050bcaf536b3a060106f7e
5
5
  SHA512:
6
- metadata.gz: 977ee7ddd3e498a5f57d1bdaaaf8430f67554eb12955c4f7320efc3b3b7d878f74517045534f10e2c64567dfa48d778c3e787ba28dc1e3534cdf8bfdc41fc423
7
- data.tar.gz: 5600e31d518f97e8c1de7486c9f99f54fa8ec72150f6dd9baa03014087755188d19a84978708390afba3f40507b44385feac56bfbd07eab6a53091734e9ea821
6
+ metadata.gz: 2aebcdd89c8584069f08f1e40940e92f2f431c97498612a1e28a08f8a1ef71b88451b60fdc1c6912829766fb18e89650560c5bc2c8c0bbd89def76a2a8f94b62
7
+ data.tar.gz: 181d1cfbd38631224bd2ece579e1bd149d6b3d0cc5dc52e5b6bd39f0cfbdcc8637fc6f4a902c4a4bb7b4f49c4b76512bdcdb4eae6940fef98db5bbe336bccbed
data/CHANGELOG.md CHANGED
@@ -1,8 +1,9 @@
1
1
  # Karafka Sidekiq Backend
2
2
 
3
- ## Unreleased
3
+ ## 1.1
4
4
  - Ruby 2.4.2 support
5
5
  - #235 - Rename perform to consume
6
+ - Karafka 1.1 support
6
7
 
7
8
  ## 1.0
8
9
 
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- karafka-sidekiq-backend (1.1.0.alpha1)
5
- karafka (>= 1.1.0.alpha1)
4
+ karafka-sidekiq-backend (1.1.0)
5
+ karafka (>= 1.1.0.alpha2)
6
6
  sidekiq (>= 4.2)
7
7
 
8
8
  GEM
@@ -25,7 +25,7 @@ GEM
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.3.4)
28
+ dry-core (0.4.0)
29
29
  concurrent-ruby (~> 1.0)
30
30
  dry-equalizer (0.2.0)
31
31
  dry-logic (0.4.2)
@@ -49,11 +49,11 @@ GEM
49
49
  dry-types (~> 0.12.0)
50
50
  envlogic (1.0.4)
51
51
  activesupport
52
- i18n (0.9.0)
52
+ i18n (0.9.1)
53
53
  concurrent-ruby (~> 1.0)
54
54
  inflecto (0.0.2)
55
55
  json (2.1.0)
56
- karafka (1.1.0.alpha1)
56
+ karafka (1.1.0.alpha2)
57
57
  activesupport (>= 5.0)
58
58
  dry-configurable (~> 0.7)
59
59
  dry-validation (~> 0.11)
@@ -103,7 +103,7 @@ GEM
103
103
  timecop (0.9.1)
104
104
  tzinfo (1.2.4)
105
105
  thread_safe (~> 0.1)
106
- waterdrop (1.0.0.alpha2)
106
+ waterdrop (1.0.0)
107
107
  delivery_boy (>= 0.2.2)
108
108
  dry-configurable (~> 0.7)
109
109
  dry-validation (~> 0.11)
@@ -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.1.0.alpha1'
18
+ spec.add_dependency 'karafka', '>= 1.1.0.alpha2'
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.1.0.alpha1'
8
+ VERSION = '1.1.0'
9
9
 
10
10
  private
11
11
 
@@ -10,9 +10,7 @@ module Karafka
10
10
  # @param params_batch [Array] Array with messages batch
11
11
  def perform(topic_id, params_batch)
12
12
  Karafka.monitor.notice(self.class, params_batch)
13
- instance = controller(topic_id, params_batch)
14
- # This allows to support both Karafka 1.0 and 1.1
15
- instance.respond_to?(:consume) ? instance.consume : instance.perform
13
+ controller(topic_id, params_batch).consume
16
14
  end
17
15
 
18
16
  private
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: karafka-sidekiq-backend
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0.alpha1
4
+ version: 1.1.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: 2017-10-30 00:00:00.000000000 Z
11
+ date: 2017-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: karafka
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 1.1.0.alpha1
19
+ version: 1.1.0.alpha2
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.1.0.alpha1
26
+ version: 1.1.0.alpha2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sidekiq
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -81,9 +81,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
81
81
  version: 2.3.0
82
82
  required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  requirements:
84
- - - ">"
84
+ - - ">="
85
85
  - !ruby/object:Gem::Version
86
- version: 1.3.1
86
+ version: '0'
87
87
  requirements: []
88
88
  rubyforge_project:
89
89
  rubygems_version: 2.6.13