From 877e5bc51b0ccb86b4f9ff39c132003a3bc59680 Mon Sep 17 00:00:00 2001 From: Zack Siri Date: Wed, 25 Dec 2024 11:00:01 +0700 Subject: [PATCH 1/3] Fix logic for enabling indexing --- lib/opsmaru/robot.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/opsmaru/robot.ex b/lib/opsmaru/robot.ex index f38b046..d44d711 100644 --- a/lib/opsmaru/robot.ex +++ b/lib/opsmaru/robot.ex @@ -1,6 +1,6 @@ defmodule Opsmaru.Robot do def enable_indexing?(conn) do - String.contains?(conn.host, "preview") && config(:indexing) + (not String.contains?(conn.host, "preview")) && config(:indexing) end defp config(key) do From 2a2dfa9ee4823a5f5fd04bd85713c01666ab7f15 Mon Sep 17 00:00:00 2001 From: Zack Siri Date: Wed, 25 Dec 2024 11:02:53 +0700 Subject: [PATCH 2/3] Clean up formatting --- lib/opsmaru/robot.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/opsmaru/robot.ex b/lib/opsmaru/robot.ex index d44d711..cba1d66 100644 --- a/lib/opsmaru/robot.ex +++ b/lib/opsmaru/robot.ex @@ -1,6 +1,6 @@ defmodule Opsmaru.Robot do def enable_indexing?(conn) do - (not String.contains?(conn.host, "preview")) && config(:indexing) + not String.contains?(conn.host, "preview") && config(:indexing) end defp config(key) do From 8ad589afeb7d06599b25ba9b9ac9e0525ff4c824 Mon Sep 17 00:00:00 2001 From: Zack Siri Date: Wed, 25 Dec 2024 11:11:43 +0700 Subject: [PATCH 3/3] Bump version --- mix.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mix.exs b/mix.exs index b1dafd4..7738de6 100644 --- a/mix.exs +++ b/mix.exs @@ -4,7 +4,7 @@ defmodule Opsmaru.MixProject do def project do [ app: :opsmaru, - version: "0.1.19", + version: "0.1.20", elixir: "~> 1.14", elixirc_paths: elixirc_paths(Mix.env()), start_permanent: Mix.env() == :prod,