bluepill-rwgps 0.0.62 → 0.0.63
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/bin/bluepill +1 -1
- data/bluepill-rwgps.gemspec +1 -1
- data/lib/bluepill/application.rb +3 -3
- data/lib/bluepill/controller.rb +4 -4
- data/lib/bluepill/dsl/process_factory.rb +1 -1
- data/lib/bluepill/process.rb +2 -2
- data/lib/bluepill/process_conditions/http.rb +1 -1
- data/lib/bluepill/version.rb +1 -1
- data/local-bluepill +1 -1
- metadata +10 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 067eae21ee151f3e19ff04a12f59ce6307975b361c61aa04ca524d1082cab59a
|
4
|
+
data.tar.gz: 42d85c2c5c67852755933563990d62bbafb1361bd1fcfd98647dc699b7524e3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f93737cb7f557e656bda8cf28250fd8c5c0080842c5001edf1898a5d483681ac25eee2b481d88879f644703a66d2597210197bcf5ad21c536c94480fc08a27a
|
7
|
+
data.tar.gz: 55ebf4b44d9c562e3ff03a62393bb485658ac833e77520797b93ae53e09d3fcdd266d5575a4bdbe938aa91dd8fe9f73d259c83686f5b8764337844c68fbe1301
|
data/bin/bluepill
CHANGED
@@ -105,7 +105,7 @@ options[:command] = ARGV.shift
|
|
105
105
|
|
106
106
|
if options[:command] == "load"
|
107
107
|
file = ARGV.shift
|
108
|
-
if File.
|
108
|
+
if File.exist?(file)
|
109
109
|
# Restart the ruby interpreter for the config file so that anything loaded here
|
110
110
|
# does not stay in memory for the daemon
|
111
111
|
ruby = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name'])
|
data/bluepill-rwgps.gemspec
CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
|
|
16
16
|
|
17
17
|
s.add_dependency 'daemons', ['~> 1.1.4']
|
18
18
|
s.add_dependency 'state_machine', '~> 1.1.0'
|
19
|
-
s.add_dependency 'activesupport', '4.2.
|
19
|
+
s.add_dependency 'activesupport', '~> 4.2.8'
|
20
20
|
s.add_dependency 'i18n', '>= 0.5.0'
|
21
21
|
|
22
22
|
s.add_development_dependency 'bundler', '>= 1.0.10'
|
data/lib/bluepill/application.rb
CHANGED
@@ -147,7 +147,7 @@ module Bluepill
|
|
147
147
|
|
148
148
|
def cleanup
|
149
149
|
File.unlink(self.socket.path) if self.socket
|
150
|
-
File.unlink(self.pid_file) if File.
|
150
|
+
File.unlink(self.pid_file) if File.exist?(self.pid_file)
|
151
151
|
end
|
152
152
|
|
153
153
|
def setup_signal_traps
|
@@ -165,14 +165,14 @@ module Bluepill
|
|
165
165
|
end
|
166
166
|
|
167
167
|
def setup_pids_dir
|
168
|
-
FileUtils.mkdir_p(self.pids_dir) unless File.
|
168
|
+
FileUtils.mkdir_p(self.pids_dir) unless File.exist?(self.pids_dir)
|
169
169
|
# we need everybody to be able to write to the pids_dir as processes managed by
|
170
170
|
# bluepill will be writing to this dir after they've dropped privileges
|
171
171
|
FileUtils.chmod(0777, self.pids_dir)
|
172
172
|
end
|
173
173
|
|
174
174
|
def kill_previous_bluepill
|
175
|
-
if File.
|
175
|
+
if File.exist?(self.pid_file)
|
176
176
|
previous_pid = File.read(self.pid_file).to_i
|
177
177
|
if System.pid_alive?(previous_pid)
|
178
178
|
begin
|
data/lib/bluepill/controller.rb
CHANGED
@@ -90,20 +90,20 @@ module Bluepill
|
|
90
90
|
if !pid || !System.pid_alive?(pid)
|
91
91
|
pid_file = File.join(self.pids_dir, "#{app}.pid")
|
92
92
|
sock_file = File.join(self.sockets_dir, "#{app}.sock")
|
93
|
-
File.unlink(pid_file) if File.
|
94
|
-
File.unlink(sock_file) if File.
|
93
|
+
File.unlink(pid_file) if File.exist?(pid_file)
|
94
|
+
File.unlink(sock_file) if File.exist?(sock_file)
|
95
95
|
end
|
96
96
|
end
|
97
97
|
end
|
98
98
|
|
99
99
|
def pid_for(app)
|
100
100
|
pid_file = File.join(self.pids_dir, "#{app}.pid")
|
101
|
-
File.
|
101
|
+
File.exist?(pid_file) && File.read(pid_file).to_i
|
102
102
|
end
|
103
103
|
|
104
104
|
def setup_dir_structure
|
105
105
|
[@sockets_dir, @pids_dir].each do |dir|
|
106
|
-
FileUtils.mkdir_p(dir) unless File.
|
106
|
+
FileUtils.mkdir_p(dir) unless File.exist?(dir)
|
107
107
|
end
|
108
108
|
end
|
109
109
|
|
data/lib/bluepill/process.rb
CHANGED
@@ -397,7 +397,7 @@ module Bluepill
|
|
397
397
|
return @actual_pid if cache_actual_pid? && @actual_pid
|
398
398
|
@actual_pid = begin
|
399
399
|
if pid_file
|
400
|
-
if File.
|
400
|
+
if File.exist?(pid_file)
|
401
401
|
str = File.read(pid_file)
|
402
402
|
str.to_i if str.size > 0
|
403
403
|
else
|
@@ -422,7 +422,7 @@ module Bluepill
|
|
422
422
|
end
|
423
423
|
|
424
424
|
def unlink_pid
|
425
|
-
File.unlink(pid_file) if pid_file && File.
|
425
|
+
File.unlink(pid_file) if pid_file && File.exist?(pid_file)
|
426
426
|
rescue Errno::ENOENT
|
427
427
|
end
|
428
428
|
|
@@ -8,7 +8,7 @@ module Bluepill
|
|
8
8
|
def initialize(options = {})
|
9
9
|
@uri = URI.parse(options[:url])
|
10
10
|
@kind = case options[:kind]
|
11
|
-
when
|
11
|
+
when Integer then Net::HTTPResponse::CODE_TO_OBJ[options[:kind].to_s]
|
12
12
|
when String, Symbol then Net.const_get("HTTP#{options[:kind].to_s.camelize}")
|
13
13
|
else
|
14
14
|
Net::HTTPSuccess
|
data/lib/bluepill/version.rb
CHANGED
data/local-bluepill
CHANGED
@@ -110,7 +110,7 @@ options[:command] = ARGV.shift
|
|
110
110
|
|
111
111
|
if options[:command] == "load"
|
112
112
|
file = ARGV.shift
|
113
|
-
if File.
|
113
|
+
if File.exist?(file)
|
114
114
|
# Restart the ruby interpreter for the config file so that anything loaded here
|
115
115
|
# does not stay in memory for the daemon
|
116
116
|
ruby = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name'])
|
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bluepill-rwgps
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.63
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cullen King
|
8
8
|
- Arya Asemanfar
|
9
9
|
- Gary Tsang
|
10
10
|
- Rohith Ravi
|
11
|
-
autorequire:
|
11
|
+
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2024-10-21 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: daemons
|
@@ -45,16 +45,16 @@ dependencies:
|
|
45
45
|
name: activesupport
|
46
46
|
requirement: !ruby/object:Gem::Requirement
|
47
47
|
requirements:
|
48
|
-
- -
|
48
|
+
- - "~>"
|
49
49
|
- !ruby/object:Gem::Version
|
50
|
-
version: 4.2.
|
50
|
+
version: 4.2.8
|
51
51
|
type: :runtime
|
52
52
|
prerelease: false
|
53
53
|
version_requirements: !ruby/object:Gem::Requirement
|
54
54
|
requirements:
|
55
|
-
- -
|
55
|
+
- - "~>"
|
56
56
|
- !ruby/object:Gem::Version
|
57
|
-
version: 4.2.
|
57
|
+
version: 4.2.8
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: i18n
|
60
60
|
requirement: !ruby/object:Gem::Requirement
|
@@ -230,7 +230,7 @@ files:
|
|
230
230
|
homepage: http://github.com/kingcu/bluepill-rwgps
|
231
231
|
licenses: []
|
232
232
|
metadata: {}
|
233
|
-
post_install_message:
|
233
|
+
post_install_message:
|
234
234
|
rdoc_options: []
|
235
235
|
require_paths:
|
236
236
|
- lib
|
@@ -245,9 +245,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
245
245
|
- !ruby/object:Gem::Version
|
246
246
|
version: '0'
|
247
247
|
requirements: []
|
248
|
-
|
249
|
-
|
250
|
-
signing_key:
|
248
|
+
rubygems_version: 3.4.20
|
249
|
+
signing_key:
|
251
250
|
specification_version: 4
|
252
251
|
summary: Fork of bluepill process monitory, reverting back to stable code with no
|
253
252
|
global PID journal.
|