diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bb2a2a8..825766d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,9 +18,10 @@ jobs: - "3.2" - "3.3" - "3.4" + - "4.0" steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: diff --git a/Rakefile b/Rakefile index f32601d..78567a7 100644 --- a/Rakefile +++ b/Rakefile @@ -3,7 +3,11 @@ require "bundler/gem_tasks" require "minitest/test_task" -Minitest::TestTask.create +Minitest::TestTask.create do |t| + # Capistrano 3.20 emits circular require warnings under Ruby 3.4 with -w. + # Keep test output clean until upstream fixes the warning path. + t.warning = false +end require "standard/rake" diff --git a/lib/capistrano/solid_queue.rb b/lib/capistrano/solid_queue.rb index 3235d12..b270890 100644 --- a/lib/capistrano/solid_queue.rb +++ b/lib/capistrano/solid_queue.rb @@ -30,7 +30,7 @@ def execute_systemd(*args, raise_on_non_zero_exit: true) def sudo_if_needed(*command, raise_on_non_zero_exit: true) if fetch(:solid_queue_systemctl_user) == :system - backend.sudo command.map(&:to_s).join(" ") + backend.sudo command.join(" ") else backend.execute(*command, raise_on_non_zero_exit: raise_on_non_zero_exit) end