ruby_expect 1.2 → 1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ruby_expect/expect.rb +8 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da2240ca39e9ea13a0931ae2de294c363f7354bf
|
4
|
+
data.tar.gz: 913112ff8d8e57420b5794bad4fcda7c6a8449e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c59878a49a5da59ce6804319449bfccf5648a12230d8bb48f2710163d5b9fc4d5864ea5fb3856e1da8f04da41406b82c3670b76a9f148e51a1f3c094cc39f581
|
7
|
+
data.tar.gz: f22399e4808ecd9b1ab7fdb5e8e5ea23358beef0ae28cd9f941adad4a45c33a6ca5c57ae89eca17dbfcc3d8d2804d57d296b44aa810eb97879b81ddc33b25658
|
data/lib/ruby_expect/expect.rb
CHANGED
@@ -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
|