ruby_expect 1.2 → 1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ruby_expect/expect.rb +8 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2368eec4ae38e8bb2ed58807f8099580f1422ae9
4
- data.tar.gz: 451408b972605853384ff5a4b43f98fab07ab7c7
3
+ metadata.gz: da2240ca39e9ea13a0931ae2de294c363f7354bf
4
+ data.tar.gz: 913112ff8d8e57420b5794bad4fcda7c6a8449e1
5
5
  SHA512:
6
- metadata.gz: 39be417b404a55360e0a3a6e3c07cb6f98877087ca2c3d70984b2a3937d3fbe883070f3a60a8d027f96a01d3d022c905f3863bc8aedca029252dfdcb22ce4299
7
- data.tar.gz: a3894950b06028cadef8dad7ba2d557d0baf3a953a398f720a30417c87182a6f43b975e913211a24fac08a66cd484ae3581a31750f4b15e823314056daee9ff3
6
+ metadata.gz: c59878a49a5da59ce6804319449bfccf5648a12230d8bb48f2710163d5b9fc4d5864ea5fb3856e1da8f04da41406b82c3670b76a9f148e51a1f3c094cc39f581
7
+ data.tar.gz: f22399e4808ecd9b1ab7fdb5e8e5ea23358beef0ae28cd9f941adad4a45c33a6ca5c57ae89eca17dbfcc3d8d2804d57d296b44aa810eb97879b81ddc33b25658
@@ -41,6 +41,9 @@ module RubyExpect
41
41
  # know what you are doing!
42
42
  attr_reader :buffer
43
43
 
44
+ # Set debug in order to see the output being read from the spawned process
45
+ attr_accessor :debug
46
+
44
47
  #####
45
48
  # Create a new Expect object for the given IO object
46
49
  #
@@ -255,6 +258,11 @@ module RubyExpect
255
258
  return nil
256
259
  end
257
260
 
261
+ #####
262
+ # Wait for the process to complete or the read handle to be closed
263
+ # and then clean everything up. This method call will block until
264
+ # the spawned process or connected filehandle/socket is closed
265
+ #
258
266
  def soft_close
259
267
  while (! @read_fh.eof?)
260
268
  read_proc
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_expect
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.2'
4
+ version: '1.3'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Bates