summaryrefslogtreecommitdiff
path: root/mix.exs
diff options
context:
space:
mode:
Diffstat (limited to 'mix.exs')
-rw-r--r--mix.exs59
1 files changed, 33 insertions, 26 deletions
diff --git a/mix.exs b/mix.exs
index 765b008..ee3e14b 100644
--- a/mix.exs
+++ b/mix.exs
@@ -6,9 +6,9 @@ defmodule Nola.Mixfile do
app: :nola,
version: version("0.2.7"),
elixir: "~> 1.4",
- elixirc_paths: elixirc_paths(Mix.env),
- compilers: [:phoenix, :gettext] ++ Mix.compilers,
- start_permanent: Mix.env == :prod,
+ elixirc_paths: elixirc_paths(Mix.env()),
+ compilers: [:phoenix, :gettext] ++ Mix.compilers(),
+ start_permanent: Mix.env() == :prod,
deps: deps()
]
end
@@ -21,7 +21,7 @@ defmodule Nola.Mixfile do
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
- defp elixirc_paths(_), do: ["lib"]
+ defp elixirc_paths(_), do: ["lib"]
defp aliases do
[
@@ -41,22 +41,22 @@ defmodule Nola.Mixfile do
{:telemetry_metrics, "~> 0.6"},
{:telemetry_poller, "~> 0.5"},
{:plug_cowboy, "~> 2.0"},
- {:cowlib, "~> 2.9.1", override: true},
+ {:cowlib, "~> 2.15.0", override: true},
{:plug, "~> 1.7"},
{:gettext, "~> 0.11"},
{:httpoison, "~> 1.8", override: true},
{:jason, "~> 1.0"},
{:poison, "~> 4.0", override: true},
- {:floki, "~> 0.19.3"},
- {:ecto, "~> 3.4"},
+ {:floki, "~> 0.38.0"},
+ {:fast_html, "~> 2.0"},
+ {:ecto, "~> 3.13"},
{:exirc, git: "https://git.random.sh/ircbot/exirc.git", branch: "fix-who-nick"},
{:distillery, "~> 2.0"},
{:earmark, "~> 1.2"},
{:oauther, "~> 1.1"},
{:extwitter, "~> 0.14.0"},
{:entropy_string, "~> 1.0.0"},
- {:abacus, "~> 0.3.3"},
- {:ex_chain, github: "eljojo/ex_chain"},
+ {:abacus, "~> 2.1"},
{:timex, "~> 3.6"},
{:muontrap, "~> 0.5.1"},
{:tzdata, "~> 1.0"},
@@ -70,14 +70,18 @@ defmodule Nola.Mixfile do
{:html_entities, "0.4.0", override: true},
{:file_size, "~> 3.0"},
{:ex2ms, "~> 1.0"},
- {:polyjuice_client, git: "https://git.random.sh/ircbot/polyjuice_client.git", branch: "master", override: true},
- {:matrix_app_service, git: "https://git.random.sh/ircbot/matrix_app_service.ex.git", branch: "master"},
- {:sentry, "~> 8.0.5"},
+ {:polyjuice_client,
+ git: "https://git.random.sh/ircbot/polyjuice_client.git", branch: "master", override: true},
+ {:matrix_app_service,
+ git: "https://git.random.sh/ircbot/matrix_app_service.ex.git", branch: "master"},
{:logger_json, "~> 4.3"},
{:oauth2, "~> 2.0"},
- {:powerdnsex, git: "https://git.random.sh/ircbot/powerdnsex.git", branch: "master"},
- {:pfx, "~> 0.7.0"},
- {:flake_id, "~> 0.1.0"}
+ # {:powerdnsex, git: "https://git.random.sh/ircbot/powerdnsex.git", branch: "master"},
+ # {:pfx, "~> 0.7.0"},
+ {:flake_id, "~> 0.1.0"},
+ {:gun, "~> 1.3"},
+ {:idna, "~> 6.0"},
+ {:castore, "~> 0.1"}
]
end
@@ -85,22 +89,25 @@ defmodule Nola.Mixfile do
{describe, 0} = System.cmd("git", ~w(describe --dirty --broken --all --tags --long))
[_, rest] = String.split(describe, "/", parts: 2)
- info = rest
- |> String.trim()
- |> String.replace("/", "-")
- env = cond do
- Mix.env() == :prod -> ""
- true -> "." <> to_string(Mix.env())
- end
+ info =
+ rest
+ |> String.trim()
+ |> String.replace("/", "-")
- build_timestamp = DateTime.utc_now()
- |> DateTime.to_unix()
- |> to_string()
+ env =
+ cond do
+ Mix.env() == :prod -> ""
+ true -> "." <> to_string(Mix.env())
+ end
+
+ build_timestamp =
+ DateTime.utc_now()
+ |> DateTime.to_unix()
+ |> to_string()
build_date_tag = ".build" <> build_timestamp
v <> "+" <> info <> env <> build_date_tag
end
-
end