From bb804ab7ed04ab43f9b3bb9682153016f7907176 Mon Sep 17 00:00:00 2001 From: Qais Patankar Date: Wed, 7 Jan 2026 01:33:42 -0500 Subject: [PATCH 1/3] Fix various links in README.md --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 401136f..9cf0532 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Subprocess ![Ruby](https://github.com/stripe/subprocess/workflows/Ruby/badge.svg) [![Yard Docs](http://img.shields.io/badge/yard-docs-blue.svg)](http://rubydoc.info/github/stripe/subprocess/Subprocess) +# subprocess ![Ruby](https://github.com/stripe/subprocess/workflows/Ruby/badge.svg) [![Yard Docs](http://img.shields.io/badge/yard-docs-blue.svg)](http://rubydoc.info/github/stripe/subprocess/subprocess) ![Jacques Cousteau Submarine](http://i.imgur.com/lmej24F.jpg) @@ -28,8 +28,8 @@ Check user's animal allegiances: ```ruby begin - Subprocess.check_call(['grep', '-q', 'llamas', '~/favorite_animals']) -rescue Subprocess::NonZeroExit => e + subprocess.check_call(['grep', '-q', 'llamas', '~/favorite_animals']) +rescue subprocess::NonZeroExit => e puts e.message puts "Why aren't llamas one of your favorite animals?" end @@ -38,13 +38,13 @@ end Parse the output of `uptime(1)` to find the system's load: ```ruby -system_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) do |p| +subprocess.check_call(%W{sendmail -t}, :stdin => subprocess::PIPE) do |p| p.communicate <<-EMAIL From: alpaca@example.com To: llama@example.com @@ -63,7 +63,7 @@ at home using `subprocess`. We have attempted to [document][rubydoc] all of the differences, but if we have missed something, please file an issue. [python]: http://docs.python.org/library/subprocess.html -[rubydoc]: http://rubydoc.info/github/stripe/subprocess/Subprocess +[rubydoc]: http://rubydoc.info/github/stripe/subprocess/subprocess Maintenance ----------- From d284b69ce9faf69385cf380452ece09900a3bd8b Mon Sep 17 00:00:00 2001 From: Qais Patankar Date: Wed, 7 Jan 2026 01:35:07 -0500 Subject: [PATCH 2/3] Update README.md --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 9cf0532..2060fed 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# subprocess ![Ruby](https://github.com/stripe/subprocess/workflows/Ruby/badge.svg) [![Yard Docs](http://img.shields.io/badge/yard-docs-blue.svg)](http://rubydoc.info/github/stripe/subprocess/subprocess) +# Subprocess ![Ruby](https://github.com/stripe/subprocess/workflows/Ruby/badge.svg) [![Yard Docs](http://img.shields.io/badge/yard-docs-blue.svg)](http://rubydoc.info/github/stripe/subprocess/subprocess) ![Jacques Cousteau Submarine](http://i.imgur.com/lmej24F.jpg) @@ -28,8 +28,8 @@ Check user's animal allegiances: ```ruby begin - subprocess.check_call(['grep', '-q', 'llamas', '~/favorite_animals']) -rescue subprocess::NonZeroExit => e + Subprocess.check_call(['grep', '-q', 'llamas', '~/favorite_animals']) +rescue Subprocess::NonZeroExit => e puts e.message puts "Why aren't llamas one of your favorite animals?" end @@ -38,13 +38,13 @@ end Parse the output of `uptime(1)` to find the system's load: ```ruby -system_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) do |p| +Subprocess.check_call(%W{sendmail -t}, :stdin => Subprocess::PIPE) do |p| p.communicate <<-EMAIL From: alpaca@example.com To: llama@example.com From 789ce03e502e0bdfb9c2054085ce8a97b6c774a6 Mon Sep 17 00:00:00 2001 From: Qais Patankar Date: Wed, 7 Jan 2026 01:35:46 -0500 Subject: [PATCH 3/3] Fix Yard Docs link in README.md Updated the Yard Docs link in the README. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2060fed..1f2d313 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Subprocess ![Ruby](https://github.com/stripe/subprocess/workflows/Ruby/badge.svg) [![Yard Docs](http://img.shields.io/badge/yard-docs-blue.svg)](http://rubydoc.info/github/stripe/subprocess/subprocess) +# Subprocess ![Ruby](https://github.com/stripe/subprocess/workflows/Ruby/badge.svg) [![Yard Docs](http://img.shields.io/badge/yard-docs-blue.svg)](http://rubydoc.info/github/stripe/subprocess) ![Jacques Cousteau Submarine](http://i.imgur.com/lmej24F.jpg) @@ -63,7 +63,7 @@ at home using `subprocess`. We have attempted to [document][rubydoc] all of the differences, but if we have missed something, please file an issue. [python]: http://docs.python.org/library/subprocess.html -[rubydoc]: http://rubydoc.info/github/stripe/subprocess/subprocess +[rubydoc]: http://rubydoc.info/github/stripe/subprocess Maintenance -----------