tanga_que_extensions 0.0.15 → 0.0.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/periodic_job.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e861756f6a1f5e6d147072c59a1a0679f926b82d
|
4
|
+
data.tar.gz: 75ca3cec4029c8941a89a02c118d67dbea9bfd03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd34bf0a467fb9e27ade5e86bb86cc248d0850e70269cfae158170f2b7f255d70fe430e1f84a2054f3ef81aab4907f509e380542c26d2eace727170b05c7807d
|
7
|
+
data.tar.gz: 5760a93129e8a927dc61a83eb55c83e8309170c2fa951c6243e7cc74a6b4db5b11d4a24b3ee53e4bd5a7a5c25df6c65a92a5ae649caf001bc281873ba83f7f80
|
data/lib/periodic_job.rb
CHANGED
@@ -13,11 +13,11 @@ class Que::PeriodicJob < Que::Job
|
|
13
13
|
@start_at = Time.parse(start_at)
|
14
14
|
@end_at = Time.parse(end_at)
|
15
15
|
else
|
16
|
-
@start_at = Time.current
|
17
|
-
@end_at =
|
16
|
+
@start_at = Time.current - self.class::INTERVAL
|
17
|
+
@end_at = Time.current
|
18
18
|
end
|
19
19
|
|
20
|
-
@end_at = Time.
|
20
|
+
@end_at = Time.current if self.class::RESET_INTERVALS
|
21
21
|
|
22
22
|
@run_again_at = @end_at
|
23
23
|
@time_range = @start_at...@end_at
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tanga_que_extensions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joe Van Dyk
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: que
|