Deprecations, disables, deletions for 3.4.0

This commit is contained in:
Mike McQuaid 2022-02-22 14:28:32 +00:00
parent 6661f5b14d
commit 38e1b3d64b
No known key found for this signature in database
GPG Key ID: 3338A31AFDB1D829
9 changed files with 5 additions and 27 deletions

View File

@ -153,14 +153,14 @@ module Cask
# @api public # @api public
sig { returns(T.self_type) } sig { returns(T.self_type) }
def before_colon def before_colon
# odeprecated "Cask::DSL::Version#before_colon", "Cask::DSL::Version#csv" odeprecated "Cask::DSL::Version#before_colon", "Cask::DSL::Version#csv"
version { split(":", 2).first } version { split(":", 2).first }
end end
# @api public # @api public
sig { returns(T.self_type) } sig { returns(T.self_type) }
def after_colon def after_colon
# odeprecated "Cask::DSL::Version#after_colon", "Cask::DSL::Version#csv" odeprecated "Cask::DSL::Version#after_colon", "Cask::DSL::Version#csv"
version { split(":", 2).second } version { split(":", 2).second }
end end

View File

@ -109,9 +109,6 @@ module Homebrew
resolve_latest_keg(name) resolve_latest_keg(name)
when :default_kegs when :default_kegs
resolve_default_keg(name) resolve_default_keg(name)
when :keg
odisabled "`load_formula_or_cask` with `method: :keg`",
"`load_formula_or_cask` with `method: :default_kegs`"
when :kegs when :kegs
_, kegs = resolve_kegs(name) _, kegs = resolve_kegs(name)
kegs kegs

View File

@ -24,9 +24,6 @@ module Homebrew
description: "List only formulae, or treat all named arguments as formulae." description: "List only formulae, or treat all named arguments as formulae."
switch "--cask", "--casks", switch "--cask", "--casks",
description: "List only casks, or treat all named arguments as casks." description: "List only casks, or treat all named arguments as casks."
switch "--unbrewed",
description: "List files in Homebrew's prefix not installed by Homebrew.",
replacement: "`brew --prefix --unbrewed`"
switch "--full-name", switch "--full-name",
description: "Print formulae with fully-qualified names. Unless `--full-name`, `--versions` "\ description: "Print formulae with fully-qualified names. Unless `--full-name`, `--versions` "\
"or `--pinned` are passed, other options (i.e. `-1`, `-l`, `-r` and `-t`) are "\ "or `--pinned` are passed, other options (i.e. `-1`, `-l`, `-r` and `-t`) are "\
@ -59,11 +56,7 @@ module Homebrew
conflicts "--pinned", "--multiple" conflicts "--pinned", "--multiple"
conflicts "--pinned", "--cask" conflicts "--pinned", "--cask"
conflicts "--cask", "--multiple" conflicts "--cask", "--multiple"
["--formula", "--cask", "--full-name", "--versions", "--pinned"].each do |flag|
conflicts "--unbrewed", flag
end
["-1", "-l", "-r", "-t"].each do |flag| ["-1", "-l", "-r", "-t"].each do |flag|
conflicts "--unbrewed", flag
conflicts "--versions", flag conflicts "--versions", flag
conflicts "--pinned", flag conflicts "--pinned", flag
end end

View File

@ -62,7 +62,7 @@ module Homebrew
def bump_cask_pr def bump_cask_pr
args = bump_cask_pr_args.parse args = bump_cask_pr_args.parse
odeprecated "`brew bump-cask-pr --write`", "`brew bump-cask-pr --write-only`" if args.write? odisabled "`brew bump-cask-pr --write`", "`brew bump-cask-pr --write-only`" if args.write?
# This will be run by `brew style` later so run it first to not start # This will be run by `brew style` later so run it first to not start
# spamming during normal output. # spamming during normal output.

View File

@ -26,10 +26,6 @@ module Homebrew
description: "Pull requests do not require approval to be merged." description: "Pull requests do not require approval to be merged."
switch "--publish", switch "--publish",
description: "Run `brew pr-publish` on matching pull requests." description: "Run `brew pr-publish` on matching pull requests."
switch "--autosquash",
description: "Instruct `brew pr-publish` to automatically reformat and reword commits "\
"in the pull request to our preferred format.",
replacement: "`--no-autosquash` to opt out"
switch "--no-autosquash", switch "--no-autosquash",
description: "Instruct `brew pr-publish` to skip automatically reformatting and rewording commits "\ description: "Instruct `brew pr-publish` to skip automatically reformatting and rewording commits "\
"in the pull request to the preferred format." "in the pull request to the preferred format."

View File

@ -16,10 +16,6 @@ module Homebrew
Publish bottles for a pull request with GitHub Actions. Publish bottles for a pull request with GitHub Actions.
Requires write access to the repository. Requires write access to the repository.
EOS EOS
switch "--autosquash",
description: "If supported on the target tap, automatically reformat and reword commits "\
"in the pull request to our preferred format.",
replacement: "`--no-autosquash` to opt out"
switch "--no-autosquash", switch "--no-autosquash",
description: "Skip automatically reformatting and rewording commits in the pull request "\ description: "Skip automatically reformatting and rewording commits in the pull request "\
"to the preferred format, even if supported on the target tap." "to the preferred format, even if supported on the target tap."

View File

@ -32,10 +32,6 @@ module Homebrew
switch "--keep-old", switch "--keep-old",
description: "If the formula specifies a rebuild version, " \ description: "If the formula specifies a rebuild version, " \
"attempt to preserve its value in the generated DSL." "attempt to preserve its value in the generated DSL."
switch "--autosquash",
description: "Automatically reformat and reword commits in the pull request to our "\
"preferred format.",
replacement: "`--no-autosquash` to opt out"
switch "--no-autosquash", switch "--no-autosquash",
description: "Skip automatically reformatting and rewording commits in the pull request to our "\ description: "Skip automatically reformatting and rewording commits in the pull request to our "\
"preferred format." "preferred format."

View File

@ -90,7 +90,7 @@ module Homebrew
def pr_upload def pr_upload
args = pr_upload_args.parse args = pr_upload_args.parse
# odeprecated "`brew pr-upload --github-org`", "`brew pr-upload` without `--github-org`" if args.github_org odeprecated "`brew pr-upload --github-org`", "`brew pr-upload` without `--github-org`" if args.github_org
json_files = Dir["*.bottle.json"] json_files = Dir["*.bottle.json"]
odie "No bottle JSON files found in the current working directory" if json_files.blank? odie "No bottle JSON files found in the current working directory" if json_files.blank?

View File

@ -82,7 +82,7 @@ class BottleDisableReason
def initialize(type, reason) def initialize(type, reason)
@type = type @type = type
@reason = reason @reason = reason
odeprecated "bottle :#{@type}" if valid? odisabled "bottle :#{@type}" if valid?
end end
def unneeded? def unneeded?