Skip to content

Commit

Permalink
tableau 2024.3.1 and update livecheck strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
okkymabruri authored Dec 1, 2024
1 parent cd47a22 commit 14253c5
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Casks/t/tableau.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
cask "tableau" do

Check failure on line 1 in Casks/t/tableau.rb

View workflow job for this annotation

GitHub Actions / test tableau (macos-13, intel)

The livecheck URL https://www.tableau.com/app/discover/desktop is not reachable (HTTP status code 403)

Check failure on line 1 in Casks/t/tableau.rb

View workflow job for this annotation

GitHub Actions / test tableau (macos-15, arm)

The livecheck URL https://www.tableau.com/app/discover/desktop is not reachable (HTTP status code 403)
arch arm: "-arm64"

version "2024.2.4"
sha256 arm: "f2524f6db177bbc4ef639f519c98e4e59fcde8f7aa84aa2ff77e5062228121d0",
intel: "f496583c475601f9a9f0993b2fa7f53d6f9f502efa7ce6d5ba8498076cb606e3"
version "2024.3.1"
sha256 arm: "cf6a00486ae06716f41cf1552425fea296ab227ed3cbd38febaa09b9c563b528",
intel: "f98a2631784242eccd68e4a41707d9b0d3aaee6ec9b40dea9847bb724f5d34d4"

url "https://downloads.tableau.com/esdalt/#{version}/TableauDesktop-#{version.dots_to_hyphens}#{arch}.dmg",
user_agent: "curl/8.7.1"
Expand All @@ -12,9 +12,10 @@
homepage "https://www.tableau.com/products/desktop"

livecheck do
url "https://downloads.tableau.com/TableauAutoUpdate.xml"
strategy :xml do |xml|
xml.get_elements("//version").map { |item| item.attributes["releaseNotesVersion"] }
url "https://www.tableau.com/app/discover/desktop"
strategy :page_match do |page|
match = page.match(/<section[^>]+data-version-before=["'](\d+\.\d+\.\d+)["']/i)
match[1] if match
end
end

Expand Down

0 comments on commit 14253c5

Please sign in to comment.