dyoder-hive 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/hive/scheduler.rb +2 -1
  2. metadata +2 -2
@@ -24,7 +24,8 @@ module Hive
24
24
  t = Time.now
25
25
  loop do
26
26
  t += 60
27
- sleep( ( options[:interval] || ( t - Time.now ) ).to_i )
27
+ # the rescue handles the unusual case where t - Time.now is negative
28
+ sleep( ( options[:interval] || ( t - Time.now ) ).to_i ) rescue nil
28
29
  if match( t, options )
29
30
  if self.respond_to?( method )
30
31
  Thread.new do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dyoder-hive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Yoder
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-06-06 00:00:00 -07:00
12
+ date: 2009-06-08 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency