Skip to content

Commit dd58fb6

Browse files
authored
Merge pull request #121 from epochtalk/update-deps
Update Dependencies
2 parents c51a1d4 + d3056f5 commit dd58fb6

File tree

8 files changed

+67
-59
lines changed

8 files changed

+67
-59
lines changed

.tool-versions

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
elixir 1.17.3-otp-27
2-
erlang 27.1.2
1+
elixir 1.18.2-otp-27
2+
erlang 27.2.4

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM elixir:1.14.0
1+
FROM elixir:1.18.2
22
# work in /app instead of /
33
RUN mkdir -p /app
44
WORKDIR /app

config/config.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import Config
1111
config :epochtalk_server, ecto_repos: [EpochtalkServer.Repo]
1212

1313
# Set Guardian.DB to GuardianRedis
14-
config :guardian, Guardian.DB, repo: GuardianRedis.Repo
14+
config :guardian, Guardian.DB, repo: EpochtalkServer.Repo, adapter: GuardianRedis.Adapter
1515

1616
# Swoosh API client is needed for adapters other than SMTP.
1717
config :swoosh, :api_client, false

lib/epochtalk_server_web/errors/custom_errors.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
defmodule EpochtalkServerWeb.CustomErrors do
2+
@moduledoc """
3+
Custom error handling for Auto Moderator
4+
"""
25
# Auto Moderator Error Handling
36
# credo:disable-for-next-line
47
defmodule AutoModeratorReject do

mix.exs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ defmodule EpochtalkServer.MixProject do
55
[
66
app: :epochtalk_server,
77
version: "0.1.0",
8-
elixir: "~> 1.12",
8+
elixir: "~> 1.18",
99
elixirc_paths: elixirc_paths(Mix.env()),
1010
compilers: Mix.compilers(),
1111
start_permanent: Mix.env() == :prod,
@@ -33,43 +33,43 @@ defmodule EpochtalkServer.MixProject do
3333
# Type `mix help deps` for examples and options.
3434
defp deps do
3535
[
36-
{:argon2_elixir, "~> 3.1.0"},
36+
{:argon2_elixir, "~> 4.1.2"},
3737
{:configparser_ex, "~> 4.0"},
38-
{:corsica, "~> 1.3.0"},
38+
{:corsica, "~> 2.1.3"},
3939
{:credo, "~> 1.7.9", only: [:dev, :test], runtime: false},
4040
{:dialyxir, "~> 1.2", only: [:dev], runtime: false},
4141
{:dotenv_parser, "~> 2.0"},
4242
{:earmark, "~> 1.4"},
43-
{:ecto_sql, "~> 3.6"},
43+
{:ecto_sql, "~> 3.12"},
4444
{:ex_aws, "~> 2.5"},
4545
{:ex_aws_s3, "~> 2.5"},
46-
{:ex_doc, "~> 0.29.4"},
47-
{:ex_machina, "~> 2.7.0", only: :test},
46+
{:ex_doc, "~> 0.37.2"},
47+
{:ex_machina, "~> 2.8.0", only: :test},
4848
{:ex_utils, "~> 0.1.7"},
4949
{:finch, "~> 0.13"},
5050
{:gen_smtp, "~> 1.2"},
5151
{:guardian, "~> 2.2"},
5252
{:guardian_phoenix, "~> 2.0"},
53-
{:guardian_db, "~> 2.1"},
54-
{:guardian_redis, "~> 0.1"},
53+
{:guardian_db, "~> 3.0"},
54+
{:guardian_redis, "~> 0.2"},
5555
{:hackney, "~> 1.9"},
5656
{:hammer, "~> 6.2"},
5757
{:hammer_backend_redis, "~> 6.1"},
5858
{:html_sanitize_ex, "~> 1.4"},
5959
{:iteraptor, git: "https://github.com/epochtalk/elixir-iteraptor.git", tag: "1.13.1"},
6060
{:jason, "~> 1.4.0"},
61-
{:mimic, "~> 1.7.4", only: :test},
61+
{:mimic, "~> 1.11.0", only: :test},
6262
{:phoenix, "~> 1.7.2"},
6363
{:phoenix_ecto, "~> 4.4"},
64-
{:phoenix_html, "~> 3.0"},
64+
{:phoenix_html, "~> 4.2"},
6565
{:plug_cowboy, "~> 2.5"},
66-
{:poison, "~> 3.0"},
67-
{:postgrex, "~> 0.17.1"},
68-
{:redix, "~> 1.2.2"},
69-
{:remote_ip, "~> 1.1.0"},
66+
{:poison, "~> 6.0"},
67+
{:postgrex, "~> 0.20.0"},
68+
{:redix, "~> 1.5.2"},
69+
{:remote_ip, "~> 1.2.0"},
7070
{:sweet_xml, "~> 0.7"},
7171
{:swoosh, "~> 1.8"},
72-
{:telemetry_metrics, "~> 0.6"},
72+
{:telemetry_metrics, "~> 1.0"},
7373
{:telemetry_poller, "~> 1.0"}
7474
]
7575
end

mix.lock

Lines changed: 39 additions & 38 deletions
Large diffs are not rendered by default.

test/epochtalk_server/models/mention_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ defmodule Test.EpochtalkServer.Models.Mention do
2929
assert_raise FunctionClauseError,
3030
~r/no function clause matching/,
3131
fn ->
32-
Mention.username_to_user_id(%{}, attrs)
32+
Mention.username_to_user_id(%{id: nil, roles: nil}, attrs)
3333
end
3434
end
3535

test/support/factories/board_mapping.ex

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ defmodule Test.Support.Factories.BoardMapping do
2929
end
3030

3131
# generate attributes for board under parent board
32-
def board_mapping_attributes_factory(%{board: board, view_order: view_order, parent: parent}) do
32+
def board_mapping_attributes_factory(%{
33+
board: board,
34+
view_order: view_order,
35+
parent: parent
36+
}) do
3337
%{
3438
id: board.id,
3539
name: board.name,

0 commit comments

Comments
 (0)