crono 0.8.6.pre → 0.8.7.pre

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
  SHA1:
3
- metadata.gz: be29ba1f77be7b2a7e34adc2f5992cb9d089ab02
4
- data.tar.gz: 07e04cc2905f189ab7fbe5476b35baae88cd87d6
3
+ metadata.gz: 2aba8e6d1336334c7705b1849e0627afb048f3aa
4
+ data.tar.gz: 0bbb66243e43eebb3bff785759c9b644f94e6883
5
5
  SHA512:
6
- metadata.gz: 83e0d5819ca476cc01efeec03b2f6744faa4501d9d0aef519776691796544e707241df2ec336348a7e8a4dc1531f254acc0b8e36a703fff9b3050613abe9d7a6
7
- data.tar.gz: 12b9f8590c609f441829feb50be8c20e94f7de36298bf7563c3461e069b221f6bb13435210147cef80c96f64d2b503b2829c87953b26ecf9010d1e4973a42ec3
6
+ metadata.gz: 7327585dd13c2f2b996d7caaa232d36154b0fde0944655d7b19e31234753f12f88beea3c7a5eb6292bd69c95bd95aff439cf090a4da37bc051841ea57483e591
7
+ data.tar.gz: 9dc8f836867c3b5dbfce6b06cdfb5abf9d40d57e89465bc22a59f4d3f7ed427aad05bbde875d942c0d20779bd20879d269d1d0de75f88440733622ff751927ea
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- crono (0.8.6.pre)
4
+ crono (0.8.7.pre)
5
5
  activejob (~> 4.0)
6
6
  activerecord (~> 4.0)
7
7
  activesupport (~> 4.0)
@@ -82,7 +82,7 @@ module Crono
82
82
  def start_working_loop
83
83
  loop do
84
84
  next_time, jobs = Crono.scheduler.next_jobs
85
- sleep(next_time - Time.now)
85
+ sleep(next_time - Time.now) if next_time > Time.now
86
86
  jobs.each(&:perform)
87
87
  end
88
88
  end
@@ -1,3 +1,3 @@
1
1
  module Crono
2
- VERSION = '0.8.6.pre'
2
+ VERSION = '0.8.7.pre'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crono
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.6.pre
4
+ version: 0.8.7.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dzmitry Plashchynski