diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/date_time.ex (renamed from lib/pleroma/datetime.ex) | 0 | ||||
-rw-r--r-- | lib/pleroma/date_time/impl.ex (renamed from lib/pleroma/datetime/impl.ex) | 0 | ||||
-rw-r--r-- | lib/pleroma/mogrify_behaviour.ex | 15 | ||||
-rw-r--r-- | lib/pleroma/mogrify_wrapper.ex (renamed from lib/pleroma/mogrify.ex) | 12 |
4 files changed, 15 insertions, 12 deletions
diff --git a/lib/pleroma/datetime.ex b/lib/pleroma/date_time.ex index d79cb848b..d79cb848b 100644 --- a/lib/pleroma/datetime.ex +++ b/lib/pleroma/date_time.ex diff --git a/lib/pleroma/datetime/impl.ex b/lib/pleroma/date_time/impl.ex index 102be047b..102be047b 100644 --- a/lib/pleroma/datetime/impl.ex +++ b/lib/pleroma/date_time/impl.ex diff --git a/lib/pleroma/mogrify_behaviour.ex b/lib/pleroma/mogrify_behaviour.ex new file mode 100644 index 000000000..234cb86cf --- /dev/null +++ b/lib/pleroma/mogrify_behaviour.ex @@ -0,0 +1,15 @@ +# Pleroma: A lightweight social networking server +# Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/> +# SPDX-License-Identifier: AGPL-3.0-only + +defmodule Pleroma.MogrifyBehaviour do + @moduledoc """ + Behaviour for Mogrify operations. + This module defines the interface for Mogrify operations that can be mocked in tests. + """ + + @callback open(binary()) :: map() + @callback custom(map(), binary()) :: map() + @callback custom(map(), binary(), binary()) :: map() + @callback save(map(), keyword()) :: map() +end diff --git a/lib/pleroma/mogrify.ex b/lib/pleroma/mogrify_wrapper.ex index 77725e8f2..17174fd97 100644 --- a/lib/pleroma/mogrify.ex +++ b/lib/pleroma/mogrify_wrapper.ex @@ -2,18 +2,6 @@ # Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/> # SPDX-License-Identifier: AGPL-3.0-only -defmodule Pleroma.MogrifyBehaviour do - @moduledoc """ - Behaviour for Mogrify operations. - This module defines the interface for Mogrify operations that can be mocked in tests. - """ - - @callback open(binary()) :: map() - @callback custom(map(), binary()) :: map() - @callback custom(map(), binary(), binary()) :: map() - @callback save(map(), keyword()) :: map() -end - defmodule Pleroma.MogrifyWrapper do @moduledoc """ Default implementation of MogrifyBehaviour that delegates to Mogrify. |