mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
upgrade more urls to https
This commit is contained in:
parent
85fd43d4fe
commit
b44c7a1022
@ -36,7 +36,7 @@ module Homebrew
|
|||||||
elsif ARGV.include? "--fedora"
|
elsif ARGV.include? "--fedora"
|
||||||
exec_browser "https://apps.fedoraproject.org/packages/s/#{ARGV.next}"
|
exec_browser "https://apps.fedoraproject.org/packages/s/#{ARGV.next}"
|
||||||
elsif ARGV.include? "--ubuntu"
|
elsif ARGV.include? "--ubuntu"
|
||||||
exec_browser "http://packages.ubuntu.com/search?keywords=#{ARGV.next}&searchon=names&suite=all§ion=all"
|
exec_browser "https://packages.ubuntu.com/search?keywords=#{ARGV.next}&searchon=names&suite=all§ion=all"
|
||||||
elsif ARGV.include? "--desc"
|
elsif ARGV.include? "--desc"
|
||||||
query = ARGV.next
|
query = ARGV.next
|
||||||
regex = query_regexp(query)
|
regex = query_regexp(query)
|
||||||
|
@ -3,7 +3,7 @@ require "tmpdir"
|
|||||||
require "etc"
|
require "etc"
|
||||||
|
|
||||||
# Homebrew extends Ruby's `FileUtils` to make our code more readable.
|
# Homebrew extends Ruby's `FileUtils` to make our code more readable.
|
||||||
# @see http://ruby-doc.org/stdlib-2.0.0/libdoc/fileutils/rdoc/FileUtils.html Ruby's FileUtils API
|
# @see https://ruby-doc.org/stdlib-2.0.0/libdoc/fileutils/rdoc/FileUtils.html Ruby's FileUtils API
|
||||||
module FileUtils
|
module FileUtils
|
||||||
# Create a temporary directory then yield. When the block returns,
|
# Create a temporary directory then yield. When the block returns,
|
||||||
# recursively delete the temporary directory. Passing opts[:retain]
|
# recursively delete the temporary directory. Passing opts[:retain]
|
||||||
|
@ -59,7 +59,7 @@ module DiskUsageExtension
|
|||||||
end
|
end
|
||||||
|
|
||||||
# Homebrew extends Ruby's `Pathname` to make our code more readable.
|
# Homebrew extends Ruby's `Pathname` to make our code more readable.
|
||||||
# @see http://ruby-doc.org/stdlib-1.8.7/libdoc/pathname/rdoc/Pathname.html Ruby's Pathname API
|
# @see https://ruby-doc.org/stdlib-1.8.7/libdoc/pathname/rdoc/Pathname.html Ruby's Pathname API
|
||||||
class Pathname
|
class Pathname
|
||||||
include DiskUsageExtension
|
include DiskUsageExtension
|
||||||
|
|
||||||
|
@ -53,7 +53,7 @@ describe "brew search", :integration_test do
|
|||||||
"debian" => "https://packages.debian.org/search?keywords=testball&searchon=names&suite=all§ion=all",
|
"debian" => "https://packages.debian.org/search?keywords=testball&searchon=names&suite=all§ion=all",
|
||||||
"opensuse" => "https://software.opensuse.org/search?q=testball",
|
"opensuse" => "https://software.opensuse.org/search?q=testball",
|
||||||
"fedora" => "https://apps.fedoraproject.org/packages/s/testball",
|
"fedora" => "https://apps.fedoraproject.org/packages/s/testball",
|
||||||
"ubuntu" => "http://packages.ubuntu.com/search?keywords=testball&searchon=names&suite=all§ion=all",
|
"ubuntu" => "https://packages.ubuntu.com/search?keywords=testball&searchon=names&suite=all§ion=all",
|
||||||
}.each do |flag, url|
|
}.each do |flag, url|
|
||||||
specify "--#{flag}" do
|
specify "--#{flag}" do
|
||||||
expect { brew "search", "--#{flag}", "testball", "HOMEBREW_BROWSER" => "echo" }
|
expect { brew "search", "--#{flag}", "testball", "HOMEBREW_BROWSER" => "echo" }
|
||||||
|
@ -693,7 +693,7 @@ Note that [`option`](http://www.rubydoc.info/github/Homebrew/brew/master/Formula
|
|||||||
|
|
||||||
### File level operations
|
### File level operations
|
||||||
|
|
||||||
You can use the file utilities provided by Ruby's [`FileUtils`](http://www.ruby-doc.org/stdlib/libdoc/fileutils/rdoc/index.html). These are included in the `Formula` class, so you do not need the `FileUtils.` prefix to use them.
|
You can use the file utilities provided by Ruby's [`FileUtils`](https://www.ruby-doc.org/stdlib/libdoc/fileutils/rdoc/index.html). These are included in the `Formula` class, so you do not need the `FileUtils.` prefix to use them.
|
||||||
|
|
||||||
When creating symlinks, take special care to ensure they are *relative* symlinks. This makes it easier to create a relocatable bottle. For example, to create a symlink in `bin` to an executable in `libexec`, use
|
When creating symlinks, take special care to ensure they are *relative* symlinks. This makes it easier to create a relocatable bottle. For example, to create a symlink in `bin` to an executable in `libexec`, use
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ Homebrew's audience includes users with a wide range of education and experience
|
|||||||
|
|
||||||
We strive for "correct" but not "fancy" usage. Think newspaper article, not academic paper.
|
We strive for "correct" but not "fancy" usage. Think newspaper article, not academic paper.
|
||||||
|
|
||||||
This is a set of guidelines to be applied using human judgment, not a set of hard and fast rules. It is like [The Economist's Style Guide](http://www.economist.com/styleguide/introduction) or [Garner's Modern American Usage](https://en.wikipedia.org/wiki/Garner's_Modern_American_Usage). It is less like the [Ruby Style Guide](https://github.com/bbatsov/ruby-style-guide). All guidelines here are open to interpretation and discussion. 100% conformance to these guidelines is *not* a goal.
|
This is a set of guidelines to be applied using human judgment, not a set of hard and fast rules. It is like [The Economist's Style Guide](https://www.economist.com/styleguide/introduction) or [Garner's Modern American Usage](https://en.wikipedia.org/wiki/Garner's_Modern_American_Usage). It is less like the [Ruby Style Guide](https://github.com/bbatsov/ruby-style-guide). All guidelines here are open to interpretation and discussion. 100% conformance to these guidelines is *not* a goal.
|
||||||
|
|
||||||
The intent of this document is to help authors make decisions about clarity, style, and consistency. It is not to help settle arguments about who knows English better. Don't use this document to be a jerk.
|
The intent of this document is to help authors make decisions about clarity, style, and consistency. It is not to help settle arguments about who knows English better. Don't use this document to be a jerk.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user