Skip to content

Commit

Permalink
Merge pull request #185628 from EricFromCanada/easyfind-livecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
p-linnane authored Sep 19, 2024
2 parents effebab + 905535c commit 9f8d649
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
9 changes: 7 additions & 2 deletions Casks/e/easyfind.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,19 @@
homepage "https://www.devontechnologies.com/apps/freeware"

livecheck do
url :homepage
regex(%r{href=.*?/(\d+(?:\.\d+)+)/EasyFind\.app\.zip}i)
url "https://api.devontechnologies.com/1/apps/updates.plist.php?product=EasyFind&version=#{version}"
strategy :xml do |xml|
xml.elements["//key[text()='EasyFind']"]&.next_element&.text&.strip
end
end

app "EasyFind.app"

zap trash: [
"~/Library/Application Support/EasyFind",
"~/Library/Caches/org.grunenberg.EasyFind",
"~/Library/HTTPStorages/org.grunenberg.EasyFind",
"~/Library/Preferences/org.grunenberg.EasyFind.plist",
"~/Library/Saved Application State/org.grunenberg.EasyFind.savedState",
]
end
6 changes: 4 additions & 2 deletions Casks/p/photostickies.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
homepage "https://www.devontechnologies.com/apps/freeware"

livecheck do
url :homepage
regex(%r{href=.*?/photostickies/v?(\d+(?:\.\d+)+)/PhotoStickies\.app\.zip}i)
url "https://api.devontechnologies.com/1/apps/updates.plist.php?product=PhotoStickies&version=#{version}"
strategy :xml do |xml|
xml.elements["//key[text()='PhotoStickies']"]&.next_element&.text&.strip
end
end

app "PhotoStickies.app"
Expand Down
7 changes: 5 additions & 2 deletions Casks/t/thumbsup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,18 @@
homepage "https://www.devontechnologies.com/apps/freeware"

livecheck do
url :homepage
regex(%r{href=.*?/thumbsup/v?(\d+(?:\.\d+)+)/ThumbsUp\.app\.zip}i)
url "https://api.devontechnologies.com/1/apps/updates.plist.php?product=ThumbsUp&version=#{version}"
strategy :xml do |xml|
xml.elements["//key[text()='ThumbsUp']"]&.next_element&.text&.strip
end
end

app "ThumbsUp.app"

zap trash: [
"~/Library/Caches/com.apple.helpd/Generated/com.devontechnologies.thumbsup.help*",
"~/Library/Caches/com.devon-technologies.ThumbsUp",
"~/Library/HTTPStorages/com.devon-technologies.ThumbsUp",
"~/Library/Preferences/com.devon-technologies.ThumbsUp.plist",
"~/Library/Saved Application State/com.devon-technologies.ThumbsUp.savedState",
]
Expand Down
6 changes: 4 additions & 2 deletions Casks/x/xmenu.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
homepage "https://www.devontechnologies.com/apps/freeware"

livecheck do
url :homepage
regex(%r{href=.*?/xmenu/v?(\d+(?:\.\d+)+)/XMenu\.app\.zip}i)
url "https://api.devontechnologies.com/1/apps/updates.plist.php?product=XMenu&version=#{version}"
strategy :xml do |xml|
xml.elements["//key[text()='XMenu']"]&.next_element&.text&.strip
end
end

app "XMenu.app"
Expand Down

0 comments on commit 9f8d649

Please sign in to comment.