angels 0.0.6 → 0.0.7

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 (3) hide show
  1. data/lib/angels/version.rb +1 -1
  2. data/lib/angels.rb +2 -2
  3. metadata +2 -2
@@ -1,3 +1,3 @@
1
1
  module Angels
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
data/lib/angels.rb CHANGED
@@ -12,7 +12,7 @@ module Angels
12
12
  :rails_root => File.join(caller_dir, '..'),
13
13
  :load_rails => false,
14
14
  :pid_dir => File.join(caller_dir, '..', 'tmp'),
15
- :default_env => 'production'
15
+ :default_env => 'production',
16
16
  }.merge(opts)
17
17
 
18
18
  Daemons.run_proc(name, :dir_mode => :normal, :dir => opts[:pid_dir]) do
@@ -27,7 +27,7 @@ module Angels
27
27
  sleep opts[:loop_sleep]
28
28
  rescue SignalException, Interrupt; SystemExit; Process.exit
29
29
  rescue => e
30
- HoptoadNotifier.notify(e) if defined? HoptoadNotifier
30
+ opts[:exception_handler].try(:call, e)
31
31
  raise e unless opts[:retry]
32
32
  sleep opts[:retry_sleep]
33
33
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 6
9
- version: 0.0.6
8
+ - 7
9
+ version: 0.0.7
10
10
  platform: ruby
11
11
  authors:
12
12
  - Peder Linder