oaf 0.1.16 → 0.1.17

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YWEwNzM1MGU4YmJkNGRmYmZiZmQ5N2I3YWQyNjEyYzkyYjM0ZWRiOQ==
4
+ OGM5OWUzYzJlZjlhMDRhYzc2YmVmM2I4YTEyZjkwMzMxMDZkMTc0OQ==
5
5
  data.tar.gz: !binary |-
6
- ZDVhMjQ1ZWJkMWNlNmY1ZjYxOGI3Y2ZkOTZjOWNiYmFhNWI2MmJlMg==
6
+ YmE3ZDZlNWE2NjgxYjE0N2E1NjdmOTAzZWU5NDRmOGE5OWUxMWY2MA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZWM5ODdmYTQzNDE4Y2YxMWEwZTViMmQwOTQ2YzRjYWNiNTA4Yjk5N2EyZDdi
10
- YjI0ZTMwZTlhODMzMGRiZTFiNmRjYzVkMjVjOWQ0NmEyODRiYTg5YjA0ZGUy
11
- MGRiNGQzODExYzcxMzdiYzJlMTI1MjhhYzEzMjBkY2ViZGUwM2E=
9
+ NGU0MjkzNzYyNmYwMjY1MGQ2Y2FkZDdhMDIwNTM5NDMwOWE5YTE1YzA4MWQ4
10
+ ODEwNGJhZjJiNjA1MmFlYTk0NzEwNTkxOWM2ODBjNWZjOWRhZmVlZDU5YWI4
11
+ YzI1YTI4M2M5ZjMzYjI3MGZiNWYzNGMyOTM5MzgxNzE4OGFmMDk=
12
12
  data.tar.gz: !binary |-
13
- OTAzMjI5OTcxMTk1ZGY5MzY0MjVjMTE1NTE4ZDVlMWNmZWRjM2M5NTdmY2Qw
14
- ZTE0ZmRkZTNhNTRkYjExMjA5MjJjOTIwOTlkYjM4NDAyMDg5MWRmM2ZkY2Q5
15
- ZTEzMDdlOGNhNTUxN2YyMmUxZjI1ODRiNzA1YThiNWM3MmIwY2Q=
13
+ ZTUxODJhMmEzNjE4YmJhMzg1NmIyMWJhM2E4OGI1YjAzNDNhMmRkYmJkYTVl
14
+ M2JjNGYxMzBlNDE2OTI5OGM2NzljNzMzYTk4ZmEzYWJlOWM2OTA0N2I3YzEx
15
+ YTMyNTNmYmUzNjczZTJiY2Q3YjE0YmMyODkwZWJmZmFlNzFkZWY=
data/lib/oaf/util.rb CHANGED
@@ -188,8 +188,8 @@ module Oaf
188
188
  # A string of stderr concatenated to stdout.
189
189
  #
190
190
  def run_buffered command
191
- stdin, stdout, stderr = Open3.popen3 command
192
- stdout.read + stderr.read
191
+ stdin, stdout, stderr = Open3.popen3 "#{command} 2>&1"
192
+ stdout.read
193
193
  end
194
194
 
195
195
  # Executes a file, or reads its contents if it is not executable, passing
data/lib/oaf/version.rb CHANGED
@@ -21,5 +21,5 @@
21
21
  # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
22
 
23
23
  module Oaf
24
- VERSION = '0.1.16'
24
+ VERSION = '0.1.17'
25
25
  end
@@ -192,7 +192,7 @@ module Oaf
192
192
 
193
193
  @f3 = Tempfile.new 'oaf'
194
194
  @f3.chmod 0755
195
- @f3.write "#!/bin/bash\necho 'This is a test' 1>&2\n"
195
+ @f3.write "#!/bin/bash\necho 'test1'\necho 'test2' 1>&2\n"
196
196
  @f3.close
197
197
  end
198
198
 
@@ -219,7 +219,7 @@ module Oaf
219
219
 
220
220
  it "should catch stderr output instead of dumping it" do
221
221
  result = Oaf::Util.get_output @f3.path, nil, nil
222
- result.should eq("This is a test\n")
222
+ result.should eq("test1\ntest2\n")
223
223
  end
224
224
  end
225
225
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oaf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.16
4
+ version: 0.1.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Uber