Merge pull request #168514 from Homebrew/rubocop_default_hash_syntax

rubocop default hash syntax
This commit is contained in:
Mike McQuaid
2024-03-07 18:03:47 +00:00
committed by GitHub
8 changed files with 16 additions and 16 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ cask "ibabel" do
cask = CaskLoader.load(__FILE__)
download_url = "https://macinchem.org/wp-content/uploads/#{match[1]}/#{match[2]}/iBabel.zip"
app_version = Homebrew::Livecheck::Strategy::ExtractPlist.find_versions(cask: cask,
app_version = Homebrew::Livecheck::Strategy::ExtractPlist.find_versions(cask:,
url: download_url)[:matches].values.max
next if app_version.blank?
+1 -1
View File
@@ -17,7 +17,7 @@ cask "redquits" do
cask = CaskLoader.load(__FILE__)
download_url = "http://redquits.s3.amazonaws.com/RedQuits_v#{major_version}.pkg"
Homebrew::Livecheck::Strategy::ExtractPlist.find_versions(cask: cask, url: download_url)[:matches].values
Homebrew::Livecheck::Strategy::ExtractPlist.find_versions(cask:, url: download_url)[:matches].values
end
end
+1 -1
View File
@@ -16,7 +16,7 @@ cask "smultron" do
cask = CaskLoader.load(__FILE__)
download_url = "https://www.peterborgapps.com/downloads/Smultron#{major_version}.zip"
Homebrew::Livecheck::Strategy::ExtractPlist.find_versions(cask: cask, url: download_url)[:matches].values
Homebrew::Livecheck::Strategy::ExtractPlist.find_versions(cask:, url: download_url)[:matches].values
end
end
+1 -1
View File
@@ -16,7 +16,7 @@ cask "winzip" do
cask = CaskLoader.load(__FILE__)
download_url = "https://download.winzip.com/winzipmacedition#{major_version}.dmg"
Homebrew::Livecheck::Strategy::ExtractPlist.find_versions(cask: cask, url: download_url)[:matches].values
Homebrew::Livecheck::Strategy::ExtractPlist.find_versions(cask:, url: download_url)[:matches].values
end
end
+6 -6
View File
@@ -26,12 +26,12 @@ module ChangedFiles
modified_cask_files = modified_files.select { |path| cask_file?(path) }
{
modified_files: modified_files,
added_files: added_files,
modified_ruby_files: modified_ruby_files,
modified_command_files: modified_command_files,
modified_github_actions_files: modified_github_actions_files,
modified_cask_files: modified_cask_files,
modified_files:,
added_files:,
modified_ruby_files:,
modified_command_files:,
modified_github_actions_files:,
modified_cask_files:,
}
end
end
+1 -1
View File
@@ -54,7 +54,7 @@ module Check
},
loaded_launchjobs: lambda {
launchctl = lambda do |sudo|
system_command!("/bin/launchctl", args: ["list"], print_stderr: false, sudo: sudo)
system_command!("/bin/launchctl", args: ["list"], print_stderr: false, sudo:)
.stdout
.lines.drop(1)
.grep_v(APPLE_LAUNCHJOBS_REGEX)
+2 -2
View File
@@ -179,8 +179,8 @@ module CiMatrix
cask_content = path.read
runners, multi_os = runners(cask_content: cask_content)
runners.product(architectures(cask_content: cask_content)).filter_map do |runner, arch|
runners, multi_os = runners(cask_content:)
runners.product(architectures(cask_content:)).filter_map do |runner, arch|
native_runner_arch = arch == runner.fetch(:arch)
# If it's just a single OS test then we can just use the two real arch runners.
next if !native_runner_arch && !multi_os
+3 -3
View File
@@ -48,16 +48,16 @@ module Homebrew
syntax_job = {
name: "syntax",
tap: tap.name,
runner: runner,
runner:,
}
matrix = [syntax_job]
unless labels&.include?("ci-syntax-only")
cask_jobs = if args.casks&.any?
CiMatrix.generate(tap, labels: labels, cask_names: casks, skip_install: skip_install, new_cask: new_cask)
CiMatrix.generate(tap, labels:, cask_names: casks, skip_install:, new_cask:)
else
CiMatrix.generate(tap, labels: labels, skip_install: skip_install, new_cask: new_cask)
CiMatrix.generate(tap, labels:, skip_install:, new_cask:)
end
if cask_jobs.any?