Skip to content

Commit

Permalink
Merge pull request #135754 from chenrui333/[email protected]
Browse files Browse the repository at this point in the history
[email protected]: remove livecheck
  • Loading branch information
BrewTestBot authored Jul 4, 2023
2 parents 7bd7f34 + 5a7e508 commit b0f8ce0
Showing 1 changed file with 8 additions and 24 deletions.
32 changes: 8 additions & 24 deletions Formula/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,15 @@ class MariadbAT103 < Formula
sha256 "18bd51c847565af4da18748b052ab9bcbb569ab6e6766ca8da7dcca1f941f876"
license "GPL-2.0-only"

# This uses a placeholder regex to satisfy the `PageMatch` strategy
# requirement. In the future, this will be updated to use a `Json` strategy
# and we can remove the unused regex at that time.
livecheck do
url "https://downloads.mariadb.org/rest-api/mariadb/all-releases/?olderReleases=false"
regex(/unused/i)
strategy :page_match do |page|
json = JSON.parse(page)
json["releases"]&.map do |release|
next unless release["release_number"]&.start_with?(version.major_minor)
next unless release["status"]&.include?("stable")

release["release_number"]
end
end
end

bottle do
sha256 arm64_ventura: "e9ddf1884ed20c261a95d76adf5ed5649cb092711de6a6d1eb3bcfccd593a2e9"
sha256 arm64_monterey: "ad76e07e8cc4551227c5d54a48c04951f4f24a10f57d872817b6e441038d3784"
sha256 arm64_big_sur: "eb5af0742c1445160ee2bfe39c49f177386d97951def16f4cd6eb10127250f87"
sha256 ventura: "f1804454861d4884a53a762995bb60d1c0db6422240206db6b93bd75f86bc79b"
sha256 monterey: "2189bb85e81401a7981778cdf7ec45483bbe673ae4a4ba971a4bd13bc7966833"
sha256 big_sur: "7ec72b7f7723d8efa9da0a5f68f711dde528b8e473ed94e8ca372144644bf9dc"
sha256 x86_64_linux: "95cbca19ef21731eed9270db1aedd429308d57c86cb670201ad2898be48abee9"
rebuild 1
sha256 arm64_ventura: "77eaf32d21e17300b3a3b11590a4ed1861b3d3267936bbfe258d4275fd8cfb9b"
sha256 arm64_monterey: "bc11e66921738b0b77b602e876996cf41a0d927c46a72d7dcbd5a095174ff515"
sha256 arm64_big_sur: "9e4d0cd0ed3d195e4fa3367688d7bc8e527121790b6879efb1498ccceac67a48"
sha256 ventura: "15fc82772ae37361c538e4202fe3a8f5d9425805222cd332dcba00da3021747a"
sha256 monterey: "14a19472312798a7ee55c4a970f2cce41d72af5999cd0170c2537cc1f846bec3"
sha256 big_sur: "9cf8aba1bf6cd89bc999bbfea106bd303c13b260eeb9999c9bf3bc6be8664994"
sha256 x86_64_linux: "1bcb3e77641539e56d126a22455bee04d30ec57e63a9ef14a02ebe10c851110c"
end

keg_only :versioned_formula
Expand Down

0 comments on commit b0f8ce0

Please sign in to comment.