README.md in subprocess-0.15 vs README.md in subprocess-0.16

- old
+ new

@@ -42,31 +42,31 @@ Check user's animal allegiances: ```ruby begin Subprocess.check_call(['grep', '-q', 'llamas', '~/favorite_animals']) -rescue NonZeroExit => e +rescue Subprocess::NonZeroExit => e puts e.message puts "Why aren't llamas one of your favorite animals?" end ``` Parse the output of `uptime(1)` to find the system's load: ```ruby -load = Subprocess.check_output(['uptime']).split(' ').last(3) +system_load = Subprocess.check_output(['uptime']).split(' ').last(3) ``` Send mail to your friends with `sendmail(1)`: ```ruby -Subprocess.check_call(%W{sendmail -t}, - :stdin => Subprocess::PIPE, :stdout => Subprocess::PIPE) do |p| +Subprocess.check_call(%W{sendmail -t}, :stdin => Subprocess::PIPE) do |p| p.communicate <<-EMAIL From: alpaca@example.com To: llama@example.com Subject: I am so fluffy. -I'm going to die. +SO FLUFFY! +http://upload.wikimedia.org/wikipedia/commons/3/3e/Unshorn_alpaca_grazing.jpg EMAIL end ```