daemonite 0.5.3 → 0.5.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/daemonite.gemspec +1 -1
  3. data/lib/daemonite.rb +3 -3
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3b38490b5b0512257356f5a795ae21892db6f3908bc2dd574e8c892b6ceeb49e
4
- data.tar.gz: c2303181b47f5e2af0377c5237b0b802d12359767c77d28f115729d8b28cf344
3
+ metadata.gz: 7bf15c0fa4ea62517072d96d7b704f3f32d73ec3e8748d2adc78fc00eb272180
4
+ data.tar.gz: 15d7a4efb274e29458e5fb630d3c7660b8acc382773bfaad83176aa4861dc879
5
5
  SHA512:
6
- metadata.gz: c343e7e31472ee931a009fc0c15da8a48ebbd6285c30ef190cc5fa330712781a0bb652033ee043d6f0122fb531fea27d0be1571c6364d83bb69170120697f351
7
- data.tar.gz: bf82bbea8ff912c127d8b77e9b2ebf4435b330dcb66ca001df9816864f0f8addd148e18bd245908b8536eec6314be271429295cc80480ed4fe620ed544f088ed
6
+ metadata.gz: 130d13d883e9f6fb5b91a07c252f4e4bc97597f63bd230a030357a2aa3e60ba4ccf8a69b38cfa74682cd7d1f2d92ee9319bea6a86ab0ea876af9a84a817b2a4e
7
+ data.tar.gz: a81bedf2c961cdb865ea9ff9aa53e0aa2354dfbedeb4d672ad199de76a338b50fa6a92cf76299767662393301c7a6f6357f41feaa7065afdd6b9d464e782297a
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "daemonite"
3
- s.version = "0.5.3"
3
+ s.version = "0.5.4"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3.0"
6
6
  s.summary = "Daemonite - Process.daemon and argparse wrapper for loopies."
@@ -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.3
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-04-27 00:00:00.000000000 Z
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.