From 0e050a587e59a8a2a6d8f518570fe09d5613a798 Mon Sep 17 00:00:00 2001 From: Facundo Farias Date: Thu, 19 Feb 2026 09:35:23 +0100 Subject: [PATCH 1/2] fix: Update nio4r, timers, and rb-readline to support modern compilers nio4r 2.1.0 fails to compile with GCC 14 (shipped in Debian 13) because -Wincompatible-pointer-types is now treated as an error. Relax dependency pins to allow nio4r ~> 2.7, timers ~> 4.3, and rb-readline ~> 0.5. Co-Authored-By: Claude Opus 4.6 --- deploy-agent.gemspec | 6 +++--- lib/deploy_agent/agent.rb | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/deploy-agent.gemspec b/deploy-agent.gemspec index 7d8be37..037238b 100644 --- a/deploy-agent.gemspec +++ b/deploy-agent.gemspec @@ -15,7 +15,7 @@ Gem::Specification.new do |s| s.bindir = 'bin' s.executables << 'deploy-agent' - s.add_dependency 'nio4r', '2.1.0' - s.add_dependency 'rb-readline', '0.5.5' - s.add_dependency 'timers', '4.1.2' + s.add_dependency 'nio4r', '~> 2.7' + s.add_dependency 'rb-readline', '~> 0.5' + s.add_dependency 'timers', '~> 4.3' end diff --git a/lib/deploy_agent/agent.rb b/lib/deploy_agent/agent.rb index 2ef672f..4a408ff 100644 --- a/lib/deploy_agent/agent.rb +++ b/lib/deploy_agent/agent.rb @@ -1,5 +1,5 @@ -gem 'nio4r', '2.1.0' -gem 'timers', '4.1.2' +gem 'nio4r', '~> 2.7' +gem 'timers', '~> 4.3' require 'nio' require 'timers' require 'logger' From e0e3bf45780aa0d58a9d73f151b0c41f920687be Mon Sep 17 00:00:00 2001 From: Facundo Farias Date: Thu, 19 Feb 2026 09:46:57 +0100 Subject: [PATCH 2/2] fix: Remove redundant gem activation calls from agent.rb Dependency resolution is already handled by the gemspec's add_dependency declarations. Explicit gem activation calls can cause version conflicts when multiple versions are installed. Co-Authored-By: Claude Opus 4.6 --- lib/deploy_agent/agent.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/deploy_agent/agent.rb b/lib/deploy_agent/agent.rb index 4a408ff..8db8aaa 100644 --- a/lib/deploy_agent/agent.rb +++ b/lib/deploy_agent/agent.rb @@ -1,5 +1,3 @@ -gem 'nio4r', '~> 2.7' -gem 'timers', '~> 4.3' require 'nio' require 'timers' require 'logger'