spud 0.1.13 → 0.1.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/shell.rb +2 -4
  3. data/lib/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aa044bc0ccc998207c5fd5f5bec0b9f3638c878e8c41490d03fe589ef8d28664
4
- data.tar.gz: b2399fbce2ebea27b6ddc21e2b3934762864a54c45fc40f1080871d82099c29d
3
+ metadata.gz: e82f5c891574a3fc3f13aa2b46005c7deafbf6720d378b4432726b3358e65dda
4
+ data.tar.gz: 9e46fcd73f03b45bc7bf8ff79a6f15aac02535ec02349112320fbf9003cae213
5
5
  SHA512:
6
- metadata.gz: f65b94f7cd2383b9f0045dbbe62f2944d1599b3d41f687cc473a4c5cc48f3dbe294e870a34b8670530a3d353c40694e55543a6585451c04277c094923744dae6
7
- data.tar.gz: ecf219b08cc695fb1f66d92dc4ccca2d785563419d4403ae4e79340216907452cf75027faad2c5cdec975ac48e1c94630935244ae2bea9086a5256ddf802d82e
6
+ metadata.gz: 0acce351760b00b50ca4ae4b0734143d1745aa5f2c81cc35c968b2e86186a5fa0a5f2138e6ca095ab7404220bd74b8abaa053a2985baa237e170164df71043f5
7
+ data.tar.gz: 075957df7f73c4cf6022ffc0c8c7f28acd31e94f4963e25c875534b3e72c965cf505af6c1bc74a58d0b54896b4b0451c10c3452e2fad252b66b2eeb1404d3920
@@ -5,13 +5,11 @@ module Spud
5
5
  attr_accessor :status
6
6
 
7
7
  def initialize(cmd, silent: false)
8
- @pid = nil
9
- @status = nil
10
8
  output = StringIO.new
11
9
 
12
- _, stdout, _, @thread = Open3.popen3(cmd)
10
+ _, out, @thread = Open3.popen2e(cmd)
13
11
  @status = @thread.value
14
- while line = stdout.gets
12
+ while line = out.gets
15
13
  puts line
16
14
  output.puts line
17
15
  end
@@ -1,3 +1,3 @@
1
1
  module Spud
2
- VERSION = '0.1.13'
2
+ VERSION = '0.1.14'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spud
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Booth