cloudtasker 0.12.1 → 0.12.2

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.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- cloudtasker (0.12.1)
4
+ cloudtasker (0.12.2)
5
5
  activesupport
6
6
  connection_pool
7
7
  fugit
@@ -91,21 +91,21 @@ GEM
91
91
  faraday
92
92
  async-io (1.32.2)
93
93
  async
94
- async-pool (0.3.8)
94
+ async-pool (0.3.9)
95
95
  async (>= 1.25)
96
96
  builder (3.2.4)
97
97
  concurrent-ruby (1.1.9)
98
98
  connection_pool (2.2.5)
99
- console (1.13.1)
99
+ console (1.14.0)
100
100
  fiber-local
101
101
  crack (0.4.5)
102
102
  rexml
103
103
  crass (1.0.6)
104
- diff-lcs (1.4.4)
104
+ diff-lcs (1.5.0)
105
105
  erubi (1.10.0)
106
- et-orbi (1.2.4)
106
+ et-orbi (1.2.6)
107
107
  tzinfo
108
- faraday (1.7.0)
108
+ faraday (1.8.0)
109
109
  faraday-em_http (~> 1.0)
110
110
  faraday-em_synchrony (~> 1.0)
111
111
  faraday-excon (~> 1.1)
@@ -127,7 +127,7 @@ GEM
127
127
  faraday-patron (1.0.0)
128
128
  faraday-rack (1.0.0)
129
129
  fiber-local (1.0.0)
130
- fugit (1.5.1)
130
+ fugit (1.5.2)
131
131
  et-orbi (~> 1.1, >= 1.1.8)
132
132
  raabro (~> 1.4)
133
133
  github_changelog_generator (1.16.4)
@@ -139,46 +139,47 @@ GEM
139
139
  octokit (~> 4.6)
140
140
  rainbow (>= 2.2.1)
141
141
  rake (>= 10.0)
142
- globalid (0.5.2)
142
+ globalid (1.0.0)
143
143
  activesupport (>= 5.0)
144
144
  google-cloud-tasks (1.5.1)
145
145
  google-gax (~> 1.8)
146
146
  googleapis-common-protos (>= 1.3.9, < 2.0)
147
147
  googleapis-common-protos-types (>= 1.0.4, < 2.0)
148
148
  grpc-google-iam-v1 (~> 0.6.9)
149
- google-gax (1.8.1)
149
+ google-gax (1.8.2)
150
150
  google-protobuf (~> 3.9)
151
151
  googleapis-common-protos (>= 1.3.9, < 2.0)
152
+ googleapis-common-protos-types (>= 1.0.4, < 2.0)
152
153
  googleauth (~> 0.9)
153
154
  grpc (~> 1.24)
154
155
  rly (~> 0.2.3)
155
- google-protobuf (3.17.3)
156
- googleapis-common-protos (1.3.11)
156
+ google-protobuf (3.19.1)
157
+ googleapis-common-protos (1.3.12)
157
158
  google-protobuf (~> 3.14)
158
- googleapis-common-protos-types (>= 1.0.6, < 2.0)
159
+ googleapis-common-protos-types (~> 1.2)
159
160
  grpc (~> 1.27)
160
- googleapis-common-protos-types (1.1.0)
161
+ googleapis-common-protos-types (1.3.0)
161
162
  google-protobuf (~> 3.14)
162
- googleauth (0.17.0)
163
+ googleauth (0.17.1)
163
164
  faraday (>= 0.17.3, < 2.0)
164
165
  jwt (>= 1.4, < 3.0)
165
166
  memoist (~> 0.16)
166
167
  multi_json (~> 1.11)
167
168
  os (>= 0.9, < 2.0)
168
- signet (~> 0.14)
169
- grpc (1.38.0)
170
- google-protobuf (~> 3.15)
169
+ signet (~> 0.15)
170
+ grpc (1.42.0)
171
+ google-protobuf (~> 3.18)
171
172
  googleapis-common-protos-types (~> 1.0)
172
173
  grpc-google-iam-v1 (0.6.11)
173
174
  google-protobuf (~> 3.14)
174
175
  googleapis-common-protos (>= 1.3.11, < 2.0)
175
176
  grpc (~> 1.27)
176
177
  hashdiff (1.0.1)
177
- i18n (1.8.10)
178
+ i18n (1.8.11)
178
179
  concurrent-ruby (~> 1.0)
179
180
  jaro_winkler (1.5.4)
180
- jwt (2.2.3)
181
- loofah (2.12.0)
181
+ jwt (2.3.0)
182
+ loofah (2.13.0)
182
183
  crass (~> 1.0.2)
183
184
  nokogiri (>= 1.5.9)
184
185
  mail (2.7.1)
@@ -190,21 +191,21 @@ GEM
190
191
  mimemagic (0.3.10)
191
192
  nokogiri (~> 1)
192
193
  rake
193
- mini_mime (1.1.1)
194
+ mini_mime (1.1.2)
194
195
  mini_portile2 (2.6.1)
195
- minitest (5.14.4)
196
+ minitest (5.15.0)
196
197
  multi_json (1.15.0)
197
198
  multipart-post (2.1.1)
198
199
  nio4r (2.5.8)
199
- nokogiri (1.12.3)
200
+ nokogiri (1.12.5)
200
201
  mini_portile2 (~> 2.6.1)
201
202
  racc (~> 1.4)
202
203
  octokit (4.21.0)
203
204
  faraday (>= 0.9)
204
205
  sawyer (~> 0.8.0, >= 0.5.3)
205
- os (1.1.1)
206
- parallel (1.20.1)
207
- parser (3.0.2.0)
206
+ os (1.1.4)
207
+ parallel (1.21.0)
208
+ parser (3.0.3.2)
208
209
  ast (~> 2.4.1)
209
210
  protocol-hpack (1.4.2)
210
211
  protocol-http (0.22.5)
@@ -215,7 +216,7 @@ GEM
215
216
  protocol-http (~> 0.18)
216
217
  public_suffix (4.0.6)
217
218
  raabro (1.4.0)
218
- racc (1.5.2)
219
+ racc (1.6.0)
219
220
  rack (2.2.3)
220
221
  rack-test (1.1.0)
221
222
  rack (>= 1.0, < 3)
@@ -247,7 +248,7 @@ GEM
247
248
  thor (>= 0.20.3, < 2.0)
248
249
  rainbow (3.0.0)
249
250
  rake (13.0.6)
250
- redis (4.4.0)
251
+ redis (4.5.1)
251
252
  retriable (3.1.2)
252
253
  rexml (3.2.5)
253
254
  rly (0.2.3)
@@ -272,7 +273,7 @@ GEM
272
273
  rspec-expectations (~> 3.10)
273
274
  rspec-mocks (~> 3.10)
274
275
  rspec-support (~> 3.10)
275
- rspec-support (3.10.2)
276
+ rspec-support (3.10.3)
276
277
  rubocop (0.76.0)
277
278
  jaro_winkler (~> 1.5.1)
278
279
  parallel (~> 1.10)
@@ -287,19 +288,19 @@ GEM
287
288
  sawyer (0.8.2)
288
289
  addressable (>= 2.3.5)
289
290
  faraday (> 0.8, < 2.0)
290
- semantic_logger (4.8.2)
291
+ semantic_logger (4.9.0)
291
292
  concurrent-ruby (~> 1.0)
292
- signet (0.15.0)
293
- addressable (~> 2.3)
293
+ signet (0.16.0)
294
+ addressable (~> 2.8)
294
295
  faraday (>= 0.17.3, < 2.0)
295
296
  jwt (>= 1.5, < 3.0)
296
297
  multi_json (~> 1.10)
297
298
  sprockets (4.0.2)
298
299
  concurrent-ruby (~> 1.0)
299
300
  rack (> 1, < 3)
300
- sprockets-rails (3.2.2)
301
- actionpack (>= 4.0)
302
- activesupport (>= 4.0)
301
+ sprockets-rails (3.4.2)
302
+ actionpack (>= 5.2)
303
+ activesupport (>= 5.2)
303
304
  sprockets (>= 3.0.0)
304
305
  sqlite3 (1.4.2)
305
306
  thor (1.1.0)
@@ -316,7 +317,7 @@ GEM
316
317
  websocket-driver (0.7.5)
317
318
  websocket-extensions (>= 0.1.0)
318
319
  websocket-extensions (0.1.5)
319
- zeitwerk (2.4.2)
320
+ zeitwerk (2.5.3)
320
321
 
321
322
  PLATFORMS
322
323
  ruby
@@ -69,7 +69,7 @@ module Cloudtasker
69
69
 
70
70
  # Process tasks
71
71
  while @threads[queue].count < max_threads && (task = Cloudtasker::Backend::RedisTask.pop(queue))
72
- @threads[queue] << Thread.new { process_task(task) }
72
+ @threads[queue] << Thread.new(task) { |t| process_task(t) }
73
73
  end
74
74
  end
75
75
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cloudtasker
4
- VERSION = '0.12.1'
4
+ VERSION = '0.12.2'
5
5
  end
@@ -361,7 +361,7 @@ module Cloudtasker
361
361
  # @return [Boolean] True if the arguments are missing.
362
362
  #
363
363
  def arguments_missing?
364
- job_args.empty? && [0, -1].exclude?(method(:perform).arity)
364
+ job_args.empty? && ![0, -1].include?(method(:perform).arity)
365
365
  end
366
366
 
367
367
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudtasker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.1
4
+ version: 0.12.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arnaud Lachaume
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-08-25 00:00:00.000000000 Z
11
+ date: 2021-12-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport