karafka-sidekiq-backend 1.2.0.beta4 → 1.4.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: 2f85f1112878f2d85918c29478ec13a9e11824a144eced3b73d804fbc2433191
4
+ data.tar.gz: 8f6c77384af18c153dfeb45a1429dd8972a5ca9428130e35ca9feb3a61419639
5
5
  SHA512:
6
- metadata.gz: 44fff2bb75bc5d3c6a0345920c4ff00e8d9d97467d570e95881749ff0a7cab408c64230eae1de01f2280e4a3b020b93c43203001ab6f208d2227094110f7a1fd
7
- data.tar.gz: 87795d7271e8a20177c251bb8bdad8044844ce1aa9334538b148de3584102e25668abf48149593c0807f82359dd6bc3de66251675a6c2aea324bcf9b3bae5b20
6
+ metadata.gz: 7ef03223b858425f327ecba3df22160e67d3294c5184b5cf25f390084fd106ce99f79600d0d79d2438af820b542f7696913c682eb9acb9363011cf064870e3f2
7
+ data.tar.gz: a4c9141cda98ae18028fc5f1c5e67c60d46ec234cdba352c79523302c5fb36caf58c7ed04f15f7854b172d6c93a1a0d6850374aafe484a3298694689c0a4c20f
Binary file
Binary file
@@ -0,0 +1,3 @@
1
+ repository_id: '84213f08-9083-4d3d-99c6-b8af8dd0e609'
2
+ api_key: <%= ENV['CODITSU_API_KEY'] %>
3
+ api_secret: <%= ENV['CODITSU_API_SECRET'] %>
@@ -0,0 +1,3 @@
1
+ project_id: '0dab66ec-affc-405a-b994-4077d0b20140'
2
+ shareable_id: '61e9572e-2947-4b2b-bdcb-0652853bfdb0'
3
+ shareable_key: 'c9ea8a34-51de-4175-919f-d734bdc3c775'
@@ -0,0 +1 @@
1
+ open_collective: karafka
@@ -0,0 +1,48 @@
1
+ name: ci
2
+
3
+ on:
4
+ push:
5
+ schedule:
6
+ - cron: '0 1 * * *'
7
+
8
+ jobs:
9
+ specs:
10
+ runs-on: ubuntu-latest
11
+ strategy:
12
+ fail-fast: false
13
+ matrix:
14
+ ruby:
15
+ - '2.7'
16
+ - '2.6'
17
+ - '2.5'
18
+ include:
19
+ - ruby: '2.7'
20
+ coverage: 'true'
21
+ steps:
22
+ - uses: actions/checkout@v2
23
+ - name: Install package dependencies
24
+ run: "[ -e $APT_DEPS ] || sudo apt-get install -y --no-install-recommends $APT_DEPS"
25
+ - name: Set up Ruby
26
+ uses: ruby/setup-ruby@v1
27
+ with:
28
+ ruby-version: ${{matrix.ruby}}
29
+ - name: Install latest bundler
30
+ run: |
31
+ gem install bundler --no-document
32
+ bundle config set without 'tools benchmarks docs'
33
+ - name: Bundle install
34
+ run: bundle install --jobs 4 --retry 3
35
+ - name: Run all tests
36
+ env:
37
+ GITHUB_COVERAGE: ${{matrix.coverage}}
38
+ run: bundle exec rspec
39
+ coditsu:
40
+ runs-on: ubuntu-latest
41
+ strategy:
42
+ fail-fast: false
43
+ steps:
44
+ - uses: actions/checkout@v2
45
+ with:
46
+ fetch-depth: 0
47
+ - name: Run Coditsu
48
+ run: \curl -sSL https://api.coditsu.io/run/ci | bash
data/.gitignore CHANGED
@@ -13,6 +13,7 @@ db/*.sqlite3
13
13
  /tmp/*
14
14
  *.gem
15
15
  *.~
16
+ .coditsu/local.yml
16
17
 
17
18
  # various artifacts
18
19
  **.war
@@ -1 +1 @@
1
- 2.5.0
1
+ 2.7.1
@@ -1,10 +1,29 @@
1
1
  # Karafka Sidekiq Backend
2
2
 
3
- ## 1.2.0.beta4
3
+ ## 1.4.0 (2020-09-05)
4
+ - Update to match Karafka 1.4.0 params and batch metadata setup
5
+
6
+ ## 1.3.1 (2020-04-27)
7
+ - Ruby 2.6.5 support
8
+ - Ruby 2.7.1 support
9
+ - Change license to LGPL-3.0
10
+
11
+ ## 1.3.0 (2019-09-09)
12
+ - Drop Ruby 2.4 support
13
+
14
+ ## 1.3.0.rc1 (2019-07-31)
15
+ - Ruby 2.6.3 support
16
+ - Drop Ruby 2.3 support
17
+ - Sync with Karafka: metadata support
18
+ - Sync with Karafka #463 (Split parsers into serializers / deserializers)
19
+ - #26 - Make listeners as instances
20
+ - Zeitwerk integration
21
+ - drop jruby support
22
+
23
+ ## 1.2.0
4
24
  - ```#load``` and ```#parse``` are renamed to ```#encode``` and ```#decode``` in interchangers
5
25
  - #274 - Rename controllers to consumers
6
26
  - Karafka 1.2 support
7
- - Parse data before pushing to Sidekiq
8
27
 
9
28
  ## 1.1
10
29
  - Ruby 2.4.2 support
data/Gemfile CHANGED
@@ -2,10 +2,11 @@
2
2
 
3
3
  source 'https://rubygems.org'
4
4
 
5
+ plugin 'diffend'
6
+
5
7
  gemspec
6
8
 
7
- group :development, :test do
9
+ group :test do
8
10
  gem 'rspec'
9
11
  gem 'simplecov'
10
- gem 'timecop'
11
12
  end
@@ -1,127 +1,124 @@
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.4.0)
5
+ karafka (~> 1.4.0.rc2)
6
6
  sidekiq (>= 4.2)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activesupport (5.1.5)
12
- concurrent-ruby (~> 1.0, >= 1.0.2)
13
- i18n (~> 0.7)
14
- minitest (~> 5.1)
15
- tzinfo (~> 1.1)
16
- concurrent-ruby (1.0.5)
17
- connection_pool (2.2.1)
18
- delivery_boy (0.2.4)
19
- king_konf (~> 0.1.8)
20
- ruby-kafka (~> 0.5.1)
21
- diff-lcs (1.3)
22
- docile (1.1.5)
23
- dry-configurable (0.7.0)
11
+ concurrent-ruby (1.1.7)
12
+ connection_pool (2.2.3)
13
+ delivery_boy (1.0.1)
14
+ king_konf (~> 0.3)
15
+ ruby-kafka (~> 1.0)
16
+ diff-lcs (1.4.4)
17
+ digest-crc (0.6.1)
18
+ rake (~> 13.0)
19
+ docile (1.3.2)
20
+ dry-configurable (0.11.6)
24
21
  concurrent-ruby (~> 1.0)
25
- dry-container (0.6.0)
22
+ dry-core (~> 0.4, >= 0.4.7)
23
+ dry-equalizer (~> 0.2)
24
+ dry-container (0.7.2)
26
25
  concurrent-ruby (~> 1.0)
27
26
  dry-configurable (~> 0.1, >= 0.1.3)
28
- dry-core (0.4.4)
27
+ dry-core (0.4.9)
29
28
  concurrent-ruby (~> 1.0)
30
- dry-equalizer (0.2.0)
31
- dry-events (0.1.0)
29
+ dry-equalizer (0.3.0)
30
+ dry-events (0.2.0)
32
31
  concurrent-ruby (~> 1.0)
33
32
  dry-core (~> 0.4)
34
33
  dry-equalizer (~> 0.2)
35
- dry-inflector (0.1.1)
36
- dry-logic (0.4.2)
37
- dry-container (~> 0.2, >= 0.2.6)
34
+ dry-inflector (0.2.0)
35
+ dry-initializer (3.0.3)
36
+ dry-logic (1.0.7)
37
+ concurrent-ruby (~> 1.0)
38
38
  dry-core (~> 0.2)
39
39
  dry-equalizer (~> 0.2)
40
- dry-monitor (0.1.2)
40
+ dry-monitor (0.3.2)
41
41
  dry-configurable (~> 0.5)
42
+ dry-core (~> 0.4)
42
43
  dry-equalizer (~> 0.2)
43
- dry-events (~> 0.1)
44
- rouge (~> 2.0, >= 2.2.1)
45
- dry-types (0.12.2)
44
+ dry-events (~> 0.2)
45
+ dry-schema (1.5.4)
46
46
  concurrent-ruby (~> 1.0)
47
- dry-configurable (~> 0.1)
48
- dry-container (~> 0.3)
49
- dry-core (~> 0.2, >= 0.2.1)
47
+ dry-configurable (~> 0.8, >= 0.8.3)
48
+ dry-core (~> 0.4)
50
49
  dry-equalizer (~> 0.2)
51
- dry-logic (~> 0.4, >= 0.4.2)
52
- inflecto (~> 0.0.0, >= 0.0.2)
53
- dry-validation (0.11.1)
50
+ dry-initializer (~> 3.0)
51
+ dry-logic (~> 1.0)
52
+ dry-types (~> 1.4)
53
+ dry-types (1.4.0)
54
54
  concurrent-ruby (~> 1.0)
55
- dry-configurable (~> 0.1, >= 0.1.3)
56
- dry-core (~> 0.2, >= 0.2.1)
57
- dry-equalizer (~> 0.2)
58
- dry-logic (~> 0.4, >= 0.4.0)
59
- dry-types (~> 0.12.0)
60
- envlogic (1.0.4)
61
- activesupport
62
- i18n (0.9.5)
55
+ dry-container (~> 0.3)
56
+ dry-core (~> 0.4, >= 0.4.4)
57
+ dry-equalizer (~> 0.3)
58
+ dry-inflector (~> 0.1, >= 0.1.2)
59
+ dry-logic (~> 1.0, >= 1.0.2)
60
+ dry-validation (1.5.6)
63
61
  concurrent-ruby (~> 1.0)
64
- inflecto (0.0.2)
65
- json (2.1.0)
66
- karafka (1.2.0.beta4)
67
- activesupport (>= 4.0)
68
- dry-configurable (~> 0.7)
69
- dry-inflector (~> 0.1.1)
70
- dry-monitor (~> 0.1)
71
- dry-validation (~> 0.11)
72
- envlogic (~> 1.0)
73
- multi_json (>= 1.12)
62
+ dry-container (~> 0.7, >= 0.7.1)
63
+ dry-core (~> 0.4)
64
+ dry-equalizer (~> 0.2)
65
+ dry-initializer (~> 3.0)
66
+ dry-schema (~> 1.5, >= 1.5.2)
67
+ envlogic (1.1.2)
68
+ dry-inflector (~> 0.1)
69
+ io-console (0.5.6)
70
+ irb (1.2.4)
71
+ reline (>= 0.0.1)
72
+ karafka (1.4.0.rc2)
73
+ dry-configurable (~> 0.8)
74
+ dry-inflector (~> 0.1)
75
+ dry-monitor (~> 0.3)
76
+ dry-validation (~> 1.2)
77
+ envlogic (~> 1.1)
78
+ irb (~> 1.0)
74
79
  rake (>= 11.3)
75
- require_all (>= 1.4)
76
- ruby-kafka (>= 0.5.3)
77
- thor (~> 0.19)
78
- waterdrop (~> 1.2)
79
- king_konf (0.1.10)
80
- minitest (5.11.3)
81
- multi_json (1.13.1)
82
- null-logger (0.1.4)
83
- rack (2.0.4)
84
- rack-protection (2.0.1)
85
- rack
86
- rake (12.3.0)
87
- redis (4.0.1)
88
- require_all (2.0.0)
89
- rouge (2.2.1)
90
- rspec (3.7.0)
91
- rspec-core (~> 3.7.0)
92
- rspec-expectations (~> 3.7.0)
93
- rspec-mocks (~> 3.7.0)
94
- rspec-core (3.7.1)
95
- rspec-support (~> 3.7.0)
96
- rspec-expectations (3.7.0)
80
+ ruby-kafka (>= 1.0.0)
81
+ thor (>= 0.20)
82
+ waterdrop (~> 1.4.0)
83
+ zeitwerk (~> 2.1)
84
+ king_konf (0.3.7)
85
+ rack (2.2.3)
86
+ rake (13.0.1)
87
+ redis (4.2.1)
88
+ reline (0.1.4)
89
+ io-console (~> 0.5)
90
+ rspec (3.9.0)
91
+ rspec-core (~> 3.9.0)
92
+ rspec-expectations (~> 3.9.0)
93
+ rspec-mocks (~> 3.9.0)
94
+ rspec-core (3.9.2)
95
+ rspec-support (~> 3.9.3)
96
+ rspec-expectations (3.9.2)
97
97
  diff-lcs (>= 1.2.0, < 2.0)
98
- rspec-support (~> 3.7.0)
99
- rspec-mocks (3.7.0)
98
+ rspec-support (~> 3.9.0)
99
+ rspec-mocks (3.9.1)
100
100
  diff-lcs (>= 1.2.0, < 2.0)
101
- rspec-support (~> 3.7.0)
102
- rspec-support (3.7.1)
103
- ruby-kafka (0.5.3)
104
- sidekiq (5.1.1)
105
- concurrent-ruby (~> 1.0)
106
- connection_pool (~> 2.2, >= 2.2.0)
107
- rack-protection (>= 1.5.0)
108
- redis (>= 3.3.5, < 5)
109
- simplecov (0.15.1)
110
- docile (~> 1.1.0)
111
- json (>= 1.8, < 3)
112
- simplecov-html (~> 0.10.0)
113
- simplecov-html (0.10.2)
114
- thor (0.20.0)
115
- thread_safe (0.3.6)
116
- timecop (0.9.1)
117
- tzinfo (1.2.5)
118
- thread_safe (~> 0.1)
119
- waterdrop (1.2.0)
120
- delivery_boy (~> 0.2)
121
- dry-configurable (~> 0.7)
122
- dry-monitor (~> 0.1)
123
- dry-validation (~> 0.11)
124
- null-logger
101
+ rspec-support (~> 3.9.0)
102
+ rspec-support (3.9.3)
103
+ ruby-kafka (1.2.0)
104
+ digest-crc
105
+ sidekiq (6.1.1)
106
+ connection_pool (>= 2.2.2)
107
+ rack (~> 2.0)
108
+ redis (>= 4.2.0)
109
+ simplecov (0.19.0)
110
+ docile (~> 1.1)
111
+ simplecov-html (~> 0.11)
112
+ simplecov-html (0.12.2)
113
+ thor (1.0.1)
114
+ waterdrop (1.4.0)
115
+ delivery_boy (>= 0.2, < 2.x)
116
+ dry-configurable (~> 0.8)
117
+ dry-monitor (~> 0.3)
118
+ dry-validation (~> 1.2)
119
+ ruby-kafka (>= 0.7.8)
120
+ zeitwerk (~> 2.1)
121
+ zeitwerk (2.4.0)
125
122
 
126
123
  PLATFORMS
127
124
  ruby
@@ -130,7 +127,6 @@ DEPENDENCIES
130
127
  karafka-sidekiq-backend!
131
128
  rspec
132
129
  simplecov
133
- timecop
134
130
 
135
131
  BUNDLED WITH
136
- 1.16.1
132
+ 2.1.4
data/LICENSE ADDED
@@ -0,0 +1,165 @@
1
+ GNU LESSER GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+
9
+ This version of the GNU Lesser General Public License incorporates
10
+ the terms and conditions of version 3 of the GNU General Public
11
+ License, supplemented by the additional permissions listed below.
12
+
13
+ 0. Additional Definitions.
14
+
15
+ As used herein, "this License" refers to version 3 of the GNU Lesser
16
+ General Public License, and the "GNU GPL" refers to version 3 of the GNU
17
+ General Public License.
18
+
19
+ "The Library" refers to a covered work governed by this License,
20
+ other than an Application or a Combined Work as defined below.
21
+
22
+ An "Application" is any work that makes use of an interface provided
23
+ by the Library, but which is not otherwise based on the Library.
24
+ Defining a subclass of a class defined by the Library is deemed a mode
25
+ of using an interface provided by the Library.
26
+
27
+ A "Combined Work" is a work produced by combining or linking an
28
+ Application with the Library. The particular version of the Library
29
+ with which the Combined Work was made is also called the "Linked
30
+ Version".
31
+
32
+ The "Minimal Corresponding Source" for a Combined Work means the
33
+ Corresponding Source for the Combined Work, excluding any source code
34
+ for portions of the Combined Work that, considered in isolation, are
35
+ based on the Application, and not on the Linked Version.
36
+
37
+ The "Corresponding Application Code" for a Combined Work means the
38
+ object code and/or source code for the Application, including any data
39
+ and utility programs needed for reproducing the Combined Work from the
40
+ Application, but excluding the System Libraries of the Combined Work.
41
+
42
+ 1. Exception to Section 3 of the GNU GPL.
43
+
44
+ You may convey a covered work under sections 3 and 4 of this License
45
+ without being bound by section 3 of the GNU GPL.
46
+
47
+ 2. Conveying Modified Versions.
48
+
49
+ If you modify a copy of the Library, and, in your modifications, a
50
+ facility refers to a function or data to be supplied by an Application
51
+ that uses the facility (other than as an argument passed when the
52
+ facility is invoked), then you may convey a copy of the modified
53
+ version:
54
+
55
+ a) under this License, provided that you make a good faith effort to
56
+ ensure that, in the event an Application does not supply the
57
+ function or data, the facility still operates, and performs
58
+ whatever part of its purpose remains meaningful, or
59
+
60
+ b) under the GNU GPL, with none of the additional permissions of
61
+ this License applicable to that copy.
62
+
63
+ 3. Object Code Incorporating Material from Library Header Files.
64
+
65
+ The object code form of an Application may incorporate material from
66
+ a header file that is part of the Library. You may convey such object
67
+ code under terms of your choice, provided that, if the incorporated
68
+ material is not limited to numerical parameters, data structure
69
+ layouts and accessors, or small macros, inline functions and templates
70
+ (ten or fewer lines in length), you do both of the following:
71
+
72
+ a) Give prominent notice with each copy of the object code that the
73
+ Library is used in it and that the Library and its use are
74
+ covered by this License.
75
+
76
+ b) Accompany the object code with a copy of the GNU GPL and this license
77
+ document.
78
+
79
+ 4. Combined Works.
80
+
81
+ You may convey a Combined Work under terms of your choice that,
82
+ taken together, effectively do not restrict modification of the
83
+ portions of the Library contained in the Combined Work and reverse
84
+ engineering for debugging such modifications, if you also do each of
85
+ the following:
86
+
87
+ a) Give prominent notice with each copy of the Combined Work that
88
+ the Library is used in it and that the Library and its use are
89
+ covered by this License.
90
+
91
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
92
+ document.
93
+
94
+ c) For a Combined Work that displays copyright notices during
95
+ execution, include the copyright notice for the Library among
96
+ these notices, as well as a reference directing the user to the
97
+ copies of the GNU GPL and this license document.
98
+
99
+ d) Do one of the following:
100
+
101
+ 0) Convey the Minimal Corresponding Source under the terms of this
102
+ License, and the Corresponding Application Code in a form
103
+ suitable for, and under terms that permit, the user to
104
+ recombine or relink the Application with a modified version of
105
+ the Linked Version to produce a modified Combined Work, in the
106
+ manner specified by section 6 of the GNU GPL for conveying
107
+ Corresponding Source.
108
+
109
+ 1) Use a suitable shared library mechanism for linking with the
110
+ Library. A suitable mechanism is one that (a) uses at run time
111
+ a copy of the Library already present on the user's computer
112
+ system, and (b) will operate properly with a modified version
113
+ of the Library that is interface-compatible with the Linked
114
+ Version.
115
+
116
+ e) Provide Installation Information, but only if you would otherwise
117
+ be required to provide such information under section 6 of the
118
+ GNU GPL, and only to the extent that such information is
119
+ necessary to install and execute a modified version of the
120
+ Combined Work produced by recombining or relinking the
121
+ Application with a modified version of the Linked Version. (If
122
+ you use option 4d0, the Installation Information must accompany
123
+ the Minimal Corresponding Source and Corresponding Application
124
+ Code. If you use option 4d1, you must provide the Installation
125
+ Information in the manner specified by section 6 of the GNU GPL
126
+ for conveying Corresponding Source.)
127
+
128
+ 5. Combined Libraries.
129
+
130
+ You may place library facilities that are a work based on the
131
+ Library side by side in a single library together with other library
132
+ facilities that are not Applications and are not covered by this
133
+ License, and convey such a combined library under terms of your
134
+ choice, if you do both of the following:
135
+
136
+ a) Accompany the combined library with a copy of the same work based
137
+ on the Library, uncombined with any other library facilities,
138
+ conveyed under the terms of this License.
139
+
140
+ b) Give prominent notice with the combined library that part of it
141
+ is a work based on the Library, and explaining where to find the
142
+ accompanying uncombined form of the same work.
143
+
144
+ 6. Revised Versions of the GNU Lesser General Public License.
145
+
146
+ The Free Software Foundation may publish revised and/or new versions
147
+ of the GNU Lesser General Public License from time to time. Such new
148
+ versions will be similar in spirit to the present version, but may
149
+ differ in detail to address new problems or concerns.
150
+
151
+ Each version is given a distinguishing version number. If the
152
+ Library as you received it specifies that a certain numbered version
153
+ of the GNU Lesser General Public License "or any later version"
154
+ applies to it, you have the option of following the terms and
155
+ conditions either of that published version or of any later version
156
+ published by the Free Software Foundation. If the Library as you
157
+ received it does not specify a version number of the GNU Lesser
158
+ General Public License, you may choose any version of the GNU Lesser
159
+ General Public License ever published by the Free Software Foundation.
160
+
161
+ If the Library as you received it specifies that a proxy can decide
162
+ whether future versions of the GNU Lesser General Public License shall
163
+ apply, that proxy's public statement of acceptance of any version is
164
+ permanent authorization for you to choose that version for the
165
+ Library.