process_executer 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -0
- data/CHANGELOG.md +16 -0
- data/README.md +7 -2
- data/lib/process_executer/monitored_pipe.rb +4 -2
- data/lib/process_executer/version.rb +1 -1
- data/process_executer.gemspec +1 -1
- metadata +3 -3
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/.yardopts
CHANGED
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,22 @@ 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
|
+
|
16
|
+
## v0.6.1 (2023-02-12)
|
17
|
+
|
18
|
+
[Full Changelog](https://github.com/main-branch/process_executer/compare/v0.6.0..v0.6.1)
|
19
|
+
|
20
|
+
Changes since v0.6.0:
|
21
|
+
|
22
|
+
* 34b28a0 Documentation cleanup (#23)
|
23
|
+
|
8
24
|
## v0.6.0 (2023-02-12)
|
9
25
|
|
10
26
|
[Full Changelog](https://github.com/main-branch/process_executer/compare/v0.5.0..v0.6.0)
|
data/README.md
CHANGED
@@ -1,13 +1,18 @@
|
|
1
1
|
# The ProcessExecuter Gem
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/process_executer.svg)](https://badge.fury.io/rb/process_executer)
|
4
|
-
[![
|
4
|
+
[![Documentation](https://img.shields.io/badge/Documentation-Latest-green)](https://rubydoc.info/gems/process_executer/)
|
5
|
+
[![Change Log](https://img.shields.io/badge/CHANGELOG-Latest-green)](https://rubydoc.info/gems/process_executer/file/CHANGELOG.md)
|
6
|
+
[![Build Status](https://github.com/main-branch/process_executer/workflows/CI%20Build/badge.svg?branch=main)](https://github.com/main-branch/process_executer/actions?query=workflow%3ACI%20Build)
|
5
7
|
[![Maintainability](https://api.codeclimate.com/v1/badges/0b5c67e5c2a773009cd0/maintainability)](https://codeclimate.com/github/main-branch/process_executer/maintainability)
|
6
8
|
[![Test Coverage](https://api.codeclimate.com/v1/badges/0b5c67e5c2a773009cd0/test_coverage)](https://codeclimate.com/github/main-branch/process_executer/test_coverage)
|
7
9
|
|
8
10
|
## Features
|
9
11
|
|
10
|
-
|
12
|
+
[Full YARD documentation](https://rubydoc.info/gems/process_executer/) for this
|
13
|
+
gem is hosted on RubyGems.org.
|
14
|
+
|
15
|
+
This gem contains the following important classes:
|
11
16
|
|
12
17
|
### ProcessExecuter::MonitoredPipe
|
13
18
|
|
@@ -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
|
data/process_executer.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
|
19
19
|
spec.metadata['homepage_uri'] = spec.homepage
|
20
20
|
spec.metadata['source_code_uri'] = 'https://github.com/main-branch/process_executer'
|
21
|
-
spec.metadata['changelog_uri'] = 'https://
|
21
|
+
spec.metadata['changelog_uri'] = 'https://rubydoc.info/gems/process_executer/file/CHANGELOG.md'
|
22
22
|
|
23
23
|
# Specify which files should be added to the gem when it is released.
|
24
24
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
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
|
@@ -212,7 +212,7 @@ metadata:
|
|
212
212
|
allowed_push_host: https://rubygems.org
|
213
213
|
homepage_uri: https://github.com/main-branch/process_executer
|
214
214
|
source_code_uri: https://github.com/main-branch/process_executer
|
215
|
-
changelog_uri: https://
|
215
|
+
changelog_uri: https://rubydoc.info/gems/process_executer/file/CHANGELOG.md
|
216
216
|
rubygems_mfa_required: 'true'
|
217
217
|
post_install_message:
|
218
218
|
rdoc_options: []
|