daemonite 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/daemonite.gemspec +1 -1
- data/lib/daemonite.rb +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7bf15c0fa4ea62517072d96d7b704f3f32d73ec3e8748d2adc78fc00eb272180
|
4
|
+
data.tar.gz: 15d7a4efb274e29458e5fb630d3c7660b8acc382773bfaad83176aa4861dc879
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 130d13d883e9f6fb5b91a07c252f4e4bc97597f63bd230a030357a2aa3e60ba4ccf8a69b38cfa74682cd7d1f2d92ee9319bea6a86ab0ea876af9a84a817b2a4e
|
7
|
+
data.tar.gz: a81bedf2c961cdb865ea9ff9aa53e0aa2354dfbedeb4d672ad199de76a338b50fa6a92cf76299767662393301c7a6f6357f41feaa7065afdd6b9d464e782297a
|
data/daemonite.gemspec
CHANGED
data/lib/daemonite.rb
CHANGED
@@ -153,7 +153,7 @@ module Daemonism
|
|
153
153
|
Dir.chdir(opts[:basepath])
|
154
154
|
::Kernel::at_exit do
|
155
155
|
File.unlink(opts[:basepath] + '/' + opts[:pidfile])
|
156
|
-
@at_exit.call if @at_exit
|
156
|
+
@at_exit.call(opts) if @at_exit
|
157
157
|
end
|
158
158
|
end
|
159
159
|
end
|
@@ -193,7 +193,7 @@ class Daemonite
|
|
193
193
|
|
194
194
|
def go!
|
195
195
|
begin
|
196
|
-
@at_startup.call if @at_startup
|
196
|
+
@at_startup.call(@opts) if @at_startup
|
197
197
|
@opts[:block].call(@opts)
|
198
198
|
rescue SystemExit, Interrupt
|
199
199
|
puts "Server stopped due to interrupt (PID:#{Process.pid})"
|
@@ -204,7 +204,7 @@ class Daemonite
|
|
204
204
|
|
205
205
|
def loop!
|
206
206
|
begin
|
207
|
-
@at_startup.call if @at_startup
|
207
|
+
@at_startup.call(@opts) if @at_startup
|
208
208
|
loop do
|
209
209
|
@opts[:block].call(@opts)
|
210
210
|
end unless @opts[:block].nil?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: daemonite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juergen eTM Mangler
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Daemonite - Process.daemon and argparse wrapper for loopies.
|
14
14
|
email: juergen.mangler@gmail.com
|
@@ -45,7 +45,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
45
45
|
version: '0'
|
46
46
|
requirements: []
|
47
47
|
rubyforge_project:
|
48
|
-
rubygems_version: 2.7.6
|
48
|
+
rubygems_version: 2.7.6.2
|
49
49
|
signing_key:
|
50
50
|
specification_version: 4
|
51
51
|
summary: Daemonite - Process.daemon and argparse wrapper for loopies.
|