process_executer 0.5.0 → 0.6.1

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: c6d2904b0fd36166eb05a23f8d208b27de0c19bc10284e71e63a1e7055034a7b
4
- data.tar.gz: 5ed998bd38182774d63265bd6729c219918acf41755215a172c87b85e4873ebe
3
+ metadata.gz: 8e0e00cd80ace5ff3db9a5c73bdb9ee768538de1fc1c59e0341b3dc70f59c876
4
+ data.tar.gz: 29a8e6d5513f7e0e3ebee923a11a4851adf28293ca5e91a8b4d240cd5c8ab94c
5
5
  SHA512:
6
- metadata.gz: 7aec2cdf98b06acccccfa449e57efbc3d6ea4b7bb9ee833a5f81ee77faa02490c55d5c3cea7c1235295d765eaf3b957b2577e3cf8fae0818d4e60e097218bcc3
7
- data.tar.gz: a0a95d10b07111be5ca3bc094cfa4255629f43b723fb7ae44ead94615c11cd97af370da9a219e481c1d55eb55fd20f7f3a24e213a96834d91b3f18527a6af8ab
6
+ metadata.gz: 49dda3a26c6a7e95dc94ecdb76d005e0fd05247ad42e57c3113793403a60e8f97d9914ddc7d6221901dc7aa9c7ee4fcd2014548645f4ffb5cea125429f6239c5
7
+ data.tar.gz: e2ad549d573658d1052e99489d8fb9e18b3523c0829fe667b7cfd8bd2a4ce59fd8beee0956086a948ffcc9b1b7e9b1581caf2f4b50f1ed3ec1a5f16085f19807
data/.yardopts CHANGED
@@ -2,4 +2,5 @@
2
2
  --hide-void-return
3
3
  --markup-provider=redcarpet
4
4
  --markup markdown
5
+ - CHANGELOG.md
5
6
  - LICENSE.md
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
  [![Gem Version](https://badge.fury.io/rb/process_executer.svg)](https://badge.fury.io/rb/process_executer)
4
- [![Build Status](https://github.com/main-branch/process_executer/workflows/Ruby/badge.svg?branch=main)](https://github.com/main-branch/process_executer/actions?query=workflow%3ARuby)
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
- This gem contains the following features:
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
- if exception.nil? && pipe_reader.wait_readable(0.01)
305
- new_data = pipe_reader.read(chunk_size)
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
@@ -2,5 +2,5 @@
2
2
 
3
3
  module ProcessExecuter
4
4
  # The current Gem version
5
- VERSION = '0.5.0'
5
+ VERSION = '0.6.1'
6
6
  end
@@ -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://github.com/main-branch/process_executer'
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.2'
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.5.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: 2022-12-13 00:00:00.000000000 Z
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.2'
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.2'
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://github.com/main-branch/process_executer
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.3.7
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