lib/quality/process.rb in quality-38.0.1 vs lib/quality/process.rb in quality-39.0.1

- old
+ new

@@ -9,13 +9,11 @@ dependencies = {}) @full_cmd = full_cmd @popener = dependencies[:popener] || IO end - def run - @popener.popen(@full_cmd) do |file| - yield file - end + def run(&block) + @popener.popen(@full_cmd, &block) $CHILD_STATUS&.exitstatus end end end