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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0338f082bb3d8bd8296112cb3dd7d39c5d4a4ad42296d07e22d3d9697641dd7d'
4
- data.tar.gz: 2141b5061e74ad4b4b3e6e6d95a9a65124fc42cf7cc03106f478e8133c2a5748
3
+ metadata.gz: 438d235a0e744da0dbddf380bb9faeb2b53806b63f86b9a2097821ab3fc7d54a
4
+ data.tar.gz: 643996efa46db8ac41d16eb23968cee40647ec049fc3a852d2c2387ca7bc1693
5
5
  SHA512:
6
- metadata.gz: 07f545138645e66fb211207c228f101ace34992dc9e6d47c1ce6994ea1d7fd3cfbf05f7c761c41d823313920e389005dc793ea586ec2d216cd976e1014c3971d
7
- data.tar.gz: 61cc2f41cf1cf3de5a5856245072ec044fcddc0178cd816a2bbb270c439fc5eda8ee893afcb3ac20e22df7d7c0ba692e300ebc1b9dde2a997d20e88831f715de
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AeActiveJobState
4
- VERSION = '1.0.0'
4
+ VERSION = '1.0.1'
5
5
  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.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-04-23 00:00:00.000000000 Z
11
+ date: 2021-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aasm