From c6c54b0f415835cf9e87ad18be74cfd4e510f8b2 Mon Sep 17 00:00:00 2001 From: Izel Nakri Date: Fri, 30 Aug 2024 10:56:08 +0200 Subject: [PATCH] fix MixFile deprecations --- config/test.exs | 2 +- example/README.md | 2 +- example/mix.exs | 4 ++-- mix.exs | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/config/test.exs b/config/test.exs index 0ad80afe..bc435d08 100644 --- a/config/test.exs +++ b/config/test.exs @@ -32,4 +32,4 @@ config :paper_trail, PaperTrail.UUIDWithCustomNameRepo, show_sensitive_data_on_connection_error: true, poolsize: 10 -config :logger, level: :warn +config :logger, level: :warning diff --git a/example/README.md b/example/README.md index 0780bdb0..2a3cbfb6 100644 --- a/example/README.md +++ b/example/README.md @@ -18,7 +18,7 @@ If [available in Hex](https://hex.pm/docs/publish), the package can be installed ```elixir def application do - [applications: [:example]] + [extra_applications: [:example]] end ``` diff --git a/example/mix.exs b/example/mix.exs index 12953eae..30b63550 100644 --- a/example/mix.exs +++ b/example/mix.exs @@ -1,4 +1,4 @@ -defmodule Example.Mixfile do +defmodule Example.MixProject do use Mix.Project def project do @@ -16,7 +16,7 @@ defmodule Example.Mixfile do def application do [ mod: {Example, []}, - applications: [:logger, :postgrex, :ecto] + extra_applications: [:logger, :postgrex, :ecto] ] end diff --git a/mix.exs b/mix.exs index b9a23014..dbd8afe3 100644 --- a/mix.exs +++ b/mix.exs @@ -1,8 +1,8 @@ -defmodule PaperTrail.Mixfile do +defmodule PaperTrail.MixProject do use Mix.Project @source_url "https://github.com/izelnakri/paper_trail" - @version "1.0.1" + @version "1.1.0" def project do [ @@ -21,7 +21,7 @@ defmodule PaperTrail.Mixfile do def application do [ - applications: [:logger, :ecto, :ecto_sql, :runtime_tools] + extra_applications: [:logger, :ecto, :ecto_sql, :runtime_tools] ] end