process_executer 0.6.1 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8e0e00cd80ace5ff3db9a5c73bdb9ee768538de1fc1c59e0341b3dc70f59c876
4
- data.tar.gz: 29a8e6d5513f7e0e3ebee923a11a4851adf28293ca5e91a8b4d240cd5c8ab94c
3
+ metadata.gz: bdb10a8f78253461f61b874a6a094e9908c33cf32c4a6c82f9cebf31b281ea93
4
+ data.tar.gz: 16f97ee4edf9a01f74de0ad1450ad04b5f7418f0c680f3b17d95caaee49508a4
5
5
  SHA512:
6
- metadata.gz: 49dda3a26c6a7e95dc94ecdb76d005e0fd05247ad42e57c3113793403a60e8f97d9914ddc7d6221901dc7aa9c7ee4fcd2014548645f4ffb5cea125429f6239c5
7
- data.tar.gz: e2ad549d573658d1052e99489d8fb9e18b3523c0829fe667b7cfd8bd2a4ce59fd8beee0956086a948ffcc9b1b7e9b1581caf2f4b50f1ed3ec1a5f16085f19807
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.01 until state == :closed
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.01)
294
+ pipe_reader.wait_readable(0.001)
293
295
  end
294
296
 
295
297
  # Read any remaining data from the pipe and close it
@@ -2,5 +2,5 @@
2
2
 
3
3
  module ProcessExecuter
4
4
  # The current Gem version
5
- VERSION = '0.6.1'
5
+ VERSION = '0.7.0'
6
6
  end
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.6.1
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-12 00:00:00.000000000 Z
11
+ date: 2023-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bump