[rubygems/rubygems] Use https protocol for URLs for config mirror

example.org is used mirror URL as an example, not to make access to
a (potential) third-party domain.

Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>

https://github.com/rubygems/rubygems/commit/31230f850c
This commit is contained in:
Takuya Noguchi 2022-07-15 01:26:54 +00:00 committed by git
parent 8e451d1083
commit 7fda741f6e
2 changed files with 4 additions and 4 deletions

View File

@ -342,13 +342,13 @@ bundle config set \-\-global mirror\.SOURCE_URL MIRROR_URL
.IP "" 0 .IP "" 0
. .
.P .P
For example, to use a mirror of rubygems\.org hosted at rubygems\-mirror\.org: For example, to use a mirror of https://rubygems\.org hosted at https://example\.org:
. .
.IP "" 4 .IP "" 4
. .
.nf .nf
bundle config set \-\-global mirror\.http://rubygems\.org http://rubygems\-mirror\.org bundle config set \-\-global mirror\.https://rubygems\.org https://example\.org
. .
.fi .fi
. .

View File

@ -321,9 +321,9 @@ mirror to fetch gems.
bundle config set --global mirror.SOURCE_URL MIRROR_URL bundle config set --global mirror.SOURCE_URL MIRROR_URL
For example, to use a mirror of rubygems.org hosted at rubygems-mirror.org: For example, to use a mirror of https://rubygems.org hosted at https://example.org:
bundle config set --global mirror.http://rubygems.org http://rubygems-mirror.org bundle config set --global mirror.https://rubygems.org https://example.org
Each mirror also provides a fallback timeout setting. If the mirror does not Each mirror also provides a fallback timeout setting. If the mirror does not
respond within the fallback timeout, Bundler will try to use the original respond within the fallback timeout, Bundler will try to use the original