subprocess 1.5.6 → 1.5.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/subprocess/version.rb +2 -1
- data/lib/subprocess.rb +4 -3
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 01ca9ef05f08de2e654fb23e026cefa831a99dbad81f9c238c95727a9978cbb4
|
4
|
+
data.tar.gz: 0d95b672b2593811f51bb1b6a1614b72e9aa857d1261809afed76dbdf69c522f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6b26bd257d1eb1b35acbdd55cbffe3e8b3be0cc035da4598b4ae2616972edf3a47f1b9b092cf11bc81c3f27e15c4ba4b7b29787f284299c139db041350275c7
|
7
|
+
data.tar.gz: 4064a5d0ad895cbbceaca8a2c14ca88f2becd653bfb56cee0f20b4008546baa2d457b95dee9ffc1170c03bcc491fabe0a6629a080fa491a08193d734095bbeca
|
data/lib/subprocess/version.rb
CHANGED
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.
|
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:
|
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: []
|