zscheduler 0.0.2 → 0.0.3

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.
@@ -1,3 +1,3 @@
1
1
  module Zscheduler
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/lib/zscheduler.rb CHANGED
@@ -9,7 +9,7 @@ module Zscheduler
9
9
 
10
10
  reactor_running? or start_reactor
11
11
 
12
- add_shutdown_hook block if options[:on_shutdown]
12
+ add_shutdown_hook &block if options[:on_shutdown]
13
13
  block.call if options[:immediately]
14
14
 
15
15
  timers.push EM::PeriodicTimer.new(Integer frequency) do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zscheduler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: