Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

various: update CaskLoader.load() reference #159628

Merged
merged 1 commit into from
Nov 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion Casks/i/ibabel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
strategy :page_match do |page, regex|
match = page.match(regex)

cask = CaskLoader.load("ibabel")
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,
url: download_url)[:matches].values.max
Expand Down
2 changes: 1 addition & 1 deletion Casks/r/redquits.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
major_version = page[regex, 1]
next if major_version.blank?

cask = CaskLoader.load("redquits")
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
end
Expand Down
2 changes: 1 addition & 1 deletion Casks/s/smultron.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
major_version = page[regex, 1]
next if major_version.blank?

cask = CaskLoader.load("smultron")
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
end
Expand Down