diff --git a/Formula/m/monika.rb b/Formula/m/monika.rb index 03f3b9d138af5..0d76b480ab300 100644 --- a/Formula/m/monika.rb +++ b/Formula/m/monika.rb @@ -1,17 +1,17 @@ class Monika < Formula desc "Synthetic monitoring made easy" homepage "https://monika.hyperjump.tech" - url "https://registry.npmjs.org/@hyperjumptech/monika/-/monika-1.21.1.tgz" - sha256 "f0f87ce40c771b2b7b4c723ddec41200bf180ff788138559dad0cf4fd731d6b6" + url "https://registry.npmjs.org/@hyperjumptech/monika/-/monika-1.21.2.tgz" + sha256 "a9280ac4c288a79c77c28263042fab1d4cc785ef08f94d0cfd3cb25b7e40dce4" license "MIT" bottle do - sha256 cellar: :any, arm64_sequoia: "56c00575278cd5392e3a079c4667ba9731137e08a505ce925ec517f4c37f872e" - sha256 cellar: :any, arm64_sonoma: "f55a93915b6a3fbc0582d69e42a11db79b0211482cc38bc4248990b6fbf6b58d" - sha256 cellar: :any, arm64_ventura: "bbf10fdb8c75aa24ed9e0567fccd363602533db90ec4e64eee89b88b759c1120" - sha256 cellar: :any, sonoma: "4b9a1158642df00c9cbbea384d4285c65c460f326147f64f8ecf9ecaf81ed0b1" - sha256 cellar: :any, ventura: "f7b56c62ec781ce7cd4d54d4c2d5312e16c994b4befc1ef5e330c064ccab6f1f" - sha256 cellar: :any_skip_relocation, x86_64_linux: "789fb2bd509df40ca3002bf2886cc560445609517c75d044a991f5d7c3034714" + sha256 arm64_sequoia: "cf7bd831f3b50b22b53a45be3fc9468fd3449e77d16ecc6a14a7fc91a0c2048e" + sha256 arm64_sonoma: "02f1de44e451e3bf0595b7d12f1905534d9bbb377e062c61828221464f41b370" + sha256 arm64_ventura: "ee92b0a0707890c6ec213c46e5d2f4812ba1fc4a867eb82129c8e1a8cbb1f95f" + sha256 sonoma: "d7a43499c51096dbfb3c6e75ff208c97f56a455f8280d24d64e99a8e17f959dd" + sha256 ventura: "e29d95f54d6d00802440e3531649ac1253ba2a4843e029cb61f10d7badfb3753" + sha256 cellar: :any_skip_relocation, x86_64_linux: "ad68335a7a0fad36f34fa12a266e997cbc583f6ade8c160bc70278bf6e3f82ca" end depends_on "node" @@ -32,6 +32,11 @@ def install node_modules = libexec/"lib/node_modules/@hyperjumptech/monika/node_modules" node_modules.glob("nice-napi/prebuilds/*") .each { |dir| rm_r(dir) if dir.basename.to_s != "#{os}-#{arch}" } + + cpu_profiler = "@sentry/profiling-node/lib/sentry_cpu_profiler" + node_modules.glob("#{cpu_profiler}-*") + .each { |file| rm(file) unless file.basename.to_s.start_with?("sentry_cpu_profiler-#{os}-#{arch}") } + node_modules.glob("#{cpu_profiler}-*-musl-*").map(&:unlink) if OS.linux? end test do @@ -53,7 +58,8 @@ def install $stdout.reopen(monika_stdout) exec bin/"monika", "-r", "1", "-c", testpath/"config.yml" end - sleep 14 + sleep 15 + sleep 15 if OS.mac? && Hardware::CPU.intel? assert_match "Starting Monika. Probes: 1. Notifications: 1", monika_stdout.read end