bluepill 0.0.58 → 0.0.59
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/bluepill/process.rb +4 -2
- data/lib/bluepill/version.rb +1 -1
- metadata +24 -24
data/lib/bluepill/process.rb
CHANGED
@@ -367,9 +367,11 @@ module Bluepill
|
|
367
367
|
end
|
368
368
|
|
369
369
|
def signal_process(code)
|
370
|
-
|
370
|
+
code = code.to_s.upcase if code.is_a?(String)
|
371
|
+
::Process.kill(code, actual_pid)
|
371
372
|
true
|
372
|
-
rescue
|
373
|
+
rescue Exception => e
|
374
|
+
logger.err "Failed to signal process #{actual_pid} with code #{code}: #{e}"
|
373
375
|
false
|
374
376
|
end
|
375
377
|
|
data/lib/bluepill/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bluepill
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.59
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,11 +11,11 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2012-02-
|
14
|
+
date: 2012-02-27 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: daemons
|
18
|
-
requirement: &
|
18
|
+
requirement: &2157734420 !ruby/object:Gem::Requirement
|
19
19
|
none: false
|
20
20
|
requirements:
|
21
21
|
- - ~>
|
@@ -26,10 +26,10 @@ dependencies:
|
|
26
26
|
version: 1.1.6
|
27
27
|
type: :runtime
|
28
28
|
prerelease: false
|
29
|
-
version_requirements: *
|
29
|
+
version_requirements: *2157734420
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: state_machine
|
32
|
-
requirement: &
|
32
|
+
requirement: &2157733680 !ruby/object:Gem::Requirement
|
33
33
|
none: false
|
34
34
|
requirements:
|
35
35
|
- - ~>
|
@@ -37,10 +37,10 @@ dependencies:
|
|
37
37
|
version: 1.1.0
|
38
38
|
type: :runtime
|
39
39
|
prerelease: false
|
40
|
-
version_requirements: *
|
40
|
+
version_requirements: *2157733680
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: activesupport
|
43
|
-
requirement: &
|
43
|
+
requirement: &2157733220 !ruby/object:Gem::Requirement
|
44
44
|
none: false
|
45
45
|
requirements:
|
46
46
|
- - ! '>='
|
@@ -48,10 +48,10 @@ dependencies:
|
|
48
48
|
version: 3.0.0
|
49
49
|
type: :runtime
|
50
50
|
prerelease: false
|
51
|
-
version_requirements: *
|
51
|
+
version_requirements: *2157733220
|
52
52
|
- !ruby/object:Gem::Dependency
|
53
53
|
name: i18n
|
54
|
-
requirement: &
|
54
|
+
requirement: &2157732760 !ruby/object:Gem::Requirement
|
55
55
|
none: false
|
56
56
|
requirements:
|
57
57
|
- - ! '>='
|
@@ -59,10 +59,10 @@ dependencies:
|
|
59
59
|
version: 0.5.0
|
60
60
|
type: :runtime
|
61
61
|
prerelease: false
|
62
|
-
version_requirements: *
|
62
|
+
version_requirements: *2157732760
|
63
63
|
- !ruby/object:Gem::Dependency
|
64
64
|
name: bundler
|
65
|
-
requirement: &
|
65
|
+
requirement: &2152379080 !ruby/object:Gem::Requirement
|
66
66
|
none: false
|
67
67
|
requirements:
|
68
68
|
- - ! '>='
|
@@ -70,10 +70,10 @@ dependencies:
|
|
70
70
|
version: 1.0.10
|
71
71
|
type: :development
|
72
72
|
prerelease: false
|
73
|
-
version_requirements: *
|
73
|
+
version_requirements: *2152379080
|
74
74
|
- !ruby/object:Gem::Dependency
|
75
75
|
name: rake
|
76
|
-
requirement: &
|
76
|
+
requirement: &2157767060 !ruby/object:Gem::Requirement
|
77
77
|
none: false
|
78
78
|
requirements:
|
79
79
|
- - ! '!='
|
@@ -81,10 +81,10 @@ dependencies:
|
|
81
81
|
version: 0.9.0
|
82
82
|
type: :development
|
83
83
|
prerelease: false
|
84
|
-
version_requirements: *
|
84
|
+
version_requirements: *2157767060
|
85
85
|
- !ruby/object:Gem::Dependency
|
86
86
|
name: rspec-core
|
87
|
-
requirement: &
|
87
|
+
requirement: &2157766600 !ruby/object:Gem::Requirement
|
88
88
|
none: false
|
89
89
|
requirements:
|
90
90
|
- - ~>
|
@@ -92,10 +92,10 @@ dependencies:
|
|
92
92
|
version: '2.0'
|
93
93
|
type: :development
|
94
94
|
prerelease: false
|
95
|
-
version_requirements: *
|
95
|
+
version_requirements: *2157766600
|
96
96
|
- !ruby/object:Gem::Dependency
|
97
97
|
name: rspec-expectations
|
98
|
-
requirement: &
|
98
|
+
requirement: &2157766140 !ruby/object:Gem::Requirement
|
99
99
|
none: false
|
100
100
|
requirements:
|
101
101
|
- - ~>
|
@@ -103,10 +103,10 @@ dependencies:
|
|
103
103
|
version: '2.0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
|
-
version_requirements: *
|
106
|
+
version_requirements: *2157766140
|
107
107
|
- !ruby/object:Gem::Dependency
|
108
108
|
name: rr
|
109
|
-
requirement: &
|
109
|
+
requirement: &2157765680 !ruby/object:Gem::Requirement
|
110
110
|
none: false
|
111
111
|
requirements:
|
112
112
|
- - ~>
|
@@ -114,10 +114,10 @@ dependencies:
|
|
114
114
|
version: '1.0'
|
115
115
|
type: :development
|
116
116
|
prerelease: false
|
117
|
-
version_requirements: *
|
117
|
+
version_requirements: *2157765680
|
118
118
|
- !ruby/object:Gem::Dependency
|
119
119
|
name: faker
|
120
|
-
requirement: &
|
120
|
+
requirement: &2157765220 !ruby/object:Gem::Requirement
|
121
121
|
none: false
|
122
122
|
requirements:
|
123
123
|
- - ~>
|
@@ -125,10 +125,10 @@ dependencies:
|
|
125
125
|
version: '0.9'
|
126
126
|
type: :development
|
127
127
|
prerelease: false
|
128
|
-
version_requirements: *
|
128
|
+
version_requirements: *2157765220
|
129
129
|
- !ruby/object:Gem::Dependency
|
130
130
|
name: yard
|
131
|
-
requirement: &
|
131
|
+
requirement: &2157764760 !ruby/object:Gem::Requirement
|
132
132
|
none: false
|
133
133
|
requirements:
|
134
134
|
- - ~>
|
@@ -136,7 +136,7 @@ dependencies:
|
|
136
136
|
version: '0.7'
|
137
137
|
type: :development
|
138
138
|
prerelease: false
|
139
|
-
version_requirements: *
|
139
|
+
version_requirements: *2157764760
|
140
140
|
description: Bluepill keeps your daemons up while taking up as little resources as
|
141
141
|
possible. After all you probably want the resources of your server to be used by
|
142
142
|
whatever daemons you are running rather than the thing that's supposed to make sure
|