Skip to content

Commit

Permalink
cleanups, update queutopia version, elixir 16 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
lejoko committed Apr 9, 2024
1 parent af6fb83 commit e303f9c
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 36 deletions.
2 changes: 1 addition & 1 deletion lib/captain_hook/queuetopia.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ defmodule CaptainHook.Queuetopia do

use Queuetopia,
otp_app: :captain_hook,
repo: Application.get_env(:captain_hook, :repo),
repo: Application.compile_env(:captain_hook, :repo),
performer: CaptainHook.Queuetopia.Performer
end
2 changes: 1 addition & 1 deletion lib/captain_hook/test/factories.ex
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ defmodule CaptainHook.Test.Factories do
alias CaptainHook.WebhookNotifications.WebhookNotification
alias CaptainHook.WebhookConversations.WebhookConversation

@notification_pattern_match_all_wildcard Application.get_env(
@notification_pattern_match_all_wildcard Application.compile_env(
:captain_hook,
:notification_pattern_match_all_wildcard
)
Expand Down
2 changes: 1 addition & 1 deletion lib/captain_hook/webhook_endpoints.ex
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ defmodule CaptainHook.WebhookEndpoints do
@default_page_number 1
@default_page_size 100

@notification_pattern_match_all_wildcard Application.get_env(
@notification_pattern_match_all_wildcard Application.compile_env(
:captain_hook,
:notification_pattern_match_all_wildcard
)
Expand Down
4 changes: 2 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ defmodule CaptainHook.MixProject do
use Mix.Project

@source_url "https://github.com/annatel/captain_hook"
@version "3.0.1"
@version "3.0.2"

def project do
[
Expand Down Expand Up @@ -36,7 +36,7 @@ defmodule CaptainHook.MixProject do
{:captain_hook_signature, "~> 0.4.1"},
{:antl_utils_elixir, "~> 1.1", override: true},
{:antl_utils_ecto, "~> 2.8"},
{:queuetopia, "~> 2.3"},
{:queuetopia, "~> 2.5"},
{:finch, "~> 0.7.0"},
{:plug_crypto, "~> 1.0"},
{:recase, "~> 0.7"},
Expand Down
50 changes: 25 additions & 25 deletions mix.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions test/captain_hook/test/assertions_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ defmodule CaptainHook.Test.AssertionsTest do

import CaptainHook.Test.Assertions

@notification_pattern_wildcard Application.get_env(
@notification_pattern_wildcard Application.compile_env(
:captain_hook,
:notification_pattern_wildcard
)

@notification_pattern_match_all_wildcard Application.get_env(
@notification_pattern_match_all_wildcard Application.compile_env(
:captain_hook,
:notification_pattern_match_all_wildcard
)
Expand Down
1 change: 1 addition & 0 deletions test/captain_hook/webhook_conversations_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ defmodule WebhookConversations.WebhookConversationsTest do

assert webhook_conversation.webhook_notification_id ==
webhook_conversation_params.webhook_notification_id
assert webhook_conversation.response_body == webhook_conversation_params.response_body

assert webhook_conversation.sequence > 0
end
Expand Down
8 changes: 4 additions & 4 deletions test/support/factories/webhook_conversation.ex
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ defmodule CaptainHook.Factory.WebhookConversation do
%WebhookConversation{
sequence: System.unique_integer([:positive]),
requested_at: utc_now(),
request_url: "request_url_#{System.unique_integer()}",
request_url: "request_url_#{System.unique_integer()}🤯",
request_headers: %{"Header-Key" => "header value"},
request_body: "request_body_#{System.unique_integer()}",
request_body: "request_body_#{System.unique_integer()}🤯",
http_status: 200,
response_body: "response_body_#{System.unique_integer()}",
client_error_message: "client_error_message_#{System.unique_integer()}",
response_body: "response_body_#{System.unique_integer()}🤯",
client_error_message: "client_error_message_#{System.unique_integer()}🤯",
status: WebhookConversation.statuses().succeeded
}
|> struct!(attrs)
Expand Down

0 comments on commit e303f9c

Please sign in to comment.