shellter 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,7 +13,10 @@ module Shellter
13
13
  @expected_outcodes ||= [0]
14
14
 
15
15
  @command = command
16
- @arguments = arguments
16
+ @arguments = arguments
17
+
18
+ @stdout = StringIO.new
19
+ @stderr = StringIO.new
17
20
  end
18
21
 
19
22
  def run(options = {})
@@ -22,10 +25,12 @@ module Shellter
22
25
  with_interpolated_command(options) do |command|
23
26
  @status = runner.run(command) do |stdout, stderr, stdin, pid|
24
27
  stdin.close
25
- @stdout = stdout.read
26
- @stderr = stderr.read
28
+ @stdout.write(stdout.read)
29
+ @stderr.write(stderr.read)
27
30
  @pid = pid
28
31
  end
32
+ @stderr.rewind
33
+ @stdout.rewind
29
34
  end
30
35
  end
31
36
  end
@@ -1,3 +1,3 @@
1
1
  module Shellter
2
- VERSION = "0.9.0"
2
+ VERSION = "0.9.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shellter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: