cloudtasker 0.9.5 → 0.10.rc1

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 (36) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +1 -1
  3. data/.travis.yml +16 -0
  4. data/Appraisals +0 -16
  5. data/CHANGELOG.md +0 -22
  6. data/README.md +40 -1
  7. data/app/controllers/cloudtasker/application_controller.rb +8 -0
  8. data/app/controllers/cloudtasker/worker_controller.rb +1 -4
  9. data/cloudtasker.gemspec +1 -2
  10. data/gemfiles/google_cloud_tasks_1.0.gemfile +5 -3
  11. data/gemfiles/google_cloud_tasks_1.0.gemfile.lock +154 -208
  12. data/gemfiles/google_cloud_tasks_1.1.gemfile +5 -3
  13. data/gemfiles/google_cloud_tasks_1.1.gemfile.lock +154 -208
  14. data/gemfiles/google_cloud_tasks_1.2.gemfile +5 -3
  15. data/gemfiles/google_cloud_tasks_1.2.gemfile.lock +154 -208
  16. data/gemfiles/google_cloud_tasks_1.3.gemfile +5 -3
  17. data/gemfiles/google_cloud_tasks_1.3.gemfile.lock +154 -208
  18. data/gemfiles/rails_5.2.gemfile +5 -3
  19. data/gemfiles/rails_5.2.gemfile.lock +91 -146
  20. data/gemfiles/rails_6.0.gemfile +5 -3
  21. data/gemfiles/rails_6.0.gemfile.lock +92 -147
  22. data/lib/cloudtasker/backend/google_cloud_task.rb +1 -1
  23. data/lib/cloudtasker/backend/memory_task.rb +8 -23
  24. data/lib/cloudtasker/config.rb +16 -1
  25. data/lib/cloudtasker/testing.rb +2 -2
  26. data/lib/cloudtasker/version.rb +1 -1
  27. data/lib/cloudtasker/worker_handler.rb +142 -5
  28. data/lib/cloudtasker/worker_logger.rb +1 -2
  29. data/lib/cloudtasker.rb +0 -1
  30. metadata +15 -32
  31. data/.github/workflows/test.yml +0 -45
  32. data/gemfiles/semantic_logger_3.4.gemfile +0 -7
  33. data/gemfiles/semantic_logger_4.6.gemfile +0 -7
  34. data/gemfiles/semantic_logger_4.7.0.gemfile +0 -7
  35. data/gemfiles/semantic_logger_4.7.2.gemfile +0 -7
  36. data/gemfiles/semantic_logger_4.7.gemfile +0 -9
@@ -1,147 +1,104 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- cloudtasker (0.9.4)
4
+ cloudtasker (0.10.rc1)
5
5
  activesupport
6
6
  fugit
7
- google-cloud-tasks (~> 1.0)
7
+ google-cloud-tasks
8
8
  jwt
9
9
  redis
10
10
 
11
11
  GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
- actioncable (6.1.4)
15
- actionpack (= 6.1.4)
16
- activesupport (= 6.1.4)
14
+ actioncable (6.0.2.1)
15
+ actionpack (= 6.0.2.1)
17
16
  nio4r (~> 2.0)
18
17
  websocket-driver (>= 0.6.1)
19
- actionmailbox (6.1.4)
20
- actionpack (= 6.1.4)
21
- activejob (= 6.1.4)
22
- activerecord (= 6.1.4)
23
- activestorage (= 6.1.4)
24
- activesupport (= 6.1.4)
18
+ actionmailbox (6.0.2.1)
19
+ actionpack (= 6.0.2.1)
20
+ activejob (= 6.0.2.1)
21
+ activerecord (= 6.0.2.1)
22
+ activestorage (= 6.0.2.1)
23
+ activesupport (= 6.0.2.1)
25
24
  mail (>= 2.7.1)
26
- actionmailer (6.1.4)
27
- actionpack (= 6.1.4)
28
- actionview (= 6.1.4)
29
- activejob (= 6.1.4)
30
- activesupport (= 6.1.4)
25
+ actionmailer (6.0.2.1)
26
+ actionpack (= 6.0.2.1)
27
+ actionview (= 6.0.2.1)
28
+ activejob (= 6.0.2.1)
31
29
  mail (~> 2.5, >= 2.5.4)
32
30
  rails-dom-testing (~> 2.0)
33
- actionpack (6.1.4)
34
- actionview (= 6.1.4)
35
- activesupport (= 6.1.4)
36
- rack (~> 2.0, >= 2.0.9)
31
+ actionpack (6.0.2.1)
32
+ actionview (= 6.0.2.1)
33
+ activesupport (= 6.0.2.1)
34
+ rack (~> 2.0, >= 2.0.8)
37
35
  rack-test (>= 0.6.3)
38
36
  rails-dom-testing (~> 2.0)
39
37
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
40
- actiontext (6.1.4)
41
- actionpack (= 6.1.4)
42
- activerecord (= 6.1.4)
43
- activestorage (= 6.1.4)
44
- activesupport (= 6.1.4)
38
+ actiontext (6.0.2.1)
39
+ actionpack (= 6.0.2.1)
40
+ activerecord (= 6.0.2.1)
41
+ activestorage (= 6.0.2.1)
42
+ activesupport (= 6.0.2.1)
45
43
  nokogiri (>= 1.8.5)
46
- actionview (6.1.4)
47
- activesupport (= 6.1.4)
44
+ actionview (6.0.2.1)
45
+ activesupport (= 6.0.2.1)
48
46
  builder (~> 3.1)
49
47
  erubi (~> 1.4)
50
48
  rails-dom-testing (~> 2.0)
51
49
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
52
- activejob (6.1.4)
53
- activesupport (= 6.1.4)
50
+ activejob (6.0.2.1)
51
+ activesupport (= 6.0.2.1)
54
52
  globalid (>= 0.3.6)
55
- activemodel (6.1.4)
56
- activesupport (= 6.1.4)
57
- activerecord (6.1.4)
58
- activemodel (= 6.1.4)
59
- activesupport (= 6.1.4)
60
- activestorage (6.1.4)
61
- actionpack (= 6.1.4)
62
- activejob (= 6.1.4)
63
- activerecord (= 6.1.4)
64
- activesupport (= 6.1.4)
65
- marcel (~> 1.0.0)
66
- mini_mime (>= 1.1.0)
67
- activesupport (6.1.4)
53
+ activemodel (6.0.2.1)
54
+ activesupport (= 6.0.2.1)
55
+ activerecord (6.0.2.1)
56
+ activemodel (= 6.0.2.1)
57
+ activesupport (= 6.0.2.1)
58
+ activestorage (6.0.2.1)
59
+ actionpack (= 6.0.2.1)
60
+ activejob (= 6.0.2.1)
61
+ activerecord (= 6.0.2.1)
62
+ marcel (~> 0.3.1)
63
+ activesupport (6.0.2.1)
68
64
  concurrent-ruby (~> 1.0, >= 1.0.2)
69
- i18n (>= 1.6, < 2)
70
- minitest (>= 5.1)
71
- tzinfo (~> 2.0)
72
- zeitwerk (~> 2.3)
73
- addressable (2.8.0)
65
+ i18n (>= 0.7, < 2)
66
+ minitest (~> 5.1)
67
+ tzinfo (~> 1.1)
68
+ zeitwerk (~> 2.2)
69
+ addressable (2.7.0)
74
70
  public_suffix (>= 2.0.2, < 5.0)
75
- appraisal (2.4.1)
71
+ appraisal (2.2.0)
76
72
  bundler
77
73
  rake
78
74
  thor (>= 0.14.0)
79
- ast (2.4.2)
80
- async (1.30.1)
81
- console (~> 1.10)
82
- nio4r (~> 2.3)
83
- timers (~> 4.1)
84
- async-http (0.56.5)
85
- async (>= 1.25)
86
- async-io (>= 1.28)
87
- async-pool (>= 0.2)
88
- protocol-http (~> 0.22.0)
89
- protocol-http1 (~> 0.14.0)
90
- protocol-http2 (~> 0.14.0)
91
- async-http-faraday (0.11.0)
92
- async-http (~> 0.42)
93
- faraday
94
- async-io (1.32.2)
95
- async
96
- async-pool (0.3.8)
97
- async (>= 1.25)
75
+ ast (2.4.0)
98
76
  builder (3.2.4)
99
- concurrent-ruby (1.1.9)
100
- console (1.13.1)
101
- fiber-local
102
- crack (0.4.5)
103
- rexml
77
+ concurrent-ruby (1.1.6)
78
+ crack (0.4.3)
79
+ safe_yaml (~> 1.0.0)
104
80
  crass (1.0.6)
105
- diff-lcs (1.4.4)
106
- erubi (1.10.0)
107
- et-orbi (1.2.4)
81
+ diff-lcs (1.3)
82
+ erubi (1.9.0)
83
+ et-orbi (1.2.3)
108
84
  tzinfo
109
- faraday (1.7.0)
110
- faraday-em_http (~> 1.0)
111
- faraday-em_synchrony (~> 1.0)
112
- faraday-excon (~> 1.1)
113
- faraday-httpclient (~> 1.0.1)
114
- faraday-net_http (~> 1.0)
115
- faraday-net_http_persistent (~> 1.1)
116
- faraday-patron (~> 1.0)
117
- faraday-rack (~> 1.0)
85
+ faraday (0.17.3)
118
86
  multipart-post (>= 1.2, < 3)
119
- ruby2_keywords (>= 0.0.4)
120
- faraday-em_http (1.0.0)
121
- faraday-em_synchrony (1.0.0)
122
- faraday-excon (1.1.0)
123
- faraday-http-cache (2.2.0)
124
- faraday (>= 0.8)
125
- faraday-httpclient (1.0.1)
126
- faraday-net_http (1.0.1)
127
- faraday-net_http_persistent (1.2.0)
128
- faraday-patron (1.0.0)
129
- faraday-rack (1.0.0)
130
- fiber-local (1.0.0)
131
- fugit (1.5.1)
87
+ faraday-http-cache (2.0.0)
88
+ faraday (~> 0.8)
89
+ fugit (1.3.3)
132
90
  et-orbi (~> 1.1, >= 1.1.8)
133
- raabro (~> 1.4)
134
- github_changelog_generator (1.16.4)
91
+ raabro (~> 1.1)
92
+ github_changelog_generator (1.15.0)
135
93
  activesupport
136
- async (>= 1.25.0)
137
- async-http-faraday
138
94
  faraday-http-cache
139
95
  multi_json
140
96
  octokit (~> 4.6)
141
97
  rainbow (>= 2.2.1)
142
98
  rake (>= 10.0)
143
- globalid (0.5.2)
144
- activesupport (>= 5.0)
99
+ retriable (~> 3.0)
100
+ globalid (0.4.2)
101
+ activesupport (>= 4.2.0)
145
102
  google-cloud-tasks (1.3.0)
146
103
  google-gax (~> 1.8)
147
104
  googleapis-common-protos (>= 1.3.9, < 2.0)
@@ -153,121 +110,113 @@ GEM
153
110
  googleauth (~> 0.9)
154
111
  grpc (~> 1.24)
155
112
  rly (~> 0.2.3)
156
- google-protobuf (3.17.3)
157
- googleapis-common-protos (1.3.11)
158
- google-protobuf (~> 3.14)
159
- googleapis-common-protos-types (>= 1.0.6, < 2.0)
160
- grpc (~> 1.27)
161
- googleapis-common-protos-types (1.1.0)
162
- google-protobuf (~> 3.14)
163
- googleauth (0.17.0)
113
+ google-protobuf (3.11.4)
114
+ googleapis-common-protos (1.3.9)
115
+ google-protobuf (~> 3.0)
116
+ googleapis-common-protos-types (~> 1.0)
117
+ grpc (~> 1.0)
118
+ googleapis-common-protos-types (1.0.4)
119
+ google-protobuf (~> 3.0)
120
+ googleauth (0.11.0)
164
121
  faraday (>= 0.17.3, < 2.0)
165
122
  jwt (>= 1.4, < 3.0)
166
123
  memoist (~> 0.16)
167
124
  multi_json (~> 1.11)
168
125
  os (>= 0.9, < 2.0)
169
- signet (~> 0.14)
170
- grpc (1.38.0)
171
- google-protobuf (~> 3.15)
126
+ signet (~> 0.12)
127
+ grpc (1.27.0)
128
+ google-protobuf (~> 3.11)
172
129
  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)
130
+ grpc-google-iam-v1 (0.6.9)
131
+ googleapis-common-protos (>= 1.3.1, < 2.0)
132
+ grpc (~> 1.0)
177
133
  hashdiff (1.0.1)
178
- i18n (1.8.10)
134
+ i18n (1.8.2)
179
135
  concurrent-ruby (~> 1.0)
180
136
  jaro_winkler (1.5.4)
181
- jwt (2.2.3)
182
- loofah (2.12.0)
137
+ jwt (2.2.1)
138
+ loofah (2.4.0)
183
139
  crass (~> 1.0.2)
184
140
  nokogiri (>= 1.5.9)
185
141
  mail (2.7.1)
186
142
  mini_mime (>= 0.1.1)
187
- marcel (1.0.1)
143
+ marcel (0.3.3)
144
+ mimemagic (~> 0.3.2)
188
145
  memoist (0.16.2)
189
- method_source (1.0.0)
190
- mini_mime (1.1.0)
191
- mini_portile2 (2.6.1)
192
- minitest (5.14.4)
193
- multi_json (1.15.0)
146
+ method_source (0.9.2)
147
+ mimemagic (0.3.4)
148
+ mini_mime (1.0.2)
149
+ mini_portile2 (2.4.0)
150
+ minitest (5.14.0)
151
+ multi_json (1.14.1)
194
152
  multipart-post (2.1.1)
195
- nio4r (2.5.8)
196
- nokogiri (1.12.3)
197
- mini_portile2 (~> 2.6.1)
198
- racc (~> 1.4)
199
- octokit (4.21.0)
153
+ nio4r (2.5.2)
154
+ nokogiri (1.10.9)
155
+ mini_portile2 (~> 2.4.0)
156
+ octokit (4.16.0)
200
157
  faraday (>= 0.9)
201
158
  sawyer (~> 0.8.0, >= 0.5.3)
202
- os (1.1.1)
203
- parallel (1.20.1)
204
- parser (3.0.2.0)
205
- ast (~> 2.4.1)
206
- protocol-hpack (1.4.2)
207
- protocol-http (0.22.5)
208
- protocol-http1 (0.14.1)
209
- protocol-http (~> 0.22)
210
- protocol-http2 (0.14.2)
211
- protocol-hpack (~> 1.4)
212
- protocol-http (~> 0.18)
213
- public_suffix (4.0.6)
214
- raabro (1.4.0)
215
- racc (1.5.2)
216
- rack (2.2.3)
159
+ os (1.0.1)
160
+ parallel (1.19.1)
161
+ parser (2.7.0.4)
162
+ ast (~> 2.4.0)
163
+ public_suffix (4.0.3)
164
+ raabro (1.1.6)
165
+ rack (2.2.2)
217
166
  rack-test (1.1.0)
218
167
  rack (>= 1.0, < 3)
219
- rails (6.1.4)
220
- actioncable (= 6.1.4)
221
- actionmailbox (= 6.1.4)
222
- actionmailer (= 6.1.4)
223
- actionpack (= 6.1.4)
224
- actiontext (= 6.1.4)
225
- actionview (= 6.1.4)
226
- activejob (= 6.1.4)
227
- activemodel (= 6.1.4)
228
- activerecord (= 6.1.4)
229
- activestorage (= 6.1.4)
230
- activesupport (= 6.1.4)
231
- bundler (>= 1.15.0)
232
- railties (= 6.1.4)
168
+ rails (6.0.2.1)
169
+ actioncable (= 6.0.2.1)
170
+ actionmailbox (= 6.0.2.1)
171
+ actionmailer (= 6.0.2.1)
172
+ actionpack (= 6.0.2.1)
173
+ actiontext (= 6.0.2.1)
174
+ actionview (= 6.0.2.1)
175
+ activejob (= 6.0.2.1)
176
+ activemodel (= 6.0.2.1)
177
+ activerecord (= 6.0.2.1)
178
+ activestorage (= 6.0.2.1)
179
+ activesupport (= 6.0.2.1)
180
+ bundler (>= 1.3.0)
181
+ railties (= 6.0.2.1)
233
182
  sprockets-rails (>= 2.0.0)
234
183
  rails-dom-testing (2.0.3)
235
184
  activesupport (>= 4.2.0)
236
185
  nokogiri (>= 1.6)
237
- rails-html-sanitizer (1.4.1)
186
+ rails-html-sanitizer (1.3.0)
238
187
  loofah (~> 2.3)
239
- railties (6.1.4)
240
- actionpack (= 6.1.4)
241
- activesupport (= 6.1.4)
188
+ railties (6.0.2.1)
189
+ actionpack (= 6.0.2.1)
190
+ activesupport (= 6.0.2.1)
242
191
  method_source
243
- rake (>= 0.13)
244
- thor (~> 1.0)
192
+ rake (>= 0.8.7)
193
+ thor (>= 0.20.3, < 2.0)
245
194
  rainbow (3.0.0)
246
- rake (13.0.6)
247
- redis (4.4.0)
248
- rexml (3.2.5)
195
+ rake (13.0.1)
196
+ redis (4.1.3)
197
+ retriable (3.1.2)
249
198
  rly (0.2.3)
250
- rspec (3.10.0)
251
- rspec-core (~> 3.10.0)
252
- rspec-expectations (~> 3.10.0)
253
- rspec-mocks (~> 3.10.0)
254
- rspec-core (3.10.1)
255
- rspec-support (~> 3.10.0)
256
- rspec-expectations (3.10.1)
199
+ rspec (3.9.0)
200
+ rspec-core (~> 3.9.0)
201
+ rspec-expectations (~> 3.9.0)
202
+ rspec-mocks (~> 3.9.0)
203
+ rspec-core (3.9.1)
204
+ rspec-support (~> 3.9.1)
205
+ rspec-expectations (3.9.0)
257
206
  diff-lcs (>= 1.2.0, < 2.0)
258
- rspec-support (~> 3.10.0)
259
- rspec-mocks (3.10.2)
207
+ rspec-support (~> 3.9.0)
208
+ rspec-mocks (3.9.1)
260
209
  diff-lcs (>= 1.2.0, < 2.0)
261
- rspec-support (~> 3.10.0)
262
- rspec-rails (5.0.2)
263
- actionpack (>= 5.2)
264
- activesupport (>= 5.2)
265
- railties (>= 5.2)
266
- rspec-core (~> 3.10)
267
- rspec-expectations (~> 3.10)
268
- rspec-mocks (~> 3.10)
269
- rspec-support (~> 3.10)
270
- rspec-support (3.10.2)
210
+ rspec-support (~> 3.9.0)
211
+ rspec-rails (3.9.0)
212
+ actionpack (>= 3.0)
213
+ activesupport (>= 3.0)
214
+ railties (>= 3.0)
215
+ rspec-core (~> 3.9.0)
216
+ rspec-expectations (~> 3.9.0)
217
+ rspec-mocks (~> 3.9.0)
218
+ rspec-support (~> 3.9.0)
219
+ rspec-support (3.9.2)
271
220
  rubocop (0.76.0)
272
221
  jaro_winkler (~> 1.5.1)
273
222
  parallel (~> 1.10)
@@ -277,40 +226,38 @@ GEM
277
226
  unicode-display_width (>= 1.4.0, < 1.7)
278
227
  rubocop-rspec (1.37.0)
279
228
  rubocop (>= 0.68.1)
280
- ruby-progressbar (1.11.0)
281
- ruby2_keywords (0.0.5)
229
+ ruby-progressbar (1.10.1)
230
+ safe_yaml (1.0.5)
282
231
  sawyer (0.8.2)
283
232
  addressable (>= 2.3.5)
284
233
  faraday (> 0.8, < 2.0)
285
- semantic_logger (4.8.2)
286
- concurrent-ruby (~> 1.0)
287
- signet (0.15.0)
234
+ signet (0.13.0)
288
235
  addressable (~> 2.3)
289
236
  faraday (>= 0.17.3, < 2.0)
290
237
  jwt (>= 1.5, < 3.0)
291
238
  multi_json (~> 1.10)
292
- sprockets (4.0.2)
239
+ sprockets (4.0.0)
293
240
  concurrent-ruby (~> 1.0)
294
241
  rack (> 1, < 3)
295
- sprockets-rails (3.2.2)
242
+ sprockets-rails (3.2.1)
296
243
  actionpack (>= 4.0)
297
244
  activesupport (>= 4.0)
298
245
  sprockets (>= 3.0.0)
299
246
  sqlite3 (1.4.2)
300
- thor (1.1.0)
301
- timecop (0.9.4)
302
- timers (4.3.3)
303
- tzinfo (2.0.4)
304
- concurrent-ruby (~> 1.0)
247
+ thor (1.0.1)
248
+ thread_safe (0.3.6)
249
+ timecop (0.9.1)
250
+ tzinfo (1.2.6)
251
+ thread_safe (~> 0.1)
305
252
  unicode-display_width (1.6.1)
306
- webmock (3.14.0)
307
- addressable (>= 2.8.0)
253
+ webmock (3.8.2)
254
+ addressable (>= 2.3.6)
308
255
  crack (>= 0.3.2)
309
256
  hashdiff (>= 0.4.0, < 2.0.0)
310
- websocket-driver (0.7.5)
257
+ websocket-driver (0.7.1)
311
258
  websocket-extensions (>= 0.1.0)
312
- websocket-extensions (0.1.5)
313
- zeitwerk (2.4.2)
259
+ websocket-extensions (0.1.4)
260
+ zeitwerk (2.3.0)
314
261
 
315
262
  PLATFORMS
316
263
  ruby
@@ -327,10 +274,9 @@ DEPENDENCIES
327
274
  rspec-rails
328
275
  rubocop (= 0.76.0)
329
276
  rubocop-rspec (= 1.37.0)
330
- semantic_logger
331
277
  sqlite3
332
278
  timecop
333
279
  webmock
334
280
 
335
281
  BUNDLED WITH
336
- 2.2.9
282
+ 2.1.4
@@ -1,7 +1,9 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # This file was generated by Appraisal
2
4
 
3
- source "https://rubygems.org"
5
+ source 'https://rubygems.org'
4
6
 
5
- gem "rails", "5.2"
7
+ gem 'rails', '5.2'
6
8
 
7
- gemspec path: "../"
9
+ gemspec path: '../'