Version 0.2 of the Wopen3 gem was just released. Wopen3 is a replacement for Open3 in the standard library. Unlike Open3, Wopen3 does not throw away the exit status of the executed (grandchild) process. Only a child process it spawned and the exit status is returned in
$? as normal.
This is a minor feature release which adds a new
system method encapsulating the frequently-used pattern of forking a child process, capturing standard error, standard out, and the exit status, and acting on the result:
result = Wopen3.system('git', 'log') result.status # => 0 result.stderr # => '' result.stdout # => 'commit 491411b3...'
The full list of changes can be viewed here, and the new version can be installed via
sudo gem install wopen3. If you find the Gem useful, please consider making a donation via PayPal to firstname.lastname@example.org.