aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorViktor Szakats2017-03-12 19:44:01 +0000
committerViktor Szakats2017-03-14 17:27:11 +0000
commitcc8f029f222a618eb30b585ccb22efcce1e5cf91 (patch)
tree1a31cde9d122bc8b8027b201f30a8d147e96c74c
parent5d9215b2118e14cf666be3bd3c26146130ff7342 (diff)
downloadbrew-cc8f029f222a618eb30b585ccb22efcce1e5cf91.tar.bz2
secure urls + remove -k from in-doc curl command
-rw-r--r--Library/Homebrew/cask/lib/hbc/cli/home.rb2
-rw-r--r--Library/Homebrew/cask/lib/hbc/url.rb2
-rw-r--r--Library/Homebrew/dev-cmd/aspell-dictionaries.rb2
-rw-r--r--Library/Homebrew/dev-cmd/pull.rb2
-rw-r--r--Library/Homebrew/diagnostic.rb2
-rw-r--r--Library/Homebrew/extend/os/mac/hardware/cpu.rb2
-rw-r--r--Library/Homebrew/keg_relocate.rb2
-rw-r--r--Library/Homebrew/manpages/brew-cask.1.md4
-rw-r--r--Library/Homebrew/test/cask/cli/home_spec.rb2
-rw-r--r--Library/Homebrew/test/cask/download_strategy_spec.rb2
-rw-r--r--Library/Homebrew/vendor/macho/macho/utils.rb2
-rw-r--r--Library/Homebrew/version.rb14
-rw-r--r--docs/Gems,-Eggs-and-Perl-Modules.md2
-rw-r--r--docs/Python-for-Formula-Authors.md2
-rw-r--r--docs/_layouts/index.html4
-rw-r--r--docs/brew.1.html2
-rw-r--r--manpages/brew-cask.14
-rw-r--r--manpages/brew.12
18 files changed, 27 insertions, 27 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli/home.rb b/Library/Homebrew/cask/lib/hbc/cli/home.rb
index 13b721859..4734bfebb 100644
--- a/Library/Homebrew/cask/lib/hbc/cli/home.rb
+++ b/Library/Homebrew/cask/lib/hbc/cli/home.rb
@@ -4,7 +4,7 @@ module Hbc
def self.run(*cask_tokens)
if cask_tokens.empty?
odebug "Opening project homepage"
- system "/usr/bin/open", "--", "http://caskroom.github.io/"
+ system "/usr/bin/open", "--", "https://caskroom.github.io/"
else
cask_tokens.each do |cask_token|
odebug "Opening homepage for Cask #{cask_token}"
diff --git a/Library/Homebrew/cask/lib/hbc/url.rb b/Library/Homebrew/cask/lib/hbc/url.rb
index dd34119db..07b41fb80 100644
--- a/Library/Homebrew/cask/lib/hbc/url.rb
+++ b/Library/Homebrew/cask/lib/hbc/url.rb
@@ -2,7 +2,7 @@ require "forwardable"
module Hbc
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
diff --git a/Library/Homebrew/dev-cmd/aspell-dictionaries.rb b/Library/Homebrew/dev-cmd/aspell-dictionaries.rb
index 86ad037ce..955e41b01 100644
--- a/Library/Homebrew/dev-cmd/aspell-dictionaries.rb
+++ b/Library/Homebrew/dev-cmd/aspell-dictionaries.rb
@@ -10,7 +10,7 @@ module Homebrew
module_function
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"
languages = {}
diff --git a/Library/Homebrew/dev-cmd/pull.rb b/Library/Homebrew/dev-cmd/pull.rb
index 1bc87add1..ec89b14b8 100644
--- a/Library/Homebrew/dev-cmd/pull.rb
+++ b/Library/Homebrew/dev-cmd/pull.rb
@@ -13,7 +13,7 @@
#:
#: ~ 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
#: commit and publishing files on Bintray.
diff --git a/Library/Homebrew/diagnostic.rb b/Library/Homebrew/diagnostic.rb
index 5ac57273a..c8c4b83d2 100644
--- a/Library/Homebrew/diagnostic.rb
+++ b/Library/Homebrew/diagnostic.rb
@@ -647,7 +647,7 @@ module Homebrew
Setting DYLD_INSERT_LIBRARIES can cause Go builds to fail.
Having this set is common if you use this software:
- #{Formatter.url("http://asepsis.binaryage.com/")}
+ #{Formatter.url("https://asepsis.binaryage.com/")}
EOS
end
diff --git a/Library/Homebrew/extend/os/mac/hardware/cpu.rb b/Library/Homebrew/extend/os/mac/hardware/cpu.rb
index f759895c7..f180995fb 100644
--- a/Library/Homebrew/extend/os/mac/hardware/cpu.rb
+++ b/Library/Homebrew/extend/os/mac/hardware/cpu.rb
@@ -102,7 +102,7 @@ module Hardware
# Amazingly, this order (64, then 32) matters. It shouldn't, but it
# does. GCC (some versions? some systems?) can blow up if the other
# 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
end
end
diff --git a/Library/Homebrew/keg_relocate.rb b/Library/Homebrew/keg_relocate.rb
index d17e7f75a..834cda768 100644
--- a/Library/Homebrew/keg_relocate.rb
+++ b/Library/Homebrew/keg_relocate.rb
@@ -119,7 +119,7 @@ class Keg
# file has known issues with reading files on other locales. Has
# been fixed upstream for some time, but a sufficiently new enough
# 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
files = Set.new path.find.reject { |pn|
next true if pn.symlink?
diff --git a/Library/Homebrew/manpages/brew-cask.1.md b/Library/Homebrew/manpages/brew-cask.1.md
index 5ca863815..56781bd76 100644
--- a/Library/Homebrew/manpages/brew-cask.1.md
+++ b/Library/Homebrew/manpages/brew-cask.1.md
@@ -64,7 +64,7 @@ names, and other aspects of this manual are still subject to change.
* `home` or `homepage` [ <token> ... ]:
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> ... ]:
Display information about the given Cask.
@@ -248,7 +248,7 @@ Environment variables specific to Homebrew-Cask:
## 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>
diff --git a/Library/Homebrew/test/cask/cli/home_spec.rb b/Library/Homebrew/test/cask/cli/home_spec.rb
index 5208b3390..7be26dd4c 100644
--- a/Library/Homebrew/test/cask/cli/home_spec.rb
+++ b/Library/Homebrew/test/cask/cli/home_spec.rb
@@ -40,7 +40,7 @@ describe Hbc::CLI::Home, :cask do
it "opens the project page when no Cask is specified" do
Hbc::CLI::Home.run
expect(Hbc::CLI::Home.system_commands).to eq [
- ["/usr/bin/open", "--", "http://caskroom.github.io/"],
+ ["/usr/bin/open", "--", "https://caskroom.github.io/"],
]
end
end
diff --git a/Library/Homebrew/test/cask/download_strategy_spec.rb b/Library/Homebrew/test/cask/download_strategy_spec.rb
index 0d92b74ec..416a830ea 100644
--- a/Library/Homebrew/test/cask/download_strategy_spec.rb
+++ b/Library/Homebrew/test/cask/download_strategy_spec.rb
@@ -60,7 +60,7 @@ describe "download strategies", :cask do
downloader.fetch
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
diff --git a/Library/Homebrew/vendor/macho/macho/utils.rb b/Library/Homebrew/vendor/macho/macho/utils.rb
index deb4c9c66..cedd0bc1c 100644
--- a/Library/Homebrew/vendor/macho/macho/utils.rb
+++ b/Library/Homebrew/vendor/macho/macho/utils.rb
@@ -5,7 +5,7 @@ module MachO
# @param value [Fixnum] the number being rounded
# @param round [Fixnum] the number being rounded with
# @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)
round -= 1
value += round
diff --git a/Library/Homebrew/version.rb b/Library/Homebrew/version.rb
index 77f270dd9..b9f512a50 100644
--- a/Library/Homebrew/version.rb
+++ b/Library/Homebrew/version.rb
@@ -360,8 +360,8 @@ class Version
m = /-((?:\d+\.)*\d+-(?:alpha|beta|rc)\d*)$/.match(stem)
return m.captures.first unless m.nil?
- # e.g. http://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/libidn/libidn-1.29-win64.zip
+ # e.g. https://ftpmirror.gnu.org/libmicrohttpd/libmicrohttpd-0.9.17-w32.zip
m = /-(\d+\.\d+(?:\.\d+)?)-w(?:in)?(?:32|64)$/.match(stem)
return m.captures.first unless m.nil?
@@ -372,11 +372,11 @@ class Version
m = /\.(\d+\.\d+(?:\.\d+)?)\+opam$/.match(stem)
return m.captures.first unless m.nil?
- # e.g. http://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. http://ftpmirror.gnu.org/libtasn1/libtasn1-2.8-x86.zip
- # e.g. http://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-1.i686.rpm
+ # e.g. https://ftpmirror.gnu.org/autogen/autogen-5.5.7-5.i386.rpm
+ # e.g. https://ftpmirror.gnu.org/libtasn1/libtasn1-2.8-x86.zip
+ # e.g. https://ftpmirror.gnu.org/libtasn1/libtasn1-2.8-x64.zip
+ # 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)
return m.captures.first unless m.nil?
diff --git a/docs/Gems,-Eggs-and-Perl-Modules.md b/docs/Gems,-Eggs-and-Perl-Modules.md
index f86124f66..07d810c77 100644
--- a/docs/Gems,-Eggs-and-Perl-Modules.md
+++ b/docs/Gems,-Eggs-and-Perl-Modules.md
@@ -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 :
```bash
-curl -kL http://install.perlbrew.pl | bash
+curl -L https://install.perlbrew.pl | bash
perlbrew install perl-5.16.2
echo ".~/perl5/perlbrew/etc/bashrc" >> ~/.bashrc
```
diff --git a/docs/Python-for-Formula-Authors.md b/docs/Python-for-Formula-Authors.md
index 0867e8dd8..7f650f967 100644
--- a/docs/Python-for-Formula-Authors.md
+++ b/docs/Python-for-Formula-Authors.md
@@ -213,7 +213,7 @@ Distribute (not to be confused with distutils) is an obsolete fork of setuptools
## 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:
diff --git a/docs/_layouts/index.html b/docs/_layouts/index.html
index 44debdc5f..570718287 100644
--- a/docs/_layouts/index.html
+++ b/docs/_layouts/index.html
@@ -115,7 +115,7 @@ end
<div class="group row">
<h2 id="further-doc">{{ page.pagecontent.doc.further }}</h2>
<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>
</li>
@@ -124,7 +124,7 @@ end
<div class="group row">
<h2 id="homebrew-community">{{ page.pagecontent.doc.community }}</h2>
<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>
</li>
diff --git a/docs/brew.1.html b/docs/brew.1.html
index 7a06426ae..2d2361012 100644
--- a/docs/brew.1.html
+++ b/docs/brew.1.html
@@ -592,7 +592,7 @@ Optionally, installs the formulae changed by the patch.</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
commit and publishing files on Bintray.</p>
diff --git a/manpages/brew-cask.1 b/manpages/brew-cask.1
index 64ff39c59..c5708f7cb 100644
--- a/manpages/brew-cask.1
+++ b/manpages/brew-cask.1
@@ -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\.
.
.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
\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"
-The Homebrew\-Cask home page: \fIhttp://caskroom\.github\.io\fR
+The Homebrew\-Cask home page: \fIhttps://caskroom\.github\.io/\fR
.
.P
The Homebrew\-Cask GitHub page: \fIhttps://github\.com/caskroom/homebrew\-cask\fR
diff --git a/manpages/brew.1 b/manpages/brew.1
index 7cad10571..bdda89fb0 100644
--- a/manpages/brew.1
+++ b/manpages/brew.1
@@ -786,7 +786,7 @@ Each \fIpatch\-source\fR may be one of:
~ The URL of a commit on GitHub
.
.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
If \fB\-\-bottle\fR is passed, handle bottles, pulling the bottle\-update commit and publishing files on Bintray\.