From 8c59656bcc2b17ee74c1b037db82ada953fb4680 Mon Sep 17 00:00:00 2001 From: Allan Pires Date: Wed, 15 May 2024 20:36:52 +0000 Subject: [PATCH] Use frozen_string_literal in class Command --- lib/progeny/command.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/progeny/command.rb b/lib/progeny/command.rb index d514922..8a97dbc 100644 --- a/lib/progeny/command.rb +++ b/lib/progeny/command.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true module Progeny # Progeny::Command includes logic for executing child processes and # reading/writing from their standard input, output, and error streams. It's @@ -228,7 +229,7 @@ def exec! # exceeds the amount specified by the max argument. def read_and_write(input, stdin, stdout, stderr, timeout=nil, max=nil) max = nil if max && max <= 0 - @out, @err = '', '' + @out, @err = +'', +'' # force all string and IO encodings to BINARY under 1.9 for now if @out.respond_to?(:force_encoding) and stdin.respond_to?(:set_encoding)