diff options
author | Lain Soykaf <lain@lain.com> | 2025-03-11 18:21:27 +0400 |
---|---|---|
committer | Lain Soykaf <lain@lain.com> | 2025-03-11 18:21:27 +0400 |
commit | 5ce612b2723381a978f3810a414a3c3038a1859c (patch) | |
tree | 9ee7bf53ef26d1fc2f39922808b8beb24c18414f /lib | |
parent | 4c8a8a4b62151ab86019cf92ffb67dc81e13cdd7 (diff) | |
download | pleroma-5ce612b2723381a978f3810a414a3c3038a1859c.tar.gz pleroma-5ce612b2723381a978f3810a414a3c3038a1859c.zip |
Linting
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. |