inst-jobs-statsd 1.4.1 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/inst_jobs_statsd/version.rb +1 -1
- data/spec/inst_jobs_statsd/stats/counters/failed_spec.rb +1 -1
- data/spec/inst_jobs_statsd/stats/counters/run_spec.rb +1 -1
- data/spec/inst_jobs_statsd/stats/periodic/failed_spec.rb +1 -1
- data/spec/inst_jobs_statsd/stats/periodic/queue_spec.rb +8 -8
- data/spec/inst_jobs_statsd/stats/periodic/run_spec.rb +4 -4
- data/spec/spec_helper.rb +1 -1
- metadata +11 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 792432d5ab16fd1e7cbf711085bb9067ff8e299526d2bd4be44fd35422d121a0
|
4
|
+
data.tar.gz: 3f1d439fc92c9dc54cea4001f56cce26c88bdc14b61cdf5c364b9f819dc9750c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4bfd22211bcec84a9caf210a68081b8a002a0011c1d9b232b4b4f0cd638506c98f601afce2f29274285761954fcab2ca143844cc195915f8b48d66376658639
|
7
|
+
data.tar.gz: 2113f8a57bfcb288688326f1f1569524a661998999ab85e5567289010b9c3a8ababd6648a375560218b9654a66525d9ffb995f1fa96d48c5f441bf740cc8ca7a
|
@@ -13,7 +13,7 @@ RSpec.describe InstJobsStatsd::Stats::Counters::Failed do
|
|
13
13
|
.with(array_including(/\.failed$/), 1, 1, { short_stat: :failed, tags: {} })
|
14
14
|
|
15
15
|
InstJobsStatsd::Stats::Counters::Failed.enable_failed_count
|
16
|
-
x.
|
16
|
+
x.delay.perform
|
17
17
|
Delayed::Job.first.fail!
|
18
18
|
end
|
19
19
|
end
|
@@ -18,12 +18,12 @@ RSpec.describe InstJobsStatsd::Stats::Periodic::Queue do
|
|
18
18
|
before do
|
19
19
|
InstJobsStatsd::Stats::Periodic::Queue.enable_queue_depth
|
20
20
|
|
21
|
-
x.
|
21
|
+
x.delay.perform
|
22
22
|
Delayed::Job.first.update(locked_at: Delayed::Job.db_time_now, locked_by: 'test')
|
23
23
|
|
24
|
-
x.
|
25
|
-
x.
|
26
|
-
x.
|
24
|
+
x.delay.perform
|
25
|
+
x.delay(run_at: now + 1.minute).perform
|
26
|
+
x.delay(run_at: now + 10.minutes).perform
|
27
27
|
end
|
28
28
|
|
29
29
|
it do
|
@@ -56,12 +56,12 @@ RSpec.describe InstJobsStatsd::Stats::Periodic::Queue do
|
|
56
56
|
before do
|
57
57
|
InstJobsStatsd::Stats::Periodic::Queue.enable_queue_age
|
58
58
|
|
59
|
-
x.
|
59
|
+
x.delay.perform
|
60
60
|
Delayed::Job.first.update(locked_at: Delayed::Job.db_time_now, locked_by: 'test')
|
61
61
|
|
62
|
-
x.
|
63
|
-
x.
|
64
|
-
x.
|
62
|
+
x.delay.perform
|
63
|
+
x.delay(run_at: now + 1.minute).perform
|
64
|
+
x.delay(run_at: now + 10.minutes).perform
|
65
65
|
end
|
66
66
|
|
67
67
|
it do
|
@@ -18,8 +18,8 @@ RSpec.describe InstJobsStatsd::Stats::Periodic::Run do
|
|
18
18
|
before do
|
19
19
|
InstJobsStatsd::Stats::Periodic::Run.enable_run_depth
|
20
20
|
|
21
|
-
x.
|
22
|
-
x.
|
21
|
+
x.delay.perform
|
22
|
+
x.delay.perform
|
23
23
|
Delayed::Job.first.update(locked_at: Delayed::Job.db_time_now, locked_by: 'test')
|
24
24
|
end
|
25
25
|
|
@@ -37,8 +37,8 @@ RSpec.describe InstJobsStatsd::Stats::Periodic::Run do
|
|
37
37
|
before do
|
38
38
|
InstJobsStatsd::Stats::Periodic::Run.enable_run_age
|
39
39
|
|
40
|
-
x.
|
41
|
-
x.
|
40
|
+
x.delay.perform
|
41
|
+
x.delay.perform
|
42
42
|
Delayed::Job.first.update(locked_at: now, locked_by: 'test')
|
43
43
|
end
|
44
44
|
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,35 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inst-jobs-statsd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Slade
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: inst-jobs
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0.15'
|
20
|
-
- - "<"
|
17
|
+
- - "~>"
|
21
18
|
- !ruby/object:Gem::Version
|
22
|
-
version: '0
|
19
|
+
version: '1.0'
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
|
-
- - "
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '0.15'
|
30
|
-
- - "<"
|
24
|
+
- - "~>"
|
31
25
|
- !ruby/object:Gem::Version
|
32
|
-
version: '0
|
26
|
+
version: '1.0'
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: inst_statsd
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -232,7 +226,7 @@ dependencies:
|
|
232
226
|
- - "~>"
|
233
227
|
- !ruby/object:Gem::Version
|
234
228
|
version: 1.4.0
|
235
|
-
description:
|
229
|
+
description:
|
236
230
|
email:
|
237
231
|
- jslade@instructure.com
|
238
232
|
executables: []
|
@@ -280,7 +274,7 @@ homepage: https://github.com/instructure/inst-jobs-statsd
|
|
280
274
|
licenses:
|
281
275
|
- MIT
|
282
276
|
metadata: {}
|
283
|
-
post_install_message:
|
277
|
+
post_install_message:
|
284
278
|
rdoc_options: []
|
285
279
|
require_paths:
|
286
280
|
- lib
|
@@ -295,8 +289,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
295
289
|
- !ruby/object:Gem::Version
|
296
290
|
version: '0'
|
297
291
|
requirements: []
|
298
|
-
rubygems_version: 3.
|
299
|
-
signing_key:
|
292
|
+
rubygems_version: 3.1.4
|
293
|
+
signing_key:
|
300
294
|
specification_version: 4
|
301
295
|
summary: Stats reporting for inst-jobs
|
302
296
|
test_files:
|