From 8f51fe5c46918c64f5ae7eaa207b0752fa7ebc63 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Wed, 10 Dec 2025 10:57:17 -0800 Subject: [PATCH] Improve readme copy/paste + update URLs to HTTPS - Make it easier to copy/paste the readme commands by using code blocks - Update a few URLs to HTTPS to avoid redirects Signed-off-by: Tim Smith --- README.md | 9 ++++++--- lib/cgi.rb | 2 +- lib/cgi/core.rb | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 36ec158..6df2f38 100644 --- a/README.md +++ b/README.md @@ -22,11 +22,15 @@ gem 'cgi' And then execute: - $ bundle +```bash +bundle +``` Or install it yourself as: - $ gem install cgi +```bash +gem install cgi +``` ## Usage @@ -73,7 +77,6 @@ db.transaction do end ``` - ### Restore form values from file ```ruby diff --git a/lib/cgi.rb b/lib/cgi.rb index 5e56e65..b0b8270 100644 --- a/lib/cgi.rb +++ b/lib/cgi.rb @@ -26,7 +26,7 @@ # The file CGI::Session provides session management functionality; see that # class for more details. # -# See http://www.w3.org/CGI/ for more information on the CGI protocol. +# See https://www.w3.org/CGI/ for more information on the CGI protocol. # # == Introduction # diff --git a/lib/cgi/core.rb b/lib/cgi/core.rb index 2158a56..2b3be2b 100644 --- a/lib/cgi/core.rb +++ b/lib/cgi/core.rb @@ -481,7 +481,7 @@ def params=(hash) ## # Parses multipart form elements according to - # http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.2 + # https://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.2 # # Returns a hash of multipart form parameters with bodies of type StringIO or # Tempfile depending on whether the multipart form element exceeds 10 KB