Skip to content

Commit 6fff2e7

Browse files
committed
livecheck/strategy/extract_plist: enable livecheck url options
1 parent b473452 commit 6fff2e7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Library/Homebrew/livecheck/strategy/extract_plist.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,14 @@ def self.find_versions(cask:, url: nil, regex: nil, options: Options.new, &block
107107
cask_copy = Cask::CaskLoader.load(cask.sourcefile_path)
108108
cask_copy.allow_reassignment = true
109109
cask_copy.url url
110+
111+
cask.livecheck.options.to_h.each_key do |options_key|
112+
next unless cask_copy.url.specs.key?(options_key)
113+
114+
value = cask.livecheck.options.public_send(options_key)
115+
cask_copy.url.specs[options_key] = value if value
116+
end
117+
110118
UnversionedCaskChecker.new(cask_copy)
111119
else
112120
UnversionedCaskChecker.new(cask)

0 commit comments

Comments
 (0)