sidekiq-grouping 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/lint.yml +37 -0
- data/.github/workflows/test.yml +49 -0
- data/.rubocop.yml +31 -3
- data/Appraisals +6 -2
- data/README.md +3 -1
- data/gemfiles/sidekiq_6.0.gemfile +7 -0
- data/gemfiles/sidekiq_6.5.gemfile +7 -0
- data/lefthook.yml +15 -0
- data/lib/sidekiq/grouping/batch.rb +29 -19
- data/lib/sidekiq/grouping/config.rb +32 -22
- data/lib/sidekiq/grouping/flusher.rb +48 -36
- data/lib/sidekiq/grouping/flusher_observer.rb +16 -10
- data/lib/sidekiq/grouping/middleware.rb +27 -14
- data/lib/sidekiq/grouping/redis.rb +20 -11
- data/lib/sidekiq/grouping/version.rb +3 -1
- data/lib/sidekiq/grouping/web.rb +10 -5
- data/lib/sidekiq/grouping.rb +35 -30
- data/sidekiq-grouping.gemspec +13 -7
- data/spec/modules/batch_spec.rb +110 -80
- data/spec/modules/redis_spec.rb +17 -16
- data/spec/spec_helper.rb +5 -3
- data/spec/support/test_workers.rb +7 -10
- metadata +55 -20
- data/.travis.yml +0 -18
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidekiq-grouping
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Sokolov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-12-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: appraisal
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: bundler
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -53,7 +67,7 @@ dependencies:
|
|
53
67
|
- !ruby/object:Gem::Version
|
54
68
|
version: '0'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
70
|
+
name: rspec-sidekiq
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
58
72
|
requirements:
|
59
73
|
- - ">="
|
@@ -67,7 +81,7 @@ dependencies:
|
|
67
81
|
- !ruby/object:Gem::Version
|
68
82
|
version: '0'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
84
|
+
name: rubocop
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
72
86
|
requirements:
|
73
87
|
- - ">="
|
@@ -81,7 +95,7 @@ dependencies:
|
|
81
95
|
- !ruby/object:Gem::Version
|
82
96
|
version: '0'
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
98
|
+
name: rubocop-rspec
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
86
100
|
requirements:
|
87
101
|
- - ">="
|
@@ -95,7 +109,7 @@ dependencies:
|
|
95
109
|
- !ruby/object:Gem::Version
|
96
110
|
version: '0'
|
97
111
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
112
|
+
name: simplecov
|
99
113
|
requirement: !ruby/object:Gem::Requirement
|
100
114
|
requirements:
|
101
115
|
- - ">="
|
@@ -109,13 +123,13 @@ dependencies:
|
|
109
123
|
- !ruby/object:Gem::Version
|
110
124
|
version: '0'
|
111
125
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
126
|
+
name: timecop
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|
114
128
|
requirements:
|
115
129
|
- - ">="
|
116
130
|
- !ruby/object:Gem::Version
|
117
131
|
version: '0'
|
118
|
-
type: :
|
132
|
+
type: :development
|
119
133
|
prerelease: false
|
120
134
|
version_requirements: !ruby/object:Gem::Requirement
|
121
135
|
requirements:
|
@@ -123,19 +137,19 @@ dependencies:
|
|
123
137
|
- !ruby/object:Gem::Version
|
124
138
|
version: '0'
|
125
139
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
140
|
+
name: activesupport
|
127
141
|
requirement: !ruby/object:Gem::Requirement
|
128
142
|
requirements:
|
129
143
|
- - ">="
|
130
144
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
145
|
+
version: '0'
|
132
146
|
type: :runtime
|
133
147
|
prerelease: false
|
134
148
|
version_requirements: !ruby/object:Gem::Requirement
|
135
149
|
requirements:
|
136
150
|
- - ">="
|
137
151
|
- !ruby/object:Gem::Version
|
138
|
-
version:
|
152
|
+
version: '0'
|
139
153
|
- !ruby/object:Gem::Dependency
|
140
154
|
name: concurrent-ruby
|
141
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -150,6 +164,26 @@ dependencies:
|
|
150
164
|
- - ">="
|
151
165
|
- !ruby/object:Gem::Version
|
152
166
|
version: '0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: sidekiq
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: 3.4.2
|
174
|
+
- - "<"
|
175
|
+
- !ruby/object:Gem::Version
|
176
|
+
version: '7'
|
177
|
+
type: :runtime
|
178
|
+
prerelease: false
|
179
|
+
version_requirements: !ruby/object:Gem::Requirement
|
180
|
+
requirements:
|
181
|
+
- - ">="
|
182
|
+
- !ruby/object:Gem::Version
|
183
|
+
version: 3.4.2
|
184
|
+
- - "<"
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
version: '7'
|
153
187
|
description:
|
154
188
|
email:
|
155
189
|
- gzigzigzeo@gmail.com
|
@@ -157,9 +191,10 @@ executables: []
|
|
157
191
|
extensions: []
|
158
192
|
extra_rdoc_files: []
|
159
193
|
files:
|
194
|
+
- ".github/workflows/lint.yml"
|
195
|
+
- ".github/workflows/test.yml"
|
160
196
|
- ".gitignore"
|
161
197
|
- ".rubocop.yml"
|
162
|
-
- ".travis.yml"
|
163
198
|
- Appraisals
|
164
199
|
- Gemfile
|
165
200
|
- LICENSE.txt
|
@@ -169,7 +204,10 @@ files:
|
|
169
204
|
- gemfiles/sidekiq_4.1.gemfile
|
170
205
|
- gemfiles/sidekiq_4.2.gemfile
|
171
206
|
- gemfiles/sidekiq_5.0.gemfile
|
207
|
+
- gemfiles/sidekiq_6.0.gemfile
|
208
|
+
- gemfiles/sidekiq_6.5.gemfile
|
172
209
|
- gemfiles/sidekiq_master.gemfile
|
210
|
+
- lefthook.yml
|
173
211
|
- lib/sidekiq/grouping.rb
|
174
212
|
- lib/sidekiq/grouping/batch.rb
|
175
213
|
- lib/sidekiq/grouping/config.rb
|
@@ -189,7 +227,8 @@ files:
|
|
189
227
|
homepage: http://github.com/gzigzigzeo/sidekiq-grouping
|
190
228
|
licenses:
|
191
229
|
- MIT
|
192
|
-
metadata:
|
230
|
+
metadata:
|
231
|
+
rubygems_mfa_required: 'true'
|
193
232
|
post_install_message:
|
194
233
|
rdoc_options: []
|
195
234
|
require_paths:
|
@@ -198,19 +237,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
198
237
|
requirements:
|
199
238
|
- - ">="
|
200
239
|
- !ruby/object:Gem::Version
|
201
|
-
version:
|
240
|
+
version: 2.7.0
|
202
241
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
203
242
|
requirements:
|
204
243
|
- - ">="
|
205
244
|
- !ruby/object:Gem::Version
|
206
245
|
version: '0'
|
207
246
|
requirements: []
|
208
|
-
rubygems_version: 3.
|
247
|
+
rubygems_version: 3.3.19
|
209
248
|
signing_key:
|
210
249
|
specification_version: 4
|
211
250
|
summary: Allows identical sidekiq jobs to be processed with a single background call
|
212
|
-
test_files:
|
213
|
-
- spec/modules/batch_spec.rb
|
214
|
-
- spec/modules/redis_spec.rb
|
215
|
-
- spec/spec_helper.rb
|
216
|
-
- spec/support/test_workers.rb
|
251
|
+
test_files: []
|
data/.travis.yml
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
rvm:
|
3
|
-
- 2.2
|
4
|
-
- 2.3.1
|
5
|
-
- 2.4
|
6
|
-
- 2.5
|
7
|
-
|
8
|
-
cache: bundler
|
9
|
-
|
10
|
-
services:
|
11
|
-
- redis-server
|
12
|
-
|
13
|
-
gemfile:
|
14
|
-
- gemfiles/sidekiq_4.0.gemfile
|
15
|
-
- gemfiles/sidekiq_4.1.gemfile
|
16
|
-
- gemfiles/sidekiq_4.2.gemfile
|
17
|
-
- gemfiles/sidekiq_5.0.gemfile
|
18
|
-
- gemfiles/sidekiq_master.gemfile
|