bluepill 0.0.55 → 0.0.56

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
14
14
  s.summary = %q{A process monitor written in Ruby with stability and minimalism in mind.}
15
15
  s.description = %q{Bluepill keeps your daemons up while taking up as little resources as possible. After all you probably want the resources of your server to be used by whatever daemons you are running rather than the thing that's supposed to make sure they are brought back up, should they die or misbehave.}
16
16
 
17
- s.add_dependency 'daemons', ['~> 1.1.4']
17
+ s.add_dependency 'daemons', ['~> 1.1.4', '<= 1.1.6']
18
18
  s.add_dependency 'state_machine', '~> 1.1.0'
19
19
  s.add_dependency 'activesupport', '>= 3.0.0'
20
20
  s.add_dependency 'i18n', '>= 0.5.0'
@@ -307,7 +307,7 @@ module Bluepill
307
307
  @threads << Thread.new(self, stop_signals.clone) do |process, stop_signals|
308
308
  signal = stop_signals.shift
309
309
  logger.info "Sending signal #{signal} to #{process.actual_pid}"
310
- process.signal_process(signal.upcase) # send first signal
310
+ process.signal_process(signal) # send first signal
311
311
 
312
312
  until stop_signals.empty?
313
313
  # we already checked to make sure stop_signals had an odd number of items
@@ -322,7 +322,7 @@ module Bluepill
322
322
  break
323
323
  end
324
324
  logger.info "Sending signal #{signal} to #{process.actual_pid}"
325
- process.signal_process(signal.upcase)
325
+ process.signal_process(signal)
326
326
  end
327
327
  end
328
328
  else
@@ -371,7 +371,7 @@ module Bluepill
371
371
  end
372
372
 
373
373
  def signal_process(code)
374
- ::Process.kill(code, actual_pid)
374
+ ::Process.kill(code.to_s.upcase, actual_pid)
375
375
  true
376
376
  rescue
377
377
  false
@@ -1,4 +1,4 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  module Bluepill
3
- VERSION = "0.0.55".freeze
3
+ VERSION = "0.0.56".freeze
4
4
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bluepill
3
3
  version: !ruby/object:Gem::Version
4
- hash: 113
4
+ hash: 111
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 55
10
- version: 0.0.55
9
+ - 56
10
+ version: 0.0.56
11
11
  platform: ruby
12
12
  authors:
13
13
  - Arya Asemanfar
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2012-02-07 00:00:00 +04:00
20
+ date: 2012-02-18 00:00:00 +04:00
21
21
  default_executable:
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
@@ -34,6 +34,14 @@ dependencies:
34
34
  - 1
35
35
  - 4
36
36
  version: 1.1.4
37
+ - - <=
38
+ - !ruby/object:Gem::Version
39
+ hash: 31
40
+ segments:
41
+ - 1
42
+ - 1
43
+ - 6
44
+ version: 1.1.6
37
45
  type: :runtime
38
46
  version_requirements: *id001
39
47
  - !ruby/object:Gem::Dependency