process_helper 0.1.1.pre.beta.1 → 0.1.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
  SHA1:
3
- metadata.gz: 6c2a977c3f8a1d8982bb46d4bf4468ee89211ab8
4
- data.tar.gz: 351b82ea95ddab8f1145ed76ec89c125debe307e
3
+ metadata.gz: 3f6c294b3af6eeb01a68ab036eaae0f720f910c4
4
+ data.tar.gz: 987e9e32db4886c989ab50ced59e9ec7c09cc17c
5
5
  SHA512:
6
- metadata.gz: c9d4da553d29cd0bda49283e252d67cb4235980664228b94ccee75fdb6c64a2065698f014bed10541e6e651ae097880f073f0011995a31b24e967965cd5f42b5
7
- data.tar.gz: 36e04a719ad86b5da40bcc4575b1a24162c8d00dd133cf0063ee2301830f088c52c7bfa22a7f7b1fd545c461a44f7f760457229b2461ad050ebe42c0115bb144
6
+ metadata.gz: 1f2dfb45e79b770329316dfa5453c3297157429311e79847aa6361e72e7fbd29fa2f19b85e88194d25171d4eb36fc6bdd0986ab4ed9ce0a6f44a26ea44d402bc
7
+ data.tar.gz: 143164249879466bd5a18b8abad0b1f16b1994bd43ea750dbe73a4e03537f80fa43706ec8fcac8b81ded29a47fc83361ac96d4c22ed1e023c0da1bc7e3610aad
data/README.md CHANGED
@@ -183,7 +183,13 @@ have no effect, and can be controlled by the `onlcr (-onlcr)` option
183
183
  of the [stty command](https://www.freebsd.org/cgi/man.cgi?query=stty&sektion=1).
184
184
  Use `stty -a` to get info on the current terminal.
185
185
 
186
- Also, any input given to the command may be echoed to the output as well.
186
+ Also, any input given to the command may be echoed to the output as well.
187
+
188
+ In some cases, the PTY will exit and return, even though the child process PID
189
+ for which it was spawned is still running. In this case, process_helper
190
+ will wait for the the child PID to exit. If it does not exit after
191
+ the specified [`:timeout`](#timeout-short-form-kill), or by default
192
+ 60 seconds if `:timeout` is unspecified, an exception will be raised.
187
193
 
188
194
  ### `:puts_output` (short form `:out`)
189
195
 
@@ -205,6 +211,8 @@ Valid value is a float, e.g. `1.5`. Default value is nil/undefined.
205
211
  For example, invoking `cat` with no arguments, which by default will continue accepting input until killed.
206
212
  * Will also kill long running processes which are ***not*** in blocked waiting on an IO stream read (i.e. kill process regardless of any IO state, not just via [IO.selects](http://ruby-doc.org/core-2.2.0/IO.html#method-c-select) timeout support).
207
213
  * If undefined (default), there will be no timeout, and `process_helper` will hang if a process hangs while waiting to read from IO.
214
+ * This option will also override how long a [`:pseudo_terminal`](#pseudo_terminal-short-form-pty)
215
+ will wait for a child PID to exit after the terminal has already exited.
208
216
 
209
217
  ***The following changes are planned for this option:***
210
218
 
@@ -10,7 +10,7 @@ require 'stringio'
10
10
  # Full documentation at https://github.com/thewoolleyman/process_helper
11
11
  module ProcessHelper
12
12
  # Don't forget to keep version in sync with gemspec
13
- VERSION = '0.1.1.pre.beta.1'.freeze
13
+ VERSION = '0.1.1'.freeze
14
14
 
15
15
  # rubocop:disable Style/ModuleFunction
16
16
  extend self
@@ -3,7 +3,7 @@
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'process_helper'
5
5
  # Don't forget to keep version in sync with ProcessHelper::Version
6
- spec.version = '0.1.1.pre.beta.1'
6
+ spec.version = '0.1.1'
7
7
  spec.authors = ['Chad Woolley', 'Glenn Oppegard']
8
8
  spec.email = ['oppegard@gmail.com', 'thewoolleyman@gmail.com']
9
9
  spec.summary = "Makes it easier to spawn ruby sub-processes with proper capturing /
@@ -47,7 +47,7 @@ RSpec.describe 'pty handling' do
47
47
  clazz.process('echo', pty: true, exp_st: 1, timeout: @max_process_wait)
48
48
  end.to raise_error(
49
49
  ProcessHelper::TimeoutError,
50
- %r(Timed out after #{@max_process_wait} seconds..*did not exit.*PTY.*)
50
+ /Timed out after #{@max_process_wait} seconds..*did not exit.*PTY.*/
51
51
  )
52
52
  end
53
53
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: process_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1.pre.beta.1
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chad Woolley
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-05-05 00:00:00.000000000 Z
12
+ date: 2017-05-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -185,9 +185,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
185
185
  version: 1.9.2
186
186
  required_rubygems_version: !ruby/object:Gem::Requirement
187
187
  requirements:
188
- - - ">"
188
+ - - ">="
189
189
  - !ruby/object:Gem::Version
190
- version: 1.3.1
190
+ version: '0'
191
191
  requirements: []
192
192
  rubyforge_project:
193
193
  rubygems_version: 2.6.8