Skip to content

Commit

Permalink
Merge pull request #2 from allan-pires/frozen-strings
Browse files Browse the repository at this point in the history
Use frozen_string_literal in class Command
  • Loading branch information
luanzeba authored May 17, 2024
2 parents b7d708d + 8c59656 commit 22be5fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/progeny/command.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 22be5fe

Please sign in to comment.