Skip to content

Commit

Permalink
Merge pull request #159628 from bevanjkay/caskloader
Browse files Browse the repository at this point in the history
various: update `CaskLoader.load()` reference
  • Loading branch information
p-linnane committed Nov 8, 2023
2 parents 9ff1e39 + c8c24a4 commit c8551c0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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

0 comments on commit c8551c0

Please sign in to comment.