Skip to content

Commit

Permalink
Merge pull request #193816 from okkymabruri/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
khipp authored Dec 2, 2024
2 parents cd39470 + aa8fcc9 commit 84d7410
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions Casks/t/tableau.rb
Original file line number Diff line number Diff line change
@@ -1,20 +1,32 @@
cask "tableau" do
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"
name "Tableau Desktop"
desc "Data visualization software"
homepage "https://www.tableau.com/products/desktop"

# This checks the upstream Releases page because the XML file we were checking
# (https://downloads.tableau.com/TableauAutoUpdate.xml) was missing the newest
# versions. This check works locally but fails in our CI environment, so we
# should return to checking the XML file if/when it starts being reliably
# updated to include the newest releases again.
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/support/releases"
regex(%r{href=.*?desktop/v?(\d+(?:\.\d+)+)[^"' >]*["' >]}i)
strategy :page_match do |page, regex|
page.scan(regex).map do |match|
if (version = match[0]).count(".") >= 2
version
else
"#{version}.0"
end
end
end
end

Expand Down

0 comments on commit 84d7410

Please sign in to comment.