From dea38d0b2c8edc2c8c97979f42f06d48135a12b6 Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Wed, 7 Oct 2020 10:13:45 -0500 Subject: [PATCH 1/3] Fix System.stacktrace/0 warning in Elixir 1.11 --- lib/prometheus/error.ex | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/prometheus/error.ex b/lib/prometheus/error.ex index a2f4a75..78f7b52 100644 --- a/lib/prometheus/error.ex +++ b/lib/prometheus/error.ex @@ -216,13 +216,7 @@ defmodule Prometheus.Error do e in ErlangError -> reraise( Prometheus.Error.normalize(e), - unquote( - if macro_exported?(Kernel.SpecialForms, :__STACKTRACE__, 0) do - quote(do: __STACKTRACE__) - else - quote(do: System.stacktrace()) - end - ) + unquote(quote(do: __STACKTRACE__)) ) end end From ba7b41f83156c6046637bff5cf88298267c494cb Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Wed, 7 Oct 2020 10:16:26 -0500 Subject: [PATCH 2/3] Properly declare the :mnesia dependency --- mix.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mix.exs b/mix.exs index 8d2fa03..90b2c12 100644 --- a/mix.exs +++ b/mix.exs @@ -32,7 +32,7 @@ defmodule PrometheusEx.Mixfile do end def application do - [applications: [:logger, :prometheus]] + [applications: [:logger, :mnesia, :prometheus]] end defp description do From bccee4733f35081c0c71a0856a3e6a8a9f0b692e Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Wed, 7 Oct 2020 10:28:04 -0500 Subject: [PATCH 3/3] Bump minimum Elixir compat to 1.7 --- mix.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mix.exs b/mix.exs index 90b2c12..1c3bf7a 100644 --- a/mix.exs +++ b/mix.exs @@ -7,7 +7,7 @@ defmodule PrometheusEx.Mixfile do [ app: :prometheus_ex, version: @version, - elixir: "~> 1.6", + elixir: "~> 1.7", build_embedded: Mix.env() == :prod, start_permanent: Mix.env() == :prod, description: description(),