mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
secure urls + remove -k from in-doc curl command
This commit is contained in:
parent
5d9215b211
commit
cc8f029f22
@ -4,7 +4,7 @@ module Hbc
|
|||||||
def self.run(*cask_tokens)
|
def self.run(*cask_tokens)
|
||||||
if cask_tokens.empty?
|
if cask_tokens.empty?
|
||||||
odebug "Opening project homepage"
|
odebug "Opening project homepage"
|
||||||
system "/usr/bin/open", "--", "http://caskroom.github.io/"
|
system "/usr/bin/open", "--", "https://caskroom.github.io/"
|
||||||
else
|
else
|
||||||
cask_tokens.each do |cask_token|
|
cask_tokens.each do |cask_token|
|
||||||
odebug "Opening homepage for Cask #{cask_token}"
|
odebug "Opening homepage for Cask #{cask_token}"
|
||||||
|
@ -2,7 +2,7 @@ require "forwardable"
|
|||||||
|
|
||||||
module Hbc
|
module Hbc
|
||||||
class URL
|
class URL
|
||||||
FAKE_USER_AGENT = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10) http://caskroom.github.io".freeze
|
FAKE_USER_AGENT = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10) https://caskroom.github.io".freeze
|
||||||
|
|
||||||
attr_reader :using, :revision, :trust_cert, :uri, :cookies, :referer, :data
|
attr_reader :using, :revision, :trust_cert, :uri, :cookies, :referer, :data
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ module Homebrew
|
|||||||
module_function
|
module_function
|
||||||
|
|
||||||
def aspell_dictionaries
|
def aspell_dictionaries
|
||||||
dict_url = "http://ftpmirror.gnu.org/aspell/dict"
|
dict_url = "https://ftpmirror.gnu.org/aspell/dict"
|
||||||
dict_mirror = "https://ftp.gnu.org/gnu/aspell/dict"
|
dict_mirror = "https://ftp.gnu.org/gnu/aspell/dict"
|
||||||
languages = {}
|
languages = {}
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
#:
|
#:
|
||||||
#: ~ The URL of a commit on GitHub
|
#: ~ The URL of a commit on GitHub
|
||||||
#:
|
#:
|
||||||
#: ~ A "http://bot.brew.sh/job/..." string specifying a testing job ID
|
#: ~ A "https://bot.brew.sh/job/..." string specifying a testing job ID
|
||||||
#:
|
#:
|
||||||
#: If `--bottle` is passed, handle bottles, pulling the bottle-update
|
#: If `--bottle` is passed, handle bottles, pulling the bottle-update
|
||||||
#: commit and publishing files on Bintray.
|
#: commit and publishing files on Bintray.
|
||||||
|
@ -647,7 +647,7 @@ module Homebrew
|
|||||||
|
|
||||||
Setting DYLD_INSERT_LIBRARIES can cause Go builds to fail.
|
Setting DYLD_INSERT_LIBRARIES can cause Go builds to fail.
|
||||||
Having this set is common if you use this software:
|
Having this set is common if you use this software:
|
||||||
#{Formatter.url("http://asepsis.binaryage.com/")}
|
#{Formatter.url("https://asepsis.binaryage.com/")}
|
||||||
EOS
|
EOS
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -102,7 +102,7 @@ module Hardware
|
|||||||
# Amazingly, this order (64, then 32) matters. It shouldn't, but it
|
# Amazingly, this order (64, then 32) matters. It shouldn't, but it
|
||||||
# does. GCC (some versions? some systems?) can blow up if the other
|
# does. GCC (some versions? some systems?) can blow up if the other
|
||||||
# order is used.
|
# order is used.
|
||||||
# http://superuser.com/questions/740563/gcc-4-8-on-macos-fails-depending-on-arch-order
|
# https://superuser.com/questions/740563/gcc-4-8-on-macos-fails-depending-on-arch-order
|
||||||
[arch_64_bit, arch_32_bit].extend ArchitectureListExtension
|
[arch_64_bit, arch_32_bit].extend ArchitectureListExtension
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -119,7 +119,7 @@ class Keg
|
|||||||
# file has known issues with reading files on other locales. Has
|
# file has known issues with reading files on other locales. Has
|
||||||
# been fixed upstream for some time, but a sufficiently new enough
|
# been fixed upstream for some time, but a sufficiently new enough
|
||||||
# file with that fix is only available in macOS Sierra.
|
# file with that fix is only available in macOS Sierra.
|
||||||
# http://bugs.gw.com/view.php?id=292
|
# https://bugs.gw.com/view.php?id=292
|
||||||
with_custom_locale("C") do
|
with_custom_locale("C") do
|
||||||
files = Set.new path.find.reject { |pn|
|
files = Set.new path.find.reject { |pn|
|
||||||
next true if pn.symlink?
|
next true if pn.symlink?
|
||||||
|
@ -64,7 +64,7 @@ names, and other aspects of this manual are still subject to change.
|
|||||||
* `home` or `homepage` [ <token> ... ]:
|
* `home` or `homepage` [ <token> ... ]:
|
||||||
Display the homepage associated with a given Cask in a browser.
|
Display the homepage associated with a given Cask in a browser.
|
||||||
|
|
||||||
With no arguments, display the project page <http://caskroom.github.io>.
|
With no arguments, display the project page <https://caskroom.github.io/>.
|
||||||
|
|
||||||
* `info` or `abv` <token> [ <token> ... ]:
|
* `info` or `abv` <token> [ <token> ... ]:
|
||||||
Display information about the given Cask.
|
Display information about the given Cask.
|
||||||
@ -248,7 +248,7 @@ Environment variables specific to Homebrew-Cask:
|
|||||||
|
|
||||||
## SEE ALSO
|
## SEE ALSO
|
||||||
|
|
||||||
The Homebrew-Cask home page: <http://caskroom.github.io>
|
The Homebrew-Cask home page: <https://caskroom.github.io/>
|
||||||
|
|
||||||
The Homebrew-Cask GitHub page: <https://github.com/caskroom/homebrew-cask>
|
The Homebrew-Cask GitHub page: <https://github.com/caskroom/homebrew-cask>
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ describe Hbc::CLI::Home, :cask do
|
|||||||
it "opens the project page when no Cask is specified" do
|
it "opens the project page when no Cask is specified" do
|
||||||
Hbc::CLI::Home.run
|
Hbc::CLI::Home.run
|
||||||
expect(Hbc::CLI::Home.system_commands).to eq [
|
expect(Hbc::CLI::Home.system_commands).to eq [
|
||||||
["/usr/bin/open", "--", "http://caskroom.github.io/"],
|
["/usr/bin/open", "--", "https://caskroom.github.io/"],
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -60,7 +60,7 @@ describe "download strategies", :cask do
|
|||||||
downloader.fetch
|
downloader.fetch
|
||||||
end
|
end
|
||||||
|
|
||||||
expect(curl_args.each_cons(2)).to include(["-A", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10) http://caskroom.github.io"])
|
expect(curl_args.each_cons(2)).to include(["-A", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10) https://caskroom.github.io"])
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
2
Library/Homebrew/vendor/macho/macho/utils.rb
vendored
2
Library/Homebrew/vendor/macho/macho/utils.rb
vendored
@ -5,7 +5,7 @@ module MachO
|
|||||||
# @param value [Fixnum] the number being rounded
|
# @param value [Fixnum] the number being rounded
|
||||||
# @param round [Fixnum] the number being rounded with
|
# @param round [Fixnum] the number being rounded with
|
||||||
# @return [Fixnum] the rounded value
|
# @return [Fixnum] the rounded value
|
||||||
# @see http://www.opensource.apple.com/source/cctools/cctools-870/libstuff/rnd.c
|
# @see https://www.opensource.apple.com/source/cctools/cctools-870/libstuff/rnd.c
|
||||||
def self.round(value, round)
|
def self.round(value, round)
|
||||||
round -= 1
|
round -= 1
|
||||||
value += round
|
value += round
|
||||||
|
@ -360,8 +360,8 @@ class Version
|
|||||||
m = /-((?:\d+\.)*\d+-(?:alpha|beta|rc)\d*)$/.match(stem)
|
m = /-((?:\d+\.)*\d+-(?:alpha|beta|rc)\d*)$/.match(stem)
|
||||||
return m.captures.first unless m.nil?
|
return m.captures.first unless m.nil?
|
||||||
|
|
||||||
# e.g. http://ftpmirror.gnu.org/libidn/libidn-1.29-win64.zip
|
# e.g. https://ftpmirror.gnu.org/libidn/libidn-1.29-win64.zip
|
||||||
# e.g. http://ftpmirror.gnu.org/libmicrohttpd/libmicrohttpd-0.9.17-w32.zip
|
# e.g. https://ftpmirror.gnu.org/libmicrohttpd/libmicrohttpd-0.9.17-w32.zip
|
||||||
m = /-(\d+\.\d+(?:\.\d+)?)-w(?:in)?(?:32|64)$/.match(stem)
|
m = /-(\d+\.\d+(?:\.\d+)?)-w(?:in)?(?:32|64)$/.match(stem)
|
||||||
return m.captures.first unless m.nil?
|
return m.captures.first unless m.nil?
|
||||||
|
|
||||||
@ -372,11 +372,11 @@ class Version
|
|||||||
m = /\.(\d+\.\d+(?:\.\d+)?)\+opam$/.match(stem)
|
m = /\.(\d+\.\d+(?:\.\d+)?)\+opam$/.match(stem)
|
||||||
return m.captures.first unless m.nil?
|
return m.captures.first unless m.nil?
|
||||||
|
|
||||||
# e.g. http://ftpmirror.gnu.org/mtools/mtools-4.0.18-1.i686.rpm
|
# e.g. https://ftpmirror.gnu.org/mtools/mtools-4.0.18-1.i686.rpm
|
||||||
# e.g. http://ftpmirror.gnu.org/autogen/autogen-5.5.7-5.i386.rpm
|
# e.g. https://ftpmirror.gnu.org/autogen/autogen-5.5.7-5.i386.rpm
|
||||||
# e.g. http://ftpmirror.gnu.org/libtasn1/libtasn1-2.8-x86.zip
|
# e.g. https://ftpmirror.gnu.org/libtasn1/libtasn1-2.8-x86.zip
|
||||||
# e.g. http://ftpmirror.gnu.org/libtasn1/libtasn1-2.8-x64.zip
|
# e.g. https://ftpmirror.gnu.org/libtasn1/libtasn1-2.8-x64.zip
|
||||||
# e.g. http://ftpmirror.gnu.org/mtools/mtools_4.0.18_i386.deb
|
# e.g. https://ftpmirror.gnu.org/mtools/mtools_4.0.18_i386.deb
|
||||||
m = /[-_](\d+\.\d+(?:\.\d+)?(?:-\d+)?)[-_.](?:i[36]86|x86|x64(?:[-_](?:32|64))?)$/.match(stem)
|
m = /[-_](\d+\.\d+(?:\.\d+)?(?:-\d+)?)[-_.](?:i[36]86|x86|x64(?:[-_](?:32|64))?)$/.match(stem)
|
||||||
return m.captures.first unless m.nil?
|
return m.captures.first unless m.nil?
|
||||||
|
|
||||||
|
@ -131,7 +131,7 @@ If you don’t even want (or can’t) use sudo for bootstrapping
|
|||||||
|
|
||||||
Another alternative is to use `perlbrew` to install a separate copy of Perl in your home directory, or wherever you like :
|
Another alternative is to use `perlbrew` to install a separate copy of Perl in your home directory, or wherever you like :
|
||||||
```bash
|
```bash
|
||||||
curl -kL http://install.perlbrew.pl | bash
|
curl -L https://install.perlbrew.pl | bash
|
||||||
perlbrew install perl-5.16.2
|
perlbrew install perl-5.16.2
|
||||||
echo ".~/perl5/perlbrew/etc/bashrc" >> ~/.bashrc
|
echo ".~/perl5/perlbrew/etc/bashrc" >> ~/.bashrc
|
||||||
```
|
```
|
||||||
|
@ -213,7 +213,7 @@ Distribute (not to be confused with distutils) is an obsolete fork of setuptools
|
|||||||
|
|
||||||
## What is `--single-version-externally-managed`?
|
## What is `--single-version-externally-managed`?
|
||||||
|
|
||||||
`--single-version-externally-managed` ("SVEM") is a setuptools-only [argument to setup.py install](http://setuptools.readthedocs.io/en/latest/setuptools.html?#install-run-easy-install-or-old-style-installation). The primary effect of SVEM is to use distutils to perform the install instead of using setuptools' `easy_install`.
|
`--single-version-externally-managed` ("SVEM") is a setuptools-only [argument to setup.py install](https://setuptools.readthedocs.io/en/latest/setuptools.html?#install-run-easy-install-or-old-style-installation). The primary effect of SVEM is to use distutils to perform the install instead of using setuptools' `easy_install`.
|
||||||
|
|
||||||
`easy_install` does a few things that we need to avoid:
|
`easy_install` does a few things that we need to avoid:
|
||||||
|
|
||||||
|
@ -115,7 +115,7 @@ end
|
|||||||
<div class="group row">
|
<div class="group row">
|
||||||
<h2 id="further-doc">{{ page.pagecontent.doc.further }}</h2>
|
<h2 id="further-doc">{{ page.pagecontent.doc.further }}</h2>
|
||||||
<div class="button">
|
<div class="button">
|
||||||
<p><a href="http://docs.brew.sh">docs.brew.sh</a></p>
|
<p><a href="http://docs.brew.sh/">docs.brew.sh</a></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
@ -124,7 +124,7 @@ end
|
|||||||
<div class="group row">
|
<div class="group row">
|
||||||
<h2 id="homebrew-community">{{ page.pagecontent.doc.community }}</h2>
|
<h2 id="homebrew-community">{{ page.pagecontent.doc.community }}</h2>
|
||||||
<div class="button">
|
<div class="button">
|
||||||
<p><a href="http://discourse.brew.sh">discourse.brew.sh</a></p>
|
<p><a href="https://discourse.brew.sh/">discourse.brew.sh</a></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
@ -592,7 +592,7 @@ Optionally, installs the formulae changed by the patch.</p>
|
|||||||
|
|
||||||
<p> ~ The URL of a commit on GitHub</p>
|
<p> ~ The URL of a commit on GitHub</p>
|
||||||
|
|
||||||
<p> ~ A "http://bot.brew.sh/job/..." string specifying a testing job ID</p>
|
<p> ~ A "https://bot.brew.sh/job/..." string specifying a testing job ID</p>
|
||||||
|
|
||||||
<p>If <code>--bottle</code> is passed, handle bottles, pulling the bottle-update
|
<p>If <code>--bottle</code> is passed, handle bottles, pulling the bottle-update
|
||||||
commit and publishing files on Bintray.</p>
|
commit and publishing files on Bintray.</p>
|
||||||
|
@ -67,7 +67,7 @@ Download remote application files for the given Cask to the local cache\. With \
|
|||||||
Display the homepage associated with a given Cask in a browser\.
|
Display the homepage associated with a given Cask in a browser\.
|
||||||
.
|
.
|
||||||
.IP
|
.IP
|
||||||
With no arguments, display the project page \fIhttp://caskroom\.github\.io\fR\.
|
With no arguments, display the project page \fIhttps://caskroom\.github\.io/\fR\.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
\fBinfo\fR or \fBabv\fR \fItoken\fR [ \fItoken\fR \.\.\. ]
|
\fBinfo\fR or \fBabv\fR \fItoken\fR [ \fItoken\fR \.\.\. ]
|
||||||
@ -288,7 +288,7 @@ This variable may contain any arguments normally used as options on the command\
|
|||||||
|
|
||||||
.
|
.
|
||||||
.SH "SEE ALSO"
|
.SH "SEE ALSO"
|
||||||
The Homebrew\-Cask home page: \fIhttp://caskroom\.github\.io\fR
|
The Homebrew\-Cask home page: \fIhttps://caskroom\.github\.io/\fR
|
||||||
.
|
.
|
||||||
.P
|
.P
|
||||||
The Homebrew\-Cask GitHub page: \fIhttps://github\.com/caskroom/homebrew\-cask\fR
|
The Homebrew\-Cask GitHub page: \fIhttps://github\.com/caskroom/homebrew\-cask\fR
|
||||||
|
@ -786,7 +786,7 @@ Each \fIpatch\-source\fR may be one of:
|
|||||||
~ The URL of a commit on GitHub
|
~ The URL of a commit on GitHub
|
||||||
.
|
.
|
||||||
.IP
|
.IP
|
||||||
~ A "http://bot\.brew\.sh/job/\.\.\." string specifying a testing job ID
|
~ A "https://bot\.brew\.sh/job/\.\.\." string specifying a testing job ID
|
||||||
.
|
.
|
||||||
.IP
|
.IP
|
||||||
If \fB\-\-bottle\fR is passed, handle bottles, pulling the bottle\-update commit and publishing files on Bintray\.
|
If \fB\-\-bottle\fR is passed, handle bottles, pulling the bottle\-update commit and publishing files on Bintray\.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user