From e673bbf77b8861bb294586d7c690d97c5093d472 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Wed, 23 Jul 2025 17:41:31 +0200 Subject: [PATCH] [rubygems/rubygems] Remove unused parameter https://github.com/rubygems/rubygems/commit/043f73586b --- spec/bundler/support/command_execution.rb | 3 +-- spec/bundler/support/subprocess.rb | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/spec/bundler/support/command_execution.rb b/spec/bundler/support/command_execution.rb index 02726744d3..979a46549a 100644 --- a/spec/bundler/support/command_execution.rb +++ b/spec/bundler/support/command_execution.rb @@ -2,9 +2,8 @@ module Spec class CommandExecution - def initialize(command, working_directory:, timeout:) + def initialize(command, timeout:) @command = command - @working_directory = working_directory @timeout = timeout @original_stdout = String.new @original_stderr = String.new diff --git a/spec/bundler/support/subprocess.rb b/spec/bundler/support/subprocess.rb index e160d5c9cf..1da19a5e1f 100644 --- a/spec/bundler/support/subprocess.rb +++ b/spec/bundler/support/subprocess.rb @@ -38,7 +38,7 @@ module Spec dir = options[:dir] env = options[:env] || {} - command_execution = CommandExecution.new(cmd.to_s, working_directory: dir, timeout: options[:timeout] || 60) + command_execution = CommandExecution.new(cmd.to_s, timeout: options[:timeout] || 60) require "open3" require "shellwords"