subprocess 1.5.6 → 1.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c82ea2c42d9357af9202aba5f361f28b50a60bba6d3350e3387f8bf71f7748e6
4
- data.tar.gz: d12996089cab0fd638c31af1d2f73b1de63486eb482867887571c62e6fa0ec8d
3
+ metadata.gz: 01ca9ef05f08de2e654fb23e026cefa831a99dbad81f9c238c95727a9978cbb4
4
+ data.tar.gz: 0d95b672b2593811f51bb1b6a1614b72e9aa857d1261809afed76dbdf69c522f
5
5
  SHA512:
6
- metadata.gz: 609beb788615d91132bf09e5febfc71eb8ae78d3534b1549f3a50389c340602c71119302e9718beb59d5344639a6de2577a01255876866e2661ccb674c626f17
7
- data.tar.gz: 24e299e7a5337bbd5ea995fe72171e872d430081a207544fda7e5ab406d75fae4e98c8ec542ede5acced032f3765efd1f97dfbe839bfccb2c92d31b04c90f6d7
6
+ metadata.gz: f6b26bd257d1eb1b35acbdd55cbffe3e8b3be0cc035da4598b4ae2616972edf3a47f1b9b092cf11bc81c3f27e15c4ba4b7b29787f284299c139db041350275c7
7
+ data.tar.gz: 4064a5d0ad895cbbceaca8a2c14ca88f2becd653bfb56cee0f20b4008546baa2d457b95dee9ffc1170c03bcc491fabe0a6629a080fa491a08193d734095bbeca
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Subprocess
2
- VERSION = '1.5.6'
3
+ VERSION = '1.5.7'
3
4
  end
data/lib/subprocess.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require 'thread'
2
3
  require 'set'
3
4
 
@@ -169,7 +170,7 @@ module Subprocess
169
170
  # @param [::Process::Status] status The status returned by `waitpid`.
170
171
  def initialize(cmd, status)
171
172
  @command, @status = cmd.join(' '), status
172
- message = "Command #{command} "
173
+ message = +"Command #{command} "
173
174
  if status.exited?
174
175
  message << "returned non-zero exit status #{status.exitstatus}"
175
176
  elsif status.signaled?
@@ -428,7 +429,7 @@ module Subprocess
428
429
  def communicate(input=nil, timeout_s=nil)
429
430
  raise ArgumentError if !input.nil? && @stdin.nil?
430
431
 
431
- stdout, stderr = "", ""
432
+ stdout, stderr = +"", +""
432
433
 
433
434
  # NB: Always force encoding to binary so we handle unicode or binary input
434
435
  # correctly across multiple write_nonblock calls, since we manually slice
@@ -508,7 +509,7 @@ module Subprocess
508
509
 
509
510
  if block_given? && !(stderr.empty? && stdout.empty?)
510
511
  yield stdout, stderr
511
- stdout, stderr = "", ""
512
+ stdout, stderr = +"", +""
512
513
  end
513
514
  end
514
515
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: subprocess
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.6
4
+ version: 1.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carl Jackson
@@ -9,10 +9,10 @@ authors:
9
9
  - Nelson Elhage
10
10
  - Andy Brody
11
11
  - Andreas Fuchs
12
- autorequire:
12
+ autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2022-06-08 00:00:00.000000000 Z
15
+ date: 2025-01-18 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: minitest
@@ -89,7 +89,7 @@ homepage: https://github.com/stripe/subprocess
89
89
  licenses:
90
90
  - MIT
91
91
  metadata: {}
92
- post_install_message:
92
+ post_install_message:
93
93
  rdoc_options: []
94
94
  require_paths:
95
95
  - lib
@@ -105,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
105
  version: '0'
106
106
  requirements: []
107
107
  rubygems_version: 3.1.2
108
- signing_key:
108
+ signing_key:
109
109
  specification_version: 4
110
110
  summary: A port of Python's subprocess module to Ruby
111
111
  test_files: []