From ca0c8b568761a58087e84188574d5c60e284be22 Mon Sep 17 00:00:00 2001 From: phuong Date: Thu, 12 Feb 2026 16:10:02 +0900 Subject: [PATCH 1/2] [fix] remove exists --- lib/god/conditions/file_touched.rb | 2 +- lib/god/socket.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/god/conditions/file_touched.rb b/lib/god/conditions/file_touched.rb index 99cb609e..48186c5a 100644 --- a/lib/god/conditions/file_touched.rb +++ b/lib/god/conditions/file_touched.rb @@ -33,7 +33,7 @@ def valid? end def test - if File.exists?(self.path) + if File.exist?(self.path) (Time.now - File.mtime(self.path)) <= self.interval else false diff --git a/lib/god/socket.rb b/lib/god/socket.rb index 1eeeb42d..191bd484 100644 --- a/lib/god/socket.rb +++ b/lib/god/socket.rb @@ -93,7 +93,7 @@ def start end end - if File.exists?(self.socket_file) + if File.exist?(self.socket_file) if @user user_method = @user.is_a?(Integer) ? :getpwuid : :getpwnam uid = Etc.send(user_method, @user).uid From 36505d0201c4d0f84dfdc1d48cae15274f91e076 Mon Sep 17 00:00:00 2001 From: phuong Date: Thu, 12 Feb 2026 16:42:04 +0900 Subject: [PATCH 2/2] [fix] add require timeout --- lib/god/system/slash_proc_poller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/god/system/slash_proc_poller.rb b/lib/god/system/slash_proc_poller.rb index 59693cf9..60b7a5ba 100644 --- a/lib/god/system/slash_proc_poller.rb +++ b/lib/god/system/slash_proc_poller.rb @@ -1,3 +1,4 @@ +require 'timeout' module God module System class SlashProcPoller < PortablePoller