Skip to content

Commit

Permalink
output-factory: update livecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
samford committed May 1, 2024
1 parent ac75523 commit bf49015
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Casks/o/output-factory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
desc "Automate printing and exporting from Adobe InDesign"
homepage "https://zevrix.com/OutputFactory/"

livecheck do
livecheck do
url "https://zevrix.com/zsversioncontrol/ZSVersionControl.xml"
strategy :xml do |xml|
elements = xml.get_elements("//dict/key[text()='Output Factory']/following-sibling::dict/key[text()='version']/following-sibling::string")
elements.first.text unless elements.empty?
xml.elements[
"//dict/key[text()='Output Factory']/following-sibling::dict[1]/key[text()='version']"
]&.next_element&.text
end
end

Expand Down

0 comments on commit bf49015

Please sign in to comment.