mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Update cask cookbook header
This commit is contained in:
parent
cb249836cb
commit
1984ca098d
@ -426,7 +426,7 @@ module Cask
|
|||||||
cask.url.from_block?
|
cask.url.from_block?
|
||||||
end
|
end
|
||||||
|
|
||||||
VERIFIED_URL_REFERENCE_URL = "https://docs.brew.sh/Cask-Cookbook#when-url-and-homepage-hostnames-differ-add-verified"
|
VERIFIED_URL_REFERENCE_URL = "https://docs.brew.sh/Cask-Cookbook#when-url-and-homepage-domains-differ-add-verified"
|
||||||
|
|
||||||
def check_unnecessary_verified
|
def check_unnecessary_verified
|
||||||
return if block_url_offline?
|
return if block_url_offline?
|
||||||
|
@ -1099,7 +1099,7 @@ When a plain URL string is insufficient to fetch a file, additional information
|
|||||||
|
|
||||||
| key | value |
|
| key | value |
|
||||||
| ------------------ | ----------- |
|
| ------------------ | ----------- |
|
||||||
| `verified:` | a string repeating the beginning of `url`, for verification purposes. [See below](#when-url-and-homepage-hostnames-differ-add-verified).
|
| `verified:` | a string repeating the beginning of `url`, for verification purposes. [See below](#when-url-and-homepage-domains-differ-add-verified).
|
||||||
| `using:` | the symbol `:post` is the only legal value
|
| `using:` | the symbol `:post` is the only legal value
|
||||||
| `cookies:` | a hash of cookies to be set in the download request
|
| `cookies:` | a hash of cookies to be set in the download request
|
||||||
| `referer:` | a string holding the URL to set as referer in the download request
|
| `referer:` | a string holding the URL to set as referer in the download request
|
||||||
@ -1113,7 +1113,7 @@ Example of using `referer:`: [rrootage.rb](https://github.com/Homebrew/homebrew-
|
|||||||
|
|
||||||
Example of using `header:`: [issue-325182724](https://github.com/Homebrew/brew/pull/6545#issue-325182724)
|
Example of using `header:`: [issue-325182724](https://github.com/Homebrew/brew/pull/6545#issue-325182724)
|
||||||
|
|
||||||
#### When URL and Homepage Hostnames Differ, Add `verified:`
|
#### When URL and Homepage Domains Differ, Add `verified:`
|
||||||
|
|
||||||
When the domains of `url` and `homepage` differ, the discrepancy should be documented with the `verified:` parameter, repeating the smallest possible portion of the URL that uniquely identifies the app or vendor, excluding the protocol. Example: [`shotcut.rb`](https://github.com/Homebrew/homebrew-cask/blob/08733296b49c59c58b6beeada59ed4207cef60c3/Casks/shotcut.rb#L5L6).
|
When the domains of `url` and `homepage` differ, the discrepancy should be documented with the `verified:` parameter, repeating the smallest possible portion of the URL that uniquely identifies the app or vendor, excluding the protocol. Example: [`shotcut.rb`](https://github.com/Homebrew/homebrew-cask/blob/08733296b49c59c58b6beeada59ed4207cef60c3/Casks/shotcut.rb#L5L6).
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user