<commit_before>class Kubeseal < Formula
  desc "Kubernetes controller and tool for one-way encrypted Secrets"
  homepage "https://github.com/bitnami-labs/sealed-secrets"
  url "https://github.com/bitnami-labs/sealed-secrets.git",
      tag:      "v0.14.1",
      revision: "5a0e07dc0d3d065ffa9fddfb663c2ab1c98fe3dc"
  license "Apache-2.0"

  livecheck do
    url :stable
    regex(/^v?(\d+(?:\.\d+)+)$/i)
  end

  bottle do
    cellar :any_skip_relocation
    sha256 "a40866ba5a9180354ed4d1e91c6c9730cbfb4320e1865ded4abe93cdd7c215d8" => :big_sur
    sha256 "b8f016b9711682873a4fb4f95e6b6fc9f922eb140c1618eb87f6145a88ece860" => :arm64_big_sur
    sha256 "ff8045d0e18a5b0ed1372b5b905df50abc8170de302b05714c261d1434cbff90" => :catalina
    sha256 "2d9827e7a83689c23805b777ed98f07cef1695311dfdad7c7409a166fe207ead" => :mojave
  end

  depends_on "go" => :build

  def install
    system "make", "kubeseal", "DIRTY="
    bin.install "kubeseal"
  end

  test do
    # ensure build reports the (git tag) version
    output = shell_output("#{bin}/kubeseal --version")
    assert_equal "kubeseal version: v#{version}", output.strip

    # ensure kubeseal can seal secrets
    secretyaml = [
      "apiVersion: v1",
      "kind: Secret",
      "metadata:",
      "  name: mysecret",
      "  namespace: default",
      "type: Opaque",
      "data:",
      "  username: YWRtaW4=",
      "  password: <PASSWORD>",
    ].join("\n") + "\n"
    cert = [
      "-----BEGIN CERTIFICATE-----",
      "MIIErTCCApWgAwIBAgIQKBFEtKBDXcPklduZRLUirTANBgkqhkiG9w0BAQsFADAA",
      "MB4XDTE4MTEyNzE5NTE0NloXDTI4MTEyNDE5NTE0NlowADCCAiIwDQYJKoZIhvcN",<commit_msg>kubeseal: update 0.14.1 bottle.<commit_after>class Kubeseal < Formula
  desc "Kubernetes controller and tool for one-way encrypted Secrets"
  homepage "https://github.com/bitnami-labs/sealed-secrets"
  url "https://github.com/bitnami-labs/sealed-secrets.git",
      tag:      "v0.14.1",
      revision: "5a0e07dc0d3d065ffa9fddfb663c2ab1c98fe3dc"
  license "Apache-2.0"

  livecheck do
    url :stable
    regex(/^v?(\d+(?:\.\d+)+)$/i)
  end

  bottle do
    cellar :any_skip_relocation
    sha256 "a40866ba5a9180354ed4d1e91c6c9730cbfb4320e1865ded4abe93cdd7c215d8" => :big_sur
    sha256 "b8f016b9711682873a4fb4f95e6b6fc9f922eb140c1618eb87f6145a88ece860" => :arm64_big_sur
    sha256 "ff8045d0e18a5b0ed1372b5b905df50abc8170de302b05714c261d1434cbff90" => :catalina
    sha256 "2d9827e7a83689c23805b777ed98f07cef1695311dfdad7c7409a166fe207ead" => :mojave
    sha256 "cde134dbca02563e675e6ed7da458cf2f6918914ec6bd8eb107ca246a6703042" => :x86_64_linux
  end

  depends_on "go" => :build

  def install
    system "make", "kubeseal", "DIRTY="
    bin.install "kubeseal"
  end

  test do
    # ensure build reports the (git tag) version
    output = shell_output("#{bin}/kubeseal --version")
    assert_equal "kubeseal version: v#{version}", output.strip

    # ensure kubeseal can seal secrets
    secretyaml = [
      "apiVersion: v1",
      "kind: Secret",
      "metadata:",
      "  name: mysecret",
      "  namespace: default",
      "type: Opaque",
      "data:",
      "  username: YWRtaW4=",
      "  password: <PASSWORD>",
    ].join("\n") + "\n"
    cert = [
      "-----BEGIN CERTIFICATE-----",
      "MIIErTCCApWgAwIBAgIQKBFEtKBDXcPklduZRLUirTANBgkqhkiG9w0BAQsFADAA",
      "MB4XDTE4MTEyNzE5NTE0NloXDTI4MTEyNDE5NTE0NlowADCCAiIwDQYJKoZIhvcN",
{'fraction_non_alphanumeric': 0.11912503694945314, 'fraction_numerical': 0.13892994383683122, 'mean_word_length': 3.719665271966527, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 16, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4396788', 'n_tokens_mistral': 1720, 'n_tokens_neox': 1470, 'n_words': 211}