crono_trigger 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/crono_trigger/schedulable.rb +2 -2
- data/lib/crono_trigger/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: 8291c00c8a9dc2060ed8f3a20aff6702f6ca66e7249b312da85cbd974f04d53d
|
4
|
+
data.tar.gz: dbd1dd5716a3248ca338e678ec429962b14d59da9656070099789f8ede7dd317
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 133b4e3ed8bfe18df41c676cb454ac26a178676e2e814a889a44ace13988bac71df4b90768048185115f55d05f3e79441011cc1aa1f6d498ef8171b6e0b833b2
|
7
|
+
data.tar.gz: c1737966af7a2780436c1b30a87fe45c9c2af1f5a2ccbb9540e8e06c76cb1992088b8d66a0156003e58c575a1183905bae16752543912ba3c4848189b8d30949
|
@@ -56,7 +56,7 @@ module CronoTrigger
|
|
56
56
|
rel
|
57
57
|
end
|
58
58
|
|
59
|
-
before_create :
|
59
|
+
before_create :set_current_cycle_id
|
60
60
|
before_update :update_next_execute_at_if_update_cron
|
61
61
|
|
62
62
|
validate :validate_cron_format
|
@@ -305,7 +305,7 @@ module CronoTrigger
|
|
305
305
|
end
|
306
306
|
end
|
307
307
|
|
308
|
-
def
|
308
|
+
def set_current_cycle_id
|
309
309
|
if self.class.column_names.include?(crono_trigger_column_name(:current_cycle_id)) &&
|
310
310
|
self[crono_trigger_column_name(:current_cycle_id)].nil?
|
311
311
|
self[crono_trigger_column_name(:current_cycle_id)] = SecureRandom.uuid
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: crono_trigger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- joker1007
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-08-
|
11
|
+
date: 2020-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chrono
|