Use token instead of name for casks.

This commit is contained in:
Markus Reiter 2024-02-08 14:44:10 +01:00
parent 6e5b6b7cc9
commit 732e4438f4
No known key found for this signature in database
GPG Key ID: 245293B51702655B

View File

@ -225,9 +225,9 @@ module Cask
new("#{tap}/#{token}") new("#{tap}/#{token}")
end end
sig { params(tapped_name: String).void } sig { params(tapped_token: String).void }
def initialize(tapped_name) def initialize(tapped_token)
user, repo, token = tapped_name.split("/", 3) user, repo, token = tapped_token.split("/", 3)
tap = Tap.fetch(user, repo) tap = Tap.fetch(user, repo)
cask = CaskLoader.find_cask_in_tap(token, tap) cask = CaskLoader.find_cask_in_tap(token, tap)
super cask super cask