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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/periodic_job.rb +3 -3
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 084c5d21009e653b064bfadae6e378e9836ef094
4
- data.tar.gz: 60b1217de8030a6c4122753bd8cc421df7de6e26
3
+ metadata.gz: e861756f6a1f5e6d147072c59a1a0679f926b82d
4
+ data.tar.gz: 75ca3cec4029c8941a89a02c118d67dbea9bfd03
5
5
  SHA512:
6
- metadata.gz: 27cd5f08d8083890d2355b1c26f2ec09e86846673ea839c3d818fe5600d89bfdbaae0a12f7040e21c1b0138d3f49f033ec2eb9d294c360ec9e5d502f293b6f4f
7
- data.tar.gz: b897a53b33275bc68552993f600a171182c2a502d085b0bd2561c4a45344c37f7822e2288dfd2b141a53b9549e6f3cd1fe310e43795e95d5920122a9e0e52046
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 = @start_at + self.class::INTERVAL
16
+ @start_at = Time.current - self.class::INTERVAL
17
+ @end_at = Time.current
18
18
  end
19
19
 
20
- @end_at = Time.now if self.class::RESET_INTERVALS
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.15
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-08-22 00:00:00.000000000 Z
11
+ date: 2016-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: que