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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: cd88e3c9a9c743485089d3d1e1ac1af8a81a5522
4
- data.tar.gz: 5e261173a39adfed45503467a0a01a77b52e3966
2
+ SHA256:
3
+ metadata.gz: 067eae21ee151f3e19ff04a12f59ce6307975b361c61aa04ca524d1082cab59a
4
+ data.tar.gz: 42d85c2c5c67852755933563990d62bbafb1361bd1fcfd98647dc699b7524e3f
5
5
  SHA512:
6
- metadata.gz: 84d44463c912ce44a928bbeca05d1836a57bf61646641fb70aa66548d759151b7a7e2f01e3d0cf8248ea0b9532879019152eeae2ddd266a80cee9552ae415636
7
- data.tar.gz: 90bfb63e5fd2709282780c4b291d1c7587d47ff78972b0d0dcac8ba77a48f40a8366129ef6f2c4e21034522bfac9e62fb8031042df1fc7aaa765248b6c7db1ab
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', '4.2.11'
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.62".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.62
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: 2019-07-01 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,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.11
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.11
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
- rubyforge_project:
249
- rubygems_version: 2.5.2.1
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.