ae_active_job_state 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ae_active_job_state/job_state.rb +3 -6
- data/lib/ae_active_job_state/version.rb +1 -1
- 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: 438d235a0e744da0dbddf380bb9faeb2b53806b63f86b9a2097821ab3fc7d54a
|
4
|
+
data.tar.gz: 643996efa46db8ac41d16eb23968cee40647ec049fc3a852d2c2387ca7bc1693
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e1db6a2606eea617018f21e00294fcc4f04f9389d1ec0d66d303c2922cf2b9db0db254532667c1eae3cdd14b9658366462bc59ef5b79827b87382cc0ed71c3b
|
7
|
+
data.tar.gz: a2d8f37f0b39ec5c2771d30b1bc3260db7dbe7090d3a8818fcc5b04bee4d8d3a92e738cb57ac910e45cee148a8c42150439460a686b0e352ff5f0cfc9216f3ba
|
@@ -15,18 +15,15 @@ module AeActiveJobState
|
|
15
15
|
state :failed
|
16
16
|
|
17
17
|
event :running do
|
18
|
-
transitions to: :running
|
19
|
-
after { update!(started_at: Time.now) }
|
18
|
+
transitions to: :running, after: -> { self.started_at = Time.now }
|
20
19
|
end
|
21
20
|
|
22
21
|
event :failed do
|
23
|
-
transitions to: :failed
|
24
|
-
after { update!(failed_at: Time.now) }
|
22
|
+
transitions to: :failed, after: -> { self.failed_at = Time.now }
|
25
23
|
end
|
26
24
|
|
27
25
|
event :finished do
|
28
|
-
transitions to: :finished
|
29
|
-
after { update!(finished_at: Time.now) }
|
26
|
+
transitions to: :finished, after: -> { self.finished_at = Time.now }
|
30
27
|
end
|
31
28
|
end
|
32
29
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ae_active_job_state
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- AppFolio
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aasm
|