process_executer 0.6.1 → 0.7.0
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 +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/process_executer/monitored_pipe.rb +4 -2
- data/lib/process_executer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bdb10a8f78253461f61b874a6a094e9908c33cf32c4a6c82f9cebf31b281ea93
|
4
|
+
data.tar.gz: 16f97ee4edf9a01f74de0ad1450ad04b5f7418f0c680f3b17d95caaee49508a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e027250947cded019299fb2559f107ee87a5e327d0be0c8af144063b12fe8ed1600bab5313ddf464fd00cdd69c33dc012f3615634ada7a7da4debbceb862728
|
7
|
+
data.tar.gz: 8ab0f408efdb5ad44e69b70c16c8175b47747c18cbddbe7f6f9e724621eaaf3931958a2c1ec2495be2fa43987abe98dfc663347961e479fedf09146772671453
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,14 @@ All notable changes to the process_executer gem will be documented in this file.
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7
7
|
|
8
|
+
## v0.7.0 (2023-02-17)
|
9
|
+
|
10
|
+
[Full Changelog](https://github.com/main-branch/process_executer/compare/v0.6.1..v0.7.0)
|
11
|
+
|
12
|
+
Changes since v0.6.1:
|
13
|
+
|
14
|
+
* c5c07fd Reduce the time spent waiting for output (#25)
|
15
|
+
|
8
16
|
## v0.6.1 (2023-02-12)
|
9
17
|
|
10
18
|
[Full Changelog](https://github.com/main-branch/process_executer/compare/v0.6.0..v0.6.1)
|
@@ -86,7 +86,7 @@ module ProcessExecuter
|
|
86
86
|
return unless state == :open
|
87
87
|
|
88
88
|
@state = :closing
|
89
|
-
sleep 0.
|
89
|
+
sleep 0.001 until state == :closed
|
90
90
|
end
|
91
91
|
|
92
92
|
# Return the write end of the pipe so that data can be written to it
|
@@ -149,6 +149,8 @@ module ProcessExecuter
|
|
149
149
|
# @api private
|
150
150
|
#
|
151
151
|
def write(data)
|
152
|
+
raise IOError, 'closed stream' unless state == :open
|
153
|
+
|
152
154
|
pipe_writer.write(data)
|
153
155
|
end
|
154
156
|
|
@@ -289,7 +291,7 @@ module ProcessExecuter
|
|
289
291
|
@state = :closing
|
290
292
|
end
|
291
293
|
rescue IO::WaitReadable
|
292
|
-
pipe_reader.wait_readable(0.
|
294
|
+
pipe_reader.wait_readable(0.001)
|
293
295
|
end
|
294
296
|
|
295
297
|
# Read any remaining data from the pipe and close it
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: process_executer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Couball
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-02-
|
11
|
+
date: 2023-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bump
|