Merge pull request #13743 from MikeMcQuaid/odisabled_remove
Remove odisabled for 3.6.0
This commit is contained in:
commit
aa297cd8d1
@ -150,20 +150,6 @@ module Cask
|
|||||||
version { split(",", 2).second }
|
version { split(",", 2).second }
|
||||||
end
|
end
|
||||||
|
|
||||||
# @api public
|
|
||||||
sig { returns(T.self_type) }
|
|
||||||
def before_colon
|
|
||||||
odisabled "Cask::DSL::Version#before_colon", "Cask::DSL::Version#csv"
|
|
||||||
version { split(":", 2).first }
|
|
||||||
end
|
|
||||||
|
|
||||||
# @api public
|
|
||||||
sig { returns(T.self_type) }
|
|
||||||
def after_colon
|
|
||||||
odisabled "Cask::DSL::Version#after_colon", "Cask::DSL::Version#csv"
|
|
||||||
version { split(":", 2).second }
|
|
||||||
end
|
|
||||||
|
|
||||||
# @api public
|
# @api public
|
||||||
sig { returns(T.self_type) }
|
sig { returns(T.self_type) }
|
||||||
def no_dividers
|
def no_dividers
|
||||||
|
@ -1,21 +1,2 @@
|
|||||||
# typed: true
|
# typed: true
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Cask
|
|
||||||
class Cask
|
|
||||||
extend Enumerable
|
|
||||||
|
|
||||||
def self.each(&block)
|
|
||||||
odisabled "`Enumerable` methods on `Cask::Cask`",
|
|
||||||
"`Cask::Cask.all` (but avoid looping over all casks, it's slow and insecure)"
|
|
||||||
|
|
||||||
return to_enum unless block
|
|
||||||
|
|
||||||
Tap.flat_map(&:cask_files).each do |f|
|
|
||||||
yield CaskLoader::FromTapPathLoader.new(f).load(config: nil)
|
|
||||||
rescue CaskUnreadableError => e
|
|
||||||
opoo e.message
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
@ -1,20 +1,2 @@
|
|||||||
# typed: true
|
# typed: true
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class Formula
|
|
||||||
extend Enumerable
|
|
||||||
|
|
||||||
def self.each(&_block)
|
|
||||||
odisabled "`Enumerable` methods on `Formula`",
|
|
||||||
"`Formula.all` (but avoid looping over all formulae, it's slow and insecure)"
|
|
||||||
|
|
||||||
files.each do |file|
|
|
||||||
yield Formulary.factory(file)
|
|
||||||
rescue FormulaUnavailableError, FormulaUnreadableError => e
|
|
||||||
# Don't let one broken formula break commands. But do complain.
|
|
||||||
onoe "Failed to import: #{file}"
|
|
||||||
$stderr.puts e
|
|
||||||
next
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
@ -39,7 +39,6 @@ module Homebrew
|
|||||||
hidden: true
|
hidden: true
|
||||||
switch "--write-only",
|
switch "--write-only",
|
||||||
description: "Make the expected file modifications without taking any Git actions."
|
description: "Make the expected file modifications without taking any Git actions."
|
||||||
switch "--write", hidden: true
|
|
||||||
switch "--commit",
|
switch "--commit",
|
||||||
depends_on: "--write-only",
|
depends_on: "--write-only",
|
||||||
description: "When passed with `--write-only`, generate a new commit after writing changes " \
|
description: "When passed with `--write-only`, generate a new commit after writing changes " \
|
||||||
@ -87,7 +86,6 @@ module Homebrew
|
|||||||
description: "Exclude these Python packages when finding resources."
|
description: "Exclude these Python packages when finding resources."
|
||||||
|
|
||||||
conflicts "--dry-run", "--write-only"
|
conflicts "--dry-run", "--write-only"
|
||||||
conflicts "--dry-run", "--write"
|
|
||||||
conflicts "--no-audit", "--strict"
|
conflicts "--no-audit", "--strict"
|
||||||
conflicts "--no-audit", "--online"
|
conflicts "--no-audit", "--online"
|
||||||
conflicts "--url", "--tag"
|
conflicts "--url", "--tag"
|
||||||
@ -100,8 +98,6 @@ module Homebrew
|
|||||||
def bump_formula_pr
|
def bump_formula_pr
|
||||||
args = bump_formula_pr_args.parse
|
args = bump_formula_pr_args.parse
|
||||||
|
|
||||||
odisabled "`brew bump-formula-pr --write`", "`brew bump-formula-pr --write-only`" if args.write?
|
|
||||||
|
|
||||||
if args.revision.present? && args.tag.nil? && args.version.nil?
|
if args.revision.present? && args.tag.nil? && args.version.nil?
|
||||||
raise UsageError, "`--revision` must be passed with either `--tag` or `--version`!"
|
raise UsageError, "`--revision` must be passed with either `--tag` or `--version`!"
|
||||||
end
|
end
|
||||||
|
@ -30,7 +30,6 @@ module Homebrew
|
|||||||
description: "Skip running `brew bottle` before uploading."
|
description: "Skip running `brew bottle` before uploading."
|
||||||
flag "--committer=",
|
flag "--committer=",
|
||||||
description: "Specify a committer name and email in `git`'s standard author format."
|
description: "Specify a committer name and email in `git`'s standard author format."
|
||||||
flag "--github-org=", hidden: true
|
|
||||||
flag "--root-url=",
|
flag "--root-url=",
|
||||||
description: "Use the specified <URL> as the root of the bottle's URL instead of Homebrew's default."
|
description: "Use the specified <URL> as the root of the bottle's URL instead of Homebrew's default."
|
||||||
flag "--root-url-using=",
|
flag "--root-url-using=",
|
||||||
@ -90,8 +89,6 @@ module Homebrew
|
|||||||
def pr_upload
|
def pr_upload
|
||||||
args = pr_upload_args.parse
|
args = pr_upload_args.parse
|
||||||
|
|
||||||
odisabled "`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?
|
||||||
bottles_hash = bottles_hash_from_json_files(json_files, args)
|
bottles_hash = bottles_hash_from_json_files(json_files, args)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user