inst-jobs 3.1.0 → 3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/delayed/lifecycle.rb +1 -1
- data/lib/delayed/version.rb +1 -1
- data/spec/shared/shared_backend.rb +5 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ea5fb9db3338718560d2107fd348ca95077e2b1f98490d33a8f61ecf686d7dd
|
4
|
+
data.tar.gz: 17ae33dac196625a7d194c51b609f1c7e98b6ce8917898b2a03b283b9784c96c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20ad04cef57908281160729d47e4e9ae0a86b2c75c7200cdb0467c23b69dd32d634b1f6c886cda42209d1a2f794acf2461f0b69f82f4fe8571a999c93b35f277
|
7
|
+
data.tar.gz: 874f268caddfa09f160dd3eb05fa7d9be3d04fb667e23da32d6cce5901d6e45321e203db83830ad4d40986119656453b9e63f3da65f654f302150a4c95286fb6
|
data/lib/delayed/lifecycle.rb
CHANGED
data/lib/delayed/version.rb
CHANGED
@@ -37,18 +37,19 @@ shared_examples_for "a backend" do
|
|
37
37
|
|
38
38
|
it "triggers the lifecycle event around the create" do
|
39
39
|
called = false
|
40
|
-
|
40
|
+
created_job = nil
|
41
41
|
|
42
|
-
Delayed::Worker.lifecycle.after(:create) do |
|
42
|
+
Delayed::Worker.lifecycle.after(:create) do |_, result:|
|
43
43
|
called = true
|
44
|
-
|
44
|
+
created_job = result
|
45
45
|
end
|
46
46
|
|
47
47
|
job = SimpleJob.new
|
48
48
|
Delayed::Job.enqueue(job)
|
49
49
|
|
50
50
|
expect(called).to be_truthy
|
51
|
-
expect(
|
51
|
+
expect(created_job).to be_kind_of Delayed::Job
|
52
|
+
expect(created_job.tag).to eq "SimpleJob#perform"
|
52
53
|
end
|
53
54
|
|
54
55
|
it "is able to set priority when enqueuing items" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inst-jobs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cody Cutrer
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2022-05-
|
13
|
+
date: 2022-05-12 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activerecord
|