cloudtasker 0.12.rc11 → 0.13.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) 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} +8 -13
  4. data/.github/workflows/test_ruby_2.7.yml +40 -0
  5. data/.github/workflows/test_ruby_3.x.yml +39 -0
  6. data/.rubocop.yml +5 -0
  7. data/Appraisals +20 -0
  8. data/CHANGELOG.md +52 -3
  9. data/README.md +15 -7
  10. data/Rakefile +0 -6
  11. data/app/controllers/cloudtasker/worker_controller.rb +4 -1
  12. data/cloudtasker.gemspec +0 -5
  13. data/docs/BATCH_JOBS.md +2 -2
  14. data/docs/CRON_JOBS.md +39 -0
  15. data/gemfiles/google_cloud_tasks_1.0.gemfile +1 -0
  16. data/gemfiles/google_cloud_tasks_1.0.gemfile.lock +43 -205
  17. data/gemfiles/google_cloud_tasks_1.1.gemfile +1 -0
  18. data/gemfiles/google_cloud_tasks_1.1.gemfile.lock +43 -205
  19. data/gemfiles/google_cloud_tasks_1.2.gemfile +1 -0
  20. data/gemfiles/google_cloud_tasks_1.2.gemfile.lock +43 -205
  21. data/gemfiles/google_cloud_tasks_1.3.gemfile +1 -0
  22. data/gemfiles/google_cloud_tasks_1.3.gemfile.lock +43 -205
  23. data/gemfiles/rails_5.2.gemfile +1 -0
  24. data/gemfiles/rails_5.2.gemfile.lock +54 -96
  25. data/gemfiles/rails_6.0.gemfile +1 -0
  26. data/gemfiles/rails_6.0.gemfile.lock +55 -97
  27. data/gemfiles/rails_6.1.gemfile +8 -0
  28. data/gemfiles/rails_7.0.gemfile +8 -0
  29. data/gemfiles/semantic_logger_3.4.gemfile +1 -0
  30. data/gemfiles/semantic_logger_4.6.gemfile +1 -0
  31. data/gemfiles/semantic_logger_4.7.0.gemfile +1 -0
  32. data/gemfiles/semantic_logger_4.7.2.gemfile +1 -0
  33. data/lib/cloudtasker/backend/google_cloud_task.rb +12 -8
  34. data/lib/cloudtasker/backend/memory_task.rb +1 -1
  35. data/lib/cloudtasker/backend/redis_task.rb +7 -3
  36. data/lib/cloudtasker/cloud_task.rb +2 -2
  37. data/lib/cloudtasker/cron/schedule.rb +7 -7
  38. data/lib/cloudtasker/local_server.rb +1 -1
  39. data/lib/cloudtasker/redis_client.rb +39 -14
  40. data/lib/cloudtasker/unique_job/job.rb +3 -2
  41. data/lib/cloudtasker/unique_job/middleware/client.rb +2 -1
  42. data/lib/cloudtasker/version.rb +1 -1
  43. data/lib/cloudtasker/worker.rb +4 -4
  44. data/lib/cloudtasker/worker_wrapper.rb +1 -1
  45. data/lib/cloudtasker.rb +1 -0
  46. metadata +9 -61
  47. data/app/controllers/cloudtasker/application_controller.rb +0 -8
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- cloudtasker (0.12.rc11)
4
+ cloudtasker (0.13.rc1)
5
5
  activesupport
6
6
  connection_pool
7
7
  fugit
@@ -13,234 +13,98 @@ PATH
13
13
  GEM
14
14
  remote: https://rubygems.org/
15
15
  specs:
16
- actioncable (6.1.4)
17
- actionpack (= 6.1.4)
18
- activesupport (= 6.1.4)
19
- nio4r (~> 2.0)
20
- websocket-driver (>= 0.6.1)
21
- actionmailbox (6.1.4)
22
- actionpack (= 6.1.4)
23
- activejob (= 6.1.4)
24
- activerecord (= 6.1.4)
25
- activestorage (= 6.1.4)
26
- activesupport (= 6.1.4)
27
- mail (>= 2.7.1)
28
- actionmailer (6.1.4)
29
- actionpack (= 6.1.4)
30
- actionview (= 6.1.4)
31
- activejob (= 6.1.4)
32
- activesupport (= 6.1.4)
33
- mail (~> 2.5, >= 2.5.4)
34
- rails-dom-testing (~> 2.0)
35
- actionpack (6.1.4)
36
- actionview (= 6.1.4)
37
- activesupport (= 6.1.4)
38
- rack (~> 2.0, >= 2.0.9)
39
- rack-test (>= 0.6.3)
40
- rails-dom-testing (~> 2.0)
41
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
42
- actiontext (6.1.4)
43
- actionpack (= 6.1.4)
44
- activerecord (= 6.1.4)
45
- activestorage (= 6.1.4)
46
- activesupport (= 6.1.4)
47
- nokogiri (>= 1.8.5)
48
- actionview (6.1.4)
49
- activesupport (= 6.1.4)
50
- builder (~> 3.1)
51
- erubi (~> 1.4)
52
- rails-dom-testing (~> 2.0)
53
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
54
- activejob (6.1.4)
55
- activesupport (= 6.1.4)
56
- globalid (>= 0.3.6)
57
- activemodel (6.1.4)
58
- activesupport (= 6.1.4)
59
- activerecord (6.1.4)
60
- activemodel (= 6.1.4)
61
- activesupport (= 6.1.4)
62
- activestorage (6.1.4)
63
- actionpack (= 6.1.4)
64
- activejob (= 6.1.4)
65
- activerecord (= 6.1.4)
66
- activesupport (= 6.1.4)
67
- marcel (~> 1.0.0)
68
- mini_mime (>= 1.1.0)
69
- activesupport (6.1.4)
16
+ activesupport (6.1.0)
70
17
  concurrent-ruby (~> 1.0, >= 1.0.2)
71
18
  i18n (>= 1.6, < 2)
72
19
  minitest (>= 5.1)
73
20
  tzinfo (~> 2.0)
74
21
  zeitwerk (~> 2.3)
75
- addressable (2.7.0)
22
+ addressable (2.8.0)
76
23
  public_suffix (>= 2.0.2, < 5.0)
77
- appraisal (2.4.0)
24
+ appraisal (2.4.1)
78
25
  bundler
79
26
  rake
80
27
  thor (>= 0.14.0)
81
28
  ast (2.4.2)
82
- async (1.29.1)
83
- console (~> 1.10)
84
- nio4r (~> 2.3)
85
- timers (~> 4.1)
86
- async-http (0.56.3)
87
- async (~> 1.25)
88
- async-io (~> 1.28)
89
- async-pool (~> 0.2)
90
- protocol-http (~> 0.22.0)
91
- protocol-http1 (~> 0.14.0)
92
- protocol-http2 (~> 0.14.0)
93
- async-http-faraday (0.11.0)
94
- async-http (~> 0.42)
95
- faraday
96
- async-io (1.32.1)
97
- async (~> 1.14)
98
- async-pool (0.3.7)
99
- async (~> 1.25)
100
- builder (3.2.4)
101
29
  concurrent-ruby (1.1.9)
102
30
  connection_pool (2.2.5)
103
- console (1.13.1)
104
- fiber-local
105
31
  crack (0.4.5)
106
32
  rexml
107
- crass (1.0.6)
108
- diff-lcs (1.4.4)
109
- erubi (1.10.0)
110
- et-orbi (1.2.4)
33
+ diff-lcs (1.5.0)
34
+ et-orbi (1.2.6)
111
35
  tzinfo
112
- faraday (1.4.3)
36
+ faraday (1.8.0)
113
37
  faraday-em_http (~> 1.0)
114
38
  faraday-em_synchrony (~> 1.0)
115
39
  faraday-excon (~> 1.1)
40
+ faraday-httpclient (~> 1.0.1)
116
41
  faraday-net_http (~> 1.0)
117
42
  faraday-net_http_persistent (~> 1.1)
43
+ faraday-patron (~> 1.0)
44
+ faraday-rack (~> 1.0)
118
45
  multipart-post (>= 1.2, < 3)
119
46
  ruby2_keywords (>= 0.0.4)
120
47
  faraday-em_http (1.0.0)
121
48
  faraday-em_synchrony (1.0.0)
122
49
  faraday-excon (1.1.0)
123
- faraday-http-cache (2.2.0)
124
- faraday (>= 0.8)
50
+ faraday-httpclient (1.0.1)
125
51
  faraday-net_http (1.0.1)
126
- faraday-net_http_persistent (1.1.0)
127
- fiber-local (1.0.0)
128
- fugit (1.5.0)
52
+ faraday-net_http_persistent (1.2.0)
53
+ faraday-patron (1.0.0)
54
+ faraday-rack (1.0.0)
55
+ fugit (1.5.2)
129
56
  et-orbi (~> 1.1, >= 1.1.8)
130
57
  raabro (~> 1.4)
131
- github_changelog_generator (1.16.4)
132
- activesupport
133
- async (>= 1.25.0)
134
- async-http-faraday
135
- faraday-http-cache
136
- multi_json
137
- octokit (~> 4.6)
138
- rainbow (>= 2.2.1)
139
- rake (>= 10.0)
140
- globalid (0.4.2)
141
- activesupport (>= 4.2.0)
142
58
  google-cloud-tasks (1.1.0)
143
59
  google-gax (~> 1.7)
144
60
  googleapis-common-protos (>= 1.3.9, < 2.0)
145
61
  grpc-google-iam-v1 (~> 0.6.9)
146
- google-gax (1.8.1)
62
+ google-gax (1.8.2)
147
63
  google-protobuf (~> 3.9)
148
64
  googleapis-common-protos (>= 1.3.9, < 2.0)
65
+ googleapis-common-protos-types (>= 1.0.4, < 2.0)
149
66
  googleauth (~> 0.9)
150
67
  grpc (~> 1.24)
151
68
  rly (~> 0.2.3)
152
- google-protobuf (3.17.3)
153
- googleapis-common-protos (1.3.11)
69
+ google-protobuf (3.19.1)
70
+ googleapis-common-protos (1.3.12)
154
71
  google-protobuf (~> 3.14)
155
- googleapis-common-protos-types (>= 1.0.6, < 2.0)
72
+ googleapis-common-protos-types (~> 1.2)
156
73
  grpc (~> 1.27)
157
- googleapis-common-protos-types (1.0.6)
74
+ googleapis-common-protos-types (1.3.0)
158
75
  google-protobuf (~> 3.14)
159
- googleauth (0.16.2)
76
+ googleauth (0.17.1)
160
77
  faraday (>= 0.17.3, < 2.0)
161
78
  jwt (>= 1.4, < 3.0)
162
79
  memoist (~> 0.16)
163
80
  multi_json (~> 1.11)
164
81
  os (>= 0.9, < 2.0)
165
- signet (~> 0.14)
166
- grpc (1.38.0)
167
- google-protobuf (~> 3.15)
82
+ signet (~> 0.15)
83
+ grpc (1.42.0)
84
+ google-protobuf (~> 3.18)
168
85
  googleapis-common-protos-types (~> 1.0)
169
86
  grpc-google-iam-v1 (0.6.11)
170
87
  google-protobuf (~> 3.14)
171
88
  googleapis-common-protos (>= 1.3.11, < 2.0)
172
89
  grpc (~> 1.27)
173
90
  hashdiff (1.0.1)
174
- i18n (1.8.10)
91
+ i18n (1.8.11)
175
92
  concurrent-ruby (~> 1.0)
176
93
  jaro_winkler (1.5.4)
177
- jwt (2.2.3)
178
- loofah (2.10.0)
179
- crass (~> 1.0.2)
180
- nokogiri (>= 1.5.9)
181
- mail (2.7.1)
182
- mini_mime (>= 0.1.1)
183
- marcel (1.0.1)
94
+ jwt (2.3.0)
184
95
  memoist (0.16.2)
185
- method_source (1.0.0)
186
- mini_mime (1.1.0)
187
- mini_portile2 (2.5.3)
188
- minitest (5.14.4)
96
+ minitest (5.15.0)
189
97
  multi_json (1.15.0)
190
98
  multipart-post (2.1.1)
191
- nio4r (2.5.7)
192
- nokogiri (1.11.7)
193
- mini_portile2 (~> 2.5.0)
194
- racc (~> 1.4)
195
- octokit (4.21.0)
196
- faraday (>= 0.9)
197
- sawyer (~> 0.8.0, >= 0.5.3)
198
- os (1.1.1)
199
- parallel (1.20.1)
200
- parser (3.0.1.1)
99
+ os (1.1.4)
100
+ parallel (1.21.0)
101
+ parser (3.0.3.2)
201
102
  ast (~> 2.4.1)
202
- protocol-hpack (1.4.2)
203
- protocol-http (0.22.4)
204
- protocol-http1 (0.14.1)
205
- protocol-http (~> 0.22)
206
- protocol-http2 (0.14.2)
207
- protocol-hpack (~> 1.4)
208
- protocol-http (~> 0.18)
209
103
  public_suffix (4.0.6)
210
104
  raabro (1.4.0)
211
- racc (1.5.2)
212
- rack (2.2.3)
213
- rack-test (1.1.0)
214
- rack (>= 1.0, < 3)
215
- rails (6.1.4)
216
- actioncable (= 6.1.4)
217
- actionmailbox (= 6.1.4)
218
- actionmailer (= 6.1.4)
219
- actionpack (= 6.1.4)
220
- actiontext (= 6.1.4)
221
- actionview (= 6.1.4)
222
- activejob (= 6.1.4)
223
- activemodel (= 6.1.4)
224
- activerecord (= 6.1.4)
225
- activestorage (= 6.1.4)
226
- activesupport (= 6.1.4)
227
- bundler (>= 1.15.0)
228
- railties (= 6.1.4)
229
- sprockets-rails (>= 2.0.0)
230
- rails-dom-testing (2.0.3)
231
- activesupport (>= 4.2.0)
232
- nokogiri (>= 1.6)
233
- rails-html-sanitizer (1.3.0)
234
- loofah (~> 2.3)
235
- railties (6.1.4)
236
- actionpack (= 6.1.4)
237
- activesupport (= 6.1.4)
238
- method_source
239
- rake (>= 0.13)
240
- thor (~> 1.0)
241
105
  rainbow (3.0.0)
242
- rake (13.0.3)
243
- redis (4.3.1)
106
+ rake (13.0.6)
107
+ redis (4.5.1)
244
108
  retriable (3.1.2)
245
109
  rexml (3.2.5)
246
110
  rly (0.2.3)
@@ -257,15 +121,7 @@ GEM
257
121
  rspec-mocks (3.10.2)
258
122
  diff-lcs (>= 1.2.0, < 2.0)
259
123
  rspec-support (~> 3.10.0)
260
- rspec-rails (5.0.1)
261
- actionpack (>= 5.2)
262
- activesupport (>= 5.2)
263
- railties (>= 5.2)
264
- rspec-core (~> 3.10)
265
- rspec-expectations (~> 3.10)
266
- rspec-mocks (~> 3.10)
267
- rspec-support (~> 3.10)
268
- rspec-support (3.10.2)
124
+ rspec-support (3.10.3)
269
125
  rubocop (0.76.0)
270
126
  jaro_winkler (~> 1.5.1)
271
127
  parallel (~> 1.10)
@@ -276,60 +132,42 @@ GEM
276
132
  rubocop-rspec (1.37.0)
277
133
  rubocop (>= 0.68.1)
278
134
  ruby-progressbar (1.11.0)
279
- ruby2_keywords (0.0.4)
280
- sawyer (0.8.2)
281
- addressable (>= 2.3.5)
282
- faraday (> 0.8, < 2.0)
283
- semantic_logger (4.8.0)
135
+ ruby2_keywords (0.0.5)
136
+ semantic_logger (4.9.0)
284
137
  concurrent-ruby (~> 1.0)
285
- signet (0.15.0)
286
- addressable (~> 2.3)
138
+ signet (0.16.0)
139
+ addressable (~> 2.8)
287
140
  faraday (>= 0.17.3, < 2.0)
288
141
  jwt (>= 1.5, < 3.0)
289
142
  multi_json (~> 1.10)
290
- sprockets (4.0.2)
291
- concurrent-ruby (~> 1.0)
292
- rack (> 1, < 3)
293
- sprockets-rails (3.2.2)
294
- actionpack (>= 4.0)
295
- activesupport (>= 4.0)
296
- sprockets (>= 3.0.0)
297
- sqlite3 (1.4.2)
298
143
  thor (1.1.0)
299
144
  timecop (0.9.4)
300
- timers (4.3.3)
301
145
  tzinfo (2.0.4)
302
146
  concurrent-ruby (~> 1.0)
303
147
  unicode-display_width (1.6.1)
304
- webmock (3.13.0)
305
- addressable (>= 2.3.6)
148
+ webmock (3.14.0)
149
+ addressable (>= 2.8.0)
306
150
  crack (>= 0.3.2)
307
151
  hashdiff (>= 0.4.0, < 2.0.0)
308
- websocket-driver (0.7.5)
309
- websocket-extensions (>= 0.1.0)
310
- websocket-extensions (0.1.5)
311
- zeitwerk (2.4.2)
152
+ zeitwerk (2.5.3)
312
153
 
313
154
  PLATFORMS
314
155
  ruby
315
156
 
316
157
  DEPENDENCIES
158
+ activesupport (= 6.1)
317
159
  appraisal
318
160
  bundler (~> 2.0)
319
161
  cloudtasker!
320
- github_changelog_generator
321
162
  google-cloud-tasks (= 1.1)
322
- rails
323
163
  rake (>= 12.3.3)
324
164
  rspec (~> 3.0)
325
165
  rspec-json_expectations (~> 2.2)
326
- rspec-rails
327
166
  rubocop (= 0.76.0)
328
167
  rubocop-rspec (= 1.37.0)
329
168
  semantic_logger
330
- sqlite3
331
169
  timecop
332
170
  webmock
333
171
 
334
172
  BUNDLED WITH
335
- 2.2.9
173
+ 2.3.4
@@ -2,6 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
+ gem "activesupport", "6.1"
5
6
  gem "google-cloud-tasks", "1.2"
6
7
 
7
8
  gemspec path: "../"