process_executer 0.5.0 → 0.6.1
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/.yardopts +1 -0
- data/CHANGELOG.md +20 -0
- data/README.md +7 -2
- data/lib/process_executer/monitored_pipe.rb +3 -4
- data/lib/process_executer/version.rb +1 -1
- data/process_executer.gemspec +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e0e00cd80ace5ff3db9a5c73bdb9ee768538de1fc1c59e0341b3dc70f59c876
|
4
|
+
data.tar.gz: 29a8e6d5513f7e0e3ebee923a11a4851adf28293ca5e91a8b4d240cd5c8ab94c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49dda3a26c6a7e95dc94ecdb76d005e0fd05247ad42e57c3113793403a60e8f97d9914ddc7d6221901dc7aa9c7ee4fcd2014548645f4ffb5cea125429f6239c5
|
7
|
+
data.tar.gz: e2ad549d573658d1052e99489d8fb9e18b3523c0829fe667b7cfd8bd2a4ce59fd8beee0956086a948ffcc9b1b7e9b1581caf2f4b50f1ed3ec1a5f16085f19807
|
data/.yardopts
CHANGED
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,26 @@ 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.6.1 (2023-02-12)
|
9
|
+
|
10
|
+
[Full Changelog](https://github.com/main-branch/process_executer/compare/v0.6.0..v0.6.1)
|
11
|
+
|
12
|
+
Changes since v0.6.0:
|
13
|
+
|
14
|
+
* 34b28a0 Documentation cleanup (#23)
|
15
|
+
|
16
|
+
## v0.6.0 (2023-02-12)
|
17
|
+
|
18
|
+
[Full Changelog](https://github.com/main-branch/process_executer/compare/v0.5.0..v0.6.0)
|
19
|
+
|
20
|
+
Changes since v0.5.0:
|
21
|
+
|
22
|
+
* 2a22dbd Fix intermittent test failures (#21)
|
23
|
+
* e3afaa3 Add build for MRI Ruby 3.2 on unbuntu-latest (#20)
|
24
|
+
* 17522ac Use latest create_release_version gem (#19)
|
25
|
+
* ba1fb2d Read remaining data from pipe_reader when closing a MonitoredPipe (#17)
|
26
|
+
* 8422aa9 Release v0.5.0
|
27
|
+
|
8
28
|
## v0.5.0 (2022-12-12)
|
9
29
|
|
10
30
|
[Full Changelog](https://github.com/main-branch/process_executer/compare/v0.4.0...v0.5.0)
|
data/README.md
CHANGED
@@ -1,13 +1,18 @@
|
|
1
1
|
# The ProcessExecuter Gem
|
2
2
|
|
3
3
|
[](https://badge.fury.io/rb/process_executer)
|
4
|
-
[](https://rubydoc.info/gems/process_executer/)
|
5
|
+
[](https://rubydoc.info/gems/process_executer/file/CHANGELOG.md)
|
6
|
+
[](https://github.com/main-branch/process_executer/actions?query=workflow%3ACI%20Build)
|
5
7
|
[](https://codeclimate.com/github/main-branch/process_executer/maintainability)
|
6
8
|
[](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
|
|
@@ -299,12 +299,11 @@ module ProcessExecuter
|
|
299
299
|
def close_pipe
|
300
300
|
# Close the write end of the pipe so no more data can be written to it
|
301
301
|
pipe_writer.close
|
302
|
+
|
302
303
|
# Read remaining data from pipe_reader (if any)
|
303
304
|
# If an exception was already raised by the last call to #write, then don't try to read remaining data
|
304
|
-
|
305
|
-
|
306
|
-
writers.each { |w| w.write(new_data) }
|
307
|
-
end
|
305
|
+
monitor_pipe while exception.nil? && !pipe_reader.eof?
|
306
|
+
|
308
307
|
# Close the read end of the pipe
|
309
308
|
pipe_reader.close
|
310
309
|
end
|
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.
|
@@ -35,7 +35,7 @@ Gem::Specification.new do |spec|
|
|
35
35
|
# spec.add_dependency "example-gem", "~> 1.0"
|
36
36
|
spec.add_development_dependency 'bump', '~> 0.10'
|
37
37
|
spec.add_development_dependency 'bundler-audit', '~> 0.9'
|
38
|
-
spec.add_development_dependency 'create_github_release', '~> 0
|
38
|
+
spec.add_development_dependency 'create_github_release', '~> 1.0'
|
39
39
|
spec.add_development_dependency 'rake', '~> 13.0'
|
40
40
|
spec.add_development_dependency 'rspec', '~> 3.10'
|
41
41
|
spec.add_development_dependency 'rubocop', '~> 1.36'
|
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.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Couball
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bump
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0
|
47
|
+
version: '1.0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0
|
54
|
+
version: '1.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -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: []
|
@@ -229,7 +229,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
229
229
|
- !ruby/object:Gem::Version
|
230
230
|
version: '0'
|
231
231
|
requirements: []
|
232
|
-
rubygems_version: 3.
|
232
|
+
rubygems_version: 3.4.1
|
233
233
|
signing_key:
|
234
234
|
specification_version: 4
|
235
235
|
summary: An API for executing commands in a subprocess
|