From ee0789139089a880d8158c712269abb3d82a0e63 Mon Sep 17 00:00:00 2001 From: Alexander Steppke Date: Thu, 27 Oct 2022 11:06:27 +0200 Subject: [PATCH] chore: migrate away from deprecated elixir functions --- config/config.exs | 2 +- config/dev.exs | 2 +- config/test.exs | 2 +- lib/decorators.ex | 2 +- mix.exs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/config/config.exs b/config/config.exs index 23afe79..9ddca17 100644 --- a/config/config.exs +++ b/config/config.exs @@ -1,5 +1,5 @@ # This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. -use Mix.Config +import Config import_config "#{Mix.env()}.exs" diff --git a/config/dev.exs b/config/dev.exs index da44dcd..6a12060 100644 --- a/config/dev.exs +++ b/config/dev.exs @@ -1,6 +1,6 @@ # This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. -use Mix.Config +import Config config :git_ops, mix_project: Spandex.Mixfile, diff --git a/config/test.exs b/config/test.exs index 2d79e84..4b11599 100644 --- a/config/test.exs +++ b/config/test.exs @@ -1,4 +1,4 @@ -use Mix.Config +import Config config :logger, :console, level: :debug, diff --git a/lib/decorators.ex b/lib/decorators.ex index b352954..5555ce6 100644 --- a/lib/decorators.ex +++ b/lib/decorators.ex @@ -24,7 +24,7 @@ if Code.ensure_loaded?(Decorator.Define) do end """ - @tracer Application.get_env(:spandex, :decorators)[:tracer] + @tracer Application.compile_env(:spandex, :decorators)[:tracer] use Decorator.Define, span: 0, span: 1, trace: 0, trace: 1 diff --git a/mix.exs b/mix.exs index 789710d..1ad6a28 100644 --- a/mix.exs +++ b/mix.exs @@ -8,7 +8,7 @@ defmodule Spandex.Mixfile do [ app: :spandex, version: @version, - elixir: "~> 1.7", + elixir: "~> 1.10", elixirc_paths: elixirc_paths(Mix.env()), build_embedded: Mix.env() == :prod, start_permanent: Mix.env() == :prod,