bluepill-rwgps 0.0.61 → 0.0.63

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 8d57ee7d30f161daceec67fe50db4dd7ba6cff44
4
- data.tar.gz: 3f0313334949f4a6454e1665e365a2c0364d1864
2
+ SHA256:
3
+ metadata.gz: 067eae21ee151f3e19ff04a12f59ce6307975b361c61aa04ca524d1082cab59a
4
+ data.tar.gz: 42d85c2c5c67852755933563990d62bbafb1361bd1fcfd98647dc699b7524e3f
5
5
  SHA512:
6
- metadata.gz: 9f1a70513d3a887c6d656247986c66285173c5eccf2e87383a53a52218d8d570569d926e418a331ab053f515346f732f8b8cfe924f39ebaedab647e2df7cac40
7
- data.tar.gz: 423f17b9814a187dc0cbc685e595cd0f1952058242824f2b6ee96e55564baea001095919b303b193f913d1a663ffd3acc3172d66f730370120080604e2456110
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.exists?(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'])
@@ -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', ['>= 3', '<= 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'
@@ -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.exists?(self.pid_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.exists?(self.pids_dir)
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.exists?(self.pid_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
@@ -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.exists?(pid_file)
94
- File.unlink(sock_file) if File.exists?(sock_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.exists?(pid_file) && File.read(pid_file).to_i
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.exists?(dir)
106
+ FileUtils.mkdir_p(dir) unless File.exist?(dir)
107
107
  end
108
108
  end
109
109
 
@@ -91,7 +91,7 @@ module Bluepill
91
91
  end
92
92
  else
93
93
  delay = s_or_d
94
- unless delay.is_a? Fixnum
94
+ unless delay.is_a? Integer
95
95
  $stderr.puts "Config Error: Invalid stop_signals! Expected a number (delay) at position #{i} instead of '#{delay}'."
96
96
  exit(6)
97
97
  end
@@ -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.exists?(pid_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.exists?(pid_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 Fixnum then Net::HTTPResponse::CODE_TO_OBJ[options[:kind].to_s]
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
@@ -1,4 +1,4 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  module Bluepill
3
- VERSION = "0.0.61".freeze
3
+ VERSION = "0.0.63".freeze
4
4
  end
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.exists?(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.61
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: 2017-05-15 00:00:00.000000000 Z
14
+ date: 2024-10-21 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: daemons
@@ -45,22 +45,16 @@ dependencies:
45
45
  name: activesupport
46
46
  requirement: !ruby/object:Gem::Requirement
47
47
  requirements:
48
- - - ">="
49
- - !ruby/object:Gem::Version
50
- version: '3'
51
- - - "<="
48
+ - - "~>"
52
49
  - !ruby/object:Gem::Version
53
- version: '4.2'
50
+ version: 4.2.8
54
51
  type: :runtime
55
52
  prerelease: false
56
53
  version_requirements: !ruby/object:Gem::Requirement
57
54
  requirements:
58
- - - ">="
59
- - !ruby/object:Gem::Version
60
- version: '3'
61
- - - "<="
55
+ - - "~>"
62
56
  - !ruby/object:Gem::Version
63
- version: '4.2'
57
+ version: 4.2.8
64
58
  - !ruby/object:Gem::Dependency
65
59
  name: i18n
66
60
  requirement: !ruby/object:Gem::Requirement
@@ -236,7 +230,7 @@ files:
236
230
  homepage: http://github.com/kingcu/bluepill-rwgps
237
231
  licenses: []
238
232
  metadata: {}
239
- post_install_message:
233
+ post_install_message:
240
234
  rdoc_options: []
241
235
  require_paths:
242
236
  - lib
@@ -251,14 +245,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
251
245
  - !ruby/object:Gem::Version
252
246
  version: '0'
253
247
  requirements: []
254
- rubyforge_project:
255
- rubygems_version: 2.6.6
256
- signing_key:
248
+ rubygems_version: 3.4.20
249
+ signing_key:
257
250
  specification_version: 4
258
251
  summary: Fork of bluepill process monitory, reverting back to stable code with no
259
252
  global PID journal.
260
- test_files:
261
- - spec/lib/bluepill/logger_spec.rb
262
- - spec/lib/bluepill/process_statistics_spec.rb
263
- - spec/lib/bluepill/system_spec.rb
264
- - spec/spec_helper.rb
253
+ test_files: []