daemonizer 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.
- data/VERSION +1 -1
- data/daemonizer.gemspec +1 -1
- data/lib/daemonizer/config.rb +0 -9
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.7
|
data/daemonizer.gemspec
CHANGED
data/lib/daemonizer/config.rb
CHANGED
@@ -54,7 +54,6 @@ module Daemonizer
|
|
54
54
|
raise ConfigError, "Handler should respond to :after_init" unless @options[:handler].public_instance_methods.include?('after_init')
|
55
55
|
raise ConfigError, "Handler set. Don't use :after_init and :before init in Demfile" if @options[:before_init] || @options[:after_init]
|
56
56
|
else
|
57
|
-
raise ConfigError, "set_option can be used only with handler" if @options[:handler_options].any?
|
58
57
|
if @options[:before_init]
|
59
58
|
raise ConfigError, "before_init should have block" unless @options[:before_init].is_a?(Proc)
|
60
59
|
end
|
@@ -68,14 +67,6 @@ module Daemonizer
|
|
68
67
|
@options[method.to_sym]
|
69
68
|
end
|
70
69
|
end
|
71
|
-
|
72
|
-
def before_init
|
73
|
-
@handler.method(:before_init)
|
74
|
-
end
|
75
|
-
|
76
|
-
def after_init
|
77
|
-
@handler.method(:after_init)
|
78
|
-
end
|
79
70
|
|
80
71
|
[:log_file, :pid_file].each do |method|
|
81
72
|
define_method method do
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: daemonizer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 7
|
10
|
+
version: 0.0.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Gleb Pomykalov
|