herpes 0.0.2.2 → 0.0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/herpes/version.rb +1 -1
  2. data/lib/herpes.rb +2 -8
  3. metadata +4 -4
@@ -10,6 +10,6 @@
10
10
 
11
11
  class Herpes
12
12
  def self.version
13
- '0.0.2.2'
13
+ '0.0.2.3'
14
14
  end
15
15
  end
data/lib/herpes.rb CHANGED
@@ -249,19 +249,13 @@ class Herpes
249
249
  @running = true
250
250
 
251
251
  while running?
252
- begin
253
- sleep until_next
254
- rescue Interrupt
255
- break
256
- end
252
+ sleep until_next or break
257
253
 
258
254
  @callbacks.select {|callback|
259
- callback.next_in <= 0
255
+ callback.next_in <= 0 && !(callback.gonna_call? || callback.calling?)
260
256
  }.each {|callback|
261
257
  @callbacks.delete(callback) if callback.one_shot?
262
258
 
263
- next if callback.gonna_call? or callback.calling?
264
-
265
259
  callback.gonna_call!
266
260
 
267
261
  process {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: herpes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2.2
4
+ version: 0.0.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-12-05 00:00:00.000000000Z
12
+ date: 2011-12-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: threadpool
16
- requirement: &19298820 !ruby/object:Gem::Requirement
16
+ requirement: &9418280 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *19298820
24
+ version_requirements: *9418280
25
25
  description:
26
26
  email: meh@paranoici.org
27
27
  executables: