cloudtasker 0.12.2 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/lint_rubocop.yml +20 -0
  3. data/.github/workflows/{test.yml → test_ruby_2.5_2.6.yml} +11 -8
  4. data/.github/workflows/test_ruby_2.7.yml +44 -0
  5. data/.github/workflows/test_ruby_3.x.yml +43 -0
  6. data/.gitignore +1 -0
  7. data/.rubocop.yml +5 -0
  8. data/Appraisals +52 -8
  9. data/CHANGELOG.md +10 -0
  10. data/README.md +14 -3
  11. data/Rakefile +0 -6
  12. data/cloudtasker.gemspec +1 -6
  13. data/docs/CRON_JOBS.md +2 -2
  14. data/gemfiles/google_cloud_tasks_1.0.gemfile +2 -1
  15. data/gemfiles/google_cloud_tasks_1.1.gemfile +2 -1
  16. data/gemfiles/google_cloud_tasks_1.2.gemfile +2 -1
  17. data/gemfiles/google_cloud_tasks_1.3.gemfile +2 -1
  18. data/gemfiles/google_cloud_tasks_1.4.gemfile +8 -0
  19. data/gemfiles/google_cloud_tasks_1.5.gemfile +8 -0
  20. data/gemfiles/google_cloud_tasks_2.0.gemfile +8 -0
  21. data/gemfiles/google_cloud_tasks_2.1.gemfile +8 -0
  22. data/gemfiles/rails_5.2.gemfile +1 -0
  23. data/gemfiles/rails_6.0.gemfile +1 -0
  24. data/gemfiles/{semantic_logger_4.7.gemfile → rails_6.1.gemfile} +2 -1
  25. data/gemfiles/rails_7.0.gemfile +8 -0
  26. data/gemfiles/semantic_logger_3.4.gemfile +1 -0
  27. data/gemfiles/semantic_logger_4.6.gemfile +1 -0
  28. data/gemfiles/semantic_logger_4.7.0.gemfile +1 -0
  29. data/gemfiles/semantic_logger_4.7.2.gemfile +1 -0
  30. data/lib/cloudtasker/backend/{google_cloud_task.rb → google_cloud_task_v1.rb} +15 -11
  31. data/lib/cloudtasker/backend/google_cloud_task_v2.rb +210 -0
  32. data/lib/cloudtasker/backend/memory_task.rb +1 -1
  33. data/lib/cloudtasker/backend/redis_task.rb +7 -3
  34. data/lib/cloudtasker/cloud_task.rb +43 -5
  35. data/lib/cloudtasker/cron/schedule.rb +7 -7
  36. data/lib/cloudtasker/redis_client.rb +39 -14
  37. data/lib/cloudtasker/unique_job/job.rb +3 -2
  38. data/lib/cloudtasker/unique_job/middleware/client.rb +2 -1
  39. data/lib/cloudtasker/version.rb +1 -1
  40. data/lib/cloudtasker/worker.rb +3 -3
  41. data/lib/cloudtasker/worker_wrapper.rb +1 -1
  42. data/lib/tasks/setup_queue.rake +2 -2
  43. metadata +19 -77
  44. data/gemfiles/google_cloud_tasks_1.0.gemfile.lock +0 -342
  45. data/gemfiles/google_cloud_tasks_1.1.gemfile.lock +0 -342
  46. data/gemfiles/google_cloud_tasks_1.2.gemfile.lock +0 -342
  47. data/gemfiles/google_cloud_tasks_1.3.gemfile.lock +0 -343
  48. data/gemfiles/rails_4.0.gemfile +0 -10
  49. data/gemfiles/rails_4.1.gemfile +0 -9
  50. data/gemfiles/rails_4.2.gemfile +0 -9
  51. data/gemfiles/rails_5.0.gemfile +0 -9
  52. data/gemfiles/rails_5.1.gemfile +0 -9
  53. data/gemfiles/rails_5.2.gemfile.lock +0 -327
  54. data/gemfiles/rails_6.0.gemfile.lock +0 -343
@@ -1,343 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- cloudtasker (0.12.2)
5
- activesupport
6
- connection_pool
7
- fugit
8
- google-cloud-tasks (~> 1.0)
9
- jwt
10
- redis
11
- retriable
12
-
13
- GEM
14
- remote: https://rubygems.org/
15
- specs:
16
- actioncable (6.0.0)
17
- actionpack (= 6.0.0)
18
- nio4r (~> 2.0)
19
- websocket-driver (>= 0.6.1)
20
- actionmailbox (6.0.0)
21
- actionpack (= 6.0.0)
22
- activejob (= 6.0.0)
23
- activerecord (= 6.0.0)
24
- activestorage (= 6.0.0)
25
- activesupport (= 6.0.0)
26
- mail (>= 2.7.1)
27
- actionmailer (6.0.0)
28
- actionpack (= 6.0.0)
29
- actionview (= 6.0.0)
30
- activejob (= 6.0.0)
31
- mail (~> 2.5, >= 2.5.4)
32
- rails-dom-testing (~> 2.0)
33
- actionpack (6.0.0)
34
- actionview (= 6.0.0)
35
- activesupport (= 6.0.0)
36
- rack (~> 2.0)
37
- rack-test (>= 0.6.3)
38
- rails-dom-testing (~> 2.0)
39
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
40
- actiontext (6.0.0)
41
- actionpack (= 6.0.0)
42
- activerecord (= 6.0.0)
43
- activestorage (= 6.0.0)
44
- activesupport (= 6.0.0)
45
- nokogiri (>= 1.8.5)
46
- actionview (6.0.0)
47
- activesupport (= 6.0.0)
48
- builder (~> 3.1)
49
- erubi (~> 1.4)
50
- rails-dom-testing (~> 2.0)
51
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
52
- activejob (6.0.0)
53
- activesupport (= 6.0.0)
54
- globalid (>= 0.3.6)
55
- activemodel (6.0.0)
56
- activesupport (= 6.0.0)
57
- activerecord (6.0.0)
58
- activemodel (= 6.0.0)
59
- activesupport (= 6.0.0)
60
- activestorage (6.0.0)
61
- actionpack (= 6.0.0)
62
- activejob (= 6.0.0)
63
- activerecord (= 6.0.0)
64
- marcel (~> 0.3.1)
65
- activesupport (6.0.0)
66
- concurrent-ruby (~> 1.0, >= 1.0.2)
67
- i18n (>= 0.7, < 2)
68
- minitest (~> 5.1)
69
- tzinfo (~> 1.1)
70
- zeitwerk (~> 2.1, >= 2.1.8)
71
- addressable (2.8.0)
72
- public_suffix (>= 2.0.2, < 5.0)
73
- appraisal (2.4.1)
74
- bundler
75
- rake
76
- thor (>= 0.14.0)
77
- ast (2.4.2)
78
- async (1.30.1)
79
- console (~> 1.10)
80
- nio4r (~> 2.3)
81
- timers (~> 4.1)
82
- async-http (0.56.5)
83
- async (>= 1.25)
84
- async-io (>= 1.28)
85
- async-pool (>= 0.2)
86
- protocol-http (~> 0.22.0)
87
- protocol-http1 (~> 0.14.0)
88
- protocol-http2 (~> 0.14.0)
89
- async-http-faraday (0.11.0)
90
- async-http (~> 0.42)
91
- faraday
92
- async-io (1.32.2)
93
- async
94
- async-pool (0.3.9)
95
- async (>= 1.25)
96
- builder (3.2.4)
97
- concurrent-ruby (1.1.9)
98
- connection_pool (2.2.5)
99
- console (1.14.0)
100
- fiber-local
101
- crack (0.4.5)
102
- rexml
103
- crass (1.0.6)
104
- diff-lcs (1.5.0)
105
- erubi (1.10.0)
106
- et-orbi (1.2.6)
107
- tzinfo
108
- faraday (1.8.0)
109
- faraday-em_http (~> 1.0)
110
- faraday-em_synchrony (~> 1.0)
111
- faraday-excon (~> 1.1)
112
- faraday-httpclient (~> 1.0.1)
113
- faraday-net_http (~> 1.0)
114
- faraday-net_http_persistent (~> 1.1)
115
- faraday-patron (~> 1.0)
116
- faraday-rack (~> 1.0)
117
- multipart-post (>= 1.2, < 3)
118
- ruby2_keywords (>= 0.0.4)
119
- faraday-em_http (1.0.0)
120
- faraday-em_synchrony (1.0.0)
121
- faraday-excon (1.1.0)
122
- faraday-http-cache (2.2.0)
123
- faraday (>= 0.8)
124
- faraday-httpclient (1.0.1)
125
- faraday-net_http (1.0.1)
126
- faraday-net_http_persistent (1.2.0)
127
- faraday-patron (1.0.0)
128
- faraday-rack (1.0.0)
129
- fiber-local (1.0.0)
130
- fugit (1.5.2)
131
- et-orbi (~> 1.1, >= 1.1.8)
132
- raabro (~> 1.4)
133
- github_changelog_generator (1.16.4)
134
- activesupport
135
- async (>= 1.25.0)
136
- async-http-faraday
137
- faraday-http-cache
138
- multi_json
139
- octokit (~> 4.6)
140
- rainbow (>= 2.2.1)
141
- rake (>= 10.0)
142
- globalid (1.0.0)
143
- activesupport (>= 5.0)
144
- google-cloud-tasks (1.5.1)
145
- google-gax (~> 1.8)
146
- googleapis-common-protos (>= 1.3.9, < 2.0)
147
- googleapis-common-protos-types (>= 1.0.4, < 2.0)
148
- grpc-google-iam-v1 (~> 0.6.9)
149
- google-gax (1.8.2)
150
- google-protobuf (~> 3.9)
151
- googleapis-common-protos (>= 1.3.9, < 2.0)
152
- googleapis-common-protos-types (>= 1.0.4, < 2.0)
153
- googleauth (~> 0.9)
154
- grpc (~> 1.24)
155
- rly (~> 0.2.3)
156
- google-protobuf (3.19.1)
157
- googleapis-common-protos (1.3.12)
158
- google-protobuf (~> 3.14)
159
- googleapis-common-protos-types (~> 1.2)
160
- grpc (~> 1.27)
161
- googleapis-common-protos-types (1.3.0)
162
- google-protobuf (~> 3.14)
163
- googleauth (0.17.1)
164
- faraday (>= 0.17.3, < 2.0)
165
- jwt (>= 1.4, < 3.0)
166
- memoist (~> 0.16)
167
- multi_json (~> 1.11)
168
- os (>= 0.9, < 2.0)
169
- signet (~> 0.15)
170
- grpc (1.42.0)
171
- google-protobuf (~> 3.18)
172
- googleapis-common-protos-types (~> 1.0)
173
- grpc-google-iam-v1 (0.6.11)
174
- google-protobuf (~> 3.14)
175
- googleapis-common-protos (>= 1.3.11, < 2.0)
176
- grpc (~> 1.27)
177
- hashdiff (1.0.1)
178
- i18n (1.8.11)
179
- concurrent-ruby (~> 1.0)
180
- jaro_winkler (1.5.4)
181
- jwt (2.3.0)
182
- loofah (2.13.0)
183
- crass (~> 1.0.2)
184
- nokogiri (>= 1.5.9)
185
- mail (2.7.1)
186
- mini_mime (>= 0.1.1)
187
- marcel (0.3.3)
188
- mimemagic (~> 0.3.2)
189
- memoist (0.16.2)
190
- method_source (1.0.0)
191
- mimemagic (0.3.10)
192
- nokogiri (~> 1)
193
- rake
194
- mini_mime (1.1.2)
195
- mini_portile2 (2.6.1)
196
- minitest (5.15.0)
197
- multi_json (1.15.0)
198
- multipart-post (2.1.1)
199
- nio4r (2.5.8)
200
- nokogiri (1.12.5)
201
- mini_portile2 (~> 2.6.1)
202
- racc (~> 1.4)
203
- octokit (4.21.0)
204
- faraday (>= 0.9)
205
- sawyer (~> 0.8.0, >= 0.5.3)
206
- os (1.1.4)
207
- parallel (1.21.0)
208
- parser (3.0.3.2)
209
- ast (~> 2.4.1)
210
- protocol-hpack (1.4.2)
211
- protocol-http (0.22.5)
212
- protocol-http1 (0.14.2)
213
- protocol-http (~> 0.22)
214
- protocol-http2 (0.14.2)
215
- protocol-hpack (~> 1.4)
216
- protocol-http (~> 0.18)
217
- public_suffix (4.0.6)
218
- raabro (1.4.0)
219
- racc (1.6.0)
220
- rack (2.2.3)
221
- rack-test (1.1.0)
222
- rack (>= 1.0, < 3)
223
- rails (6.0.0)
224
- actioncable (= 6.0.0)
225
- actionmailbox (= 6.0.0)
226
- actionmailer (= 6.0.0)
227
- actionpack (= 6.0.0)
228
- actiontext (= 6.0.0)
229
- actionview (= 6.0.0)
230
- activejob (= 6.0.0)
231
- activemodel (= 6.0.0)
232
- activerecord (= 6.0.0)
233
- activestorage (= 6.0.0)
234
- activesupport (= 6.0.0)
235
- bundler (>= 1.3.0)
236
- railties (= 6.0.0)
237
- sprockets-rails (>= 2.0.0)
238
- rails-dom-testing (2.0.3)
239
- activesupport (>= 4.2.0)
240
- nokogiri (>= 1.6)
241
- rails-html-sanitizer (1.4.2)
242
- loofah (~> 2.3)
243
- railties (6.0.0)
244
- actionpack (= 6.0.0)
245
- activesupport (= 6.0.0)
246
- method_source
247
- rake (>= 0.8.7)
248
- thor (>= 0.20.3, < 2.0)
249
- rainbow (3.0.0)
250
- rake (13.0.6)
251
- redis (4.5.1)
252
- retriable (3.1.2)
253
- rexml (3.2.5)
254
- rly (0.2.3)
255
- rspec (3.10.0)
256
- rspec-core (~> 3.10.0)
257
- rspec-expectations (~> 3.10.0)
258
- rspec-mocks (~> 3.10.0)
259
- rspec-core (3.10.1)
260
- rspec-support (~> 3.10.0)
261
- rspec-expectations (3.10.1)
262
- diff-lcs (>= 1.2.0, < 2.0)
263
- rspec-support (~> 3.10.0)
264
- rspec-json_expectations (2.2.0)
265
- rspec-mocks (3.10.2)
266
- diff-lcs (>= 1.2.0, < 2.0)
267
- rspec-support (~> 3.10.0)
268
- rspec-rails (5.0.2)
269
- actionpack (>= 5.2)
270
- activesupport (>= 5.2)
271
- railties (>= 5.2)
272
- rspec-core (~> 3.10)
273
- rspec-expectations (~> 3.10)
274
- rspec-mocks (~> 3.10)
275
- rspec-support (~> 3.10)
276
- rspec-support (3.10.3)
277
- rubocop (0.76.0)
278
- jaro_winkler (~> 1.5.1)
279
- parallel (~> 1.10)
280
- parser (>= 2.6)
281
- rainbow (>= 2.2.2, < 4.0)
282
- ruby-progressbar (~> 1.7)
283
- unicode-display_width (>= 1.4.0, < 1.7)
284
- rubocop-rspec (1.37.0)
285
- rubocop (>= 0.68.1)
286
- ruby-progressbar (1.11.0)
287
- ruby2_keywords (0.0.5)
288
- sawyer (0.8.2)
289
- addressable (>= 2.3.5)
290
- faraday (> 0.8, < 2.0)
291
- semantic_logger (4.9.0)
292
- concurrent-ruby (~> 1.0)
293
- signet (0.16.0)
294
- addressable (~> 2.8)
295
- faraday (>= 0.17.3, < 2.0)
296
- jwt (>= 1.5, < 3.0)
297
- multi_json (~> 1.10)
298
- sprockets (4.0.2)
299
- concurrent-ruby (~> 1.0)
300
- rack (> 1, < 3)
301
- sprockets-rails (3.4.2)
302
- actionpack (>= 5.2)
303
- activesupport (>= 5.2)
304
- sprockets (>= 3.0.0)
305
- sqlite3 (1.4.2)
306
- thor (1.1.0)
307
- thread_safe (0.3.6)
308
- timecop (0.9.4)
309
- timers (4.3.3)
310
- tzinfo (1.2.9)
311
- thread_safe (~> 0.1)
312
- unicode-display_width (1.6.1)
313
- webmock (3.14.0)
314
- addressable (>= 2.8.0)
315
- crack (>= 0.3.2)
316
- hashdiff (>= 0.4.0, < 2.0.0)
317
- websocket-driver (0.7.5)
318
- websocket-extensions (>= 0.1.0)
319
- websocket-extensions (0.1.5)
320
- zeitwerk (2.5.3)
321
-
322
- PLATFORMS
323
- ruby
324
-
325
- DEPENDENCIES
326
- appraisal
327
- bundler (~> 2.0)
328
- cloudtasker!
329
- github_changelog_generator
330
- rails (= 6.0)
331
- rake (>= 12.3.3)
332
- rspec (~> 3.0)
333
- rspec-json_expectations (~> 2.2)
334
- rspec-rails
335
- rubocop (= 0.76.0)
336
- rubocop-rspec (= 1.37.0)
337
- semantic_logger
338
- sqlite3
339
- timecop
340
- webmock
341
-
342
- BUNDLED WITH
343
- 2.2.26