nestene 0.1.7 → 0.1.8

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: 824236695b21547b944d6f4ebcf834d427b174c2
4
- data.tar.gz: 16c06e622bafff2e3a9a78b1a9835f1aca7f9de1
3
+ metadata.gz: 938ed2d1190db863d92c9aa35032fd61a8fd44ef
4
+ data.tar.gz: 8248966bf22453f5f52354db1b690bb060ff395f
5
5
  SHA512:
6
- metadata.gz: 1e9d4afece015cd16229a37fd6456e30fb635a6cbf805f91cc715993c6f989d0868c5b3b74ffd5bcead9dcd01c8e8692eb79f3fca400ed225840c800a2e41763
7
- data.tar.gz: 64be1e9d894bd42d7d8f8d4c66ffe61f227c7346f7b97b1fa77ea55b21142b4c483001fa9f20d16d543ef1b8229c58be830f2dda8f7ae280c5def3432bbb4087
6
+ metadata.gz: 314b99703e79c4d56ecbca6e1fee5edd7fd2577d0c0c94160b000580e8c778224915330c8fb81d4b85982da5ba111dbffd6fe94ff7df8a3ecf8a9ded9e69b048
7
+ data.tar.gz: b9083b23f130cf11ce905101561e5ba52c0b3532fe1da4f7e9dc21fe4ea50f5eb28d994b785563c2e56b7aba073ea14002ae46a23201047dece9c92411c9860b
@@ -65,8 +65,12 @@ module Nestene
65
65
  end
66
66
 
67
67
  unless @schedule.empty?
68
- to_wait = @schedule.first[1].execute_at - now
69
- @timer = after(to_wait){async.schedule_methods}
68
+ if now >= @schedule.first[1].execute_at
69
+ async.schedule_methods
70
+ else
71
+ to_wait = @schedule.first[1].execute_at - now
72
+ @timer = after(to_wait){async.schedule_methods}
73
+ end
70
74
  end
71
75
 
72
76
  end
@@ -1,3 +1,3 @@
1
1
  module Nestene
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nestene
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dragan Milic