Merge pull request #12388 from nihaals/update-verified-hostnames-link

Docs: Update cask cookbook header
This commit is contained in:
Mike McQuaid 2021-11-08 13:58:30 +00:00 committed by GitHub
commit 49e4df288c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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?

View File

@ -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).