From e7d498856e3d282f478cfa37aa38e707062648e0 Mon Sep 17 00:00:00 2001 From: Sam Ford <1584702+samford@users.noreply.github.com> Date: Tue, 29 Oct 2024 21:48:11 -0400 Subject: [PATCH] miniconda: update livecheck The existing `livecheck` block for `miniconda` contains a `#strategy` call but it doesn't specify a strategy symbol. We expect the symbol to always be provided when `#strategy` is used but we enforce this using a RuboCop and the `livecheck` block RuboCops don't apply to casks yet (I'm currently working on this). This adds the missing `#strategy` symbol and renames the `strategy` block argument to use the standard `page` name for `PageMatch`. --- Casks/m/miniconda.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Casks/m/miniconda.rb b/Casks/m/miniconda.rb index 5a031448a79d1..4c0ac2782096b 100644 --- a/Casks/m/miniconda.rb +++ b/Casks/m/miniconda.rb @@ -13,9 +13,9 @@ livecheck do url "https://repo.anaconda.com/miniconda/" - strategy do |content| - sha256 = content.scan(/>Miniconda3-latest-MacOSX-#{arch}\.sh<.{,99}>(\w{64})Miniconda3-(py\d+_[\d.-]+)-MacOSX-#{arch}\.sh<.{,99}>#{sha256}Miniconda3-latest-MacOSX-#{arch}\.sh<.{,99}>(\w{64})Miniconda3-(py\d+_[\d.-]+)-MacOSX-#{arch}\.sh<.{,99}>#{sha256}