oaf 0.1.16 → 0.1.17
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.
- checksums.yaml +8 -8
- data/lib/oaf/util.rb +2 -2
- data/lib/oaf/version.rb +1 -1
- data/spec/oaf/util_spec.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OGM5OWUzYzJlZjlhMDRhYzc2YmVmM2I4YTEyZjkwMzMxMDZkMTc0OQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YmE3ZDZlNWE2NjgxYjE0N2E1NjdmOTAzZWU5NDRmOGE5OWUxMWY2MA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NGU0MjkzNzYyNmYwMjY1MGQ2Y2FkZDdhMDIwNTM5NDMwOWE5YTE1YzA4MWQ4
|
10
|
+
ODEwNGJhZjJiNjA1MmFlYTk0NzEwNTkxOWM2ODBjNWZjOWRhZmVlZDU5YWI4
|
11
|
+
YzI1YTI4M2M5ZjMzYjI3MGZiNWYzNGMyOTM5MzgxNzE4OGFmMDk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
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
|
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
data/spec/oaf/util_spec.rb
CHANGED
@@ -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 '
|
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("
|
222
|
+
result.should eq("test1\ntest2\n")
|
223
223
|
end
|
224
224
|
end
|
225
225
|
end
|