From 4446415902f1c3d962edad34465e22df027a3e43 Mon Sep 17 00:00:00 2001 From: Ivan Rublev Date: Fri, 10 May 2024 21:23:08 +0200 Subject: [PATCH] Bump lib versions --- mix.exs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/mix.exs b/mix.exs index 0160715..c8112df 100644 --- a/mix.exs +++ b/mix.exs @@ -1,7 +1,7 @@ defmodule Domo.MixProject do use Mix.Project - @version "1.5.15" + @version "1.5.16" @repo_url "https://github.com/IvanRublev/Domo" def project do @@ -62,20 +62,28 @@ defmodule Domo.MixProject do [ # Development and test dependencies {:ex_check, ">= 0.0.0", only: :dev, runtime: false}, - {:dialyxir, "~> 1.3", only: :dev, runtime: false}, {:credo, "~> 1.6", only: :dev, runtime: false}, {:excoveralls, "~> 0.13.4", only: :test, runtime: false}, {:mix_test_watch, "~> 1.0", only: :test, runtime: false}, {:placebo, "~> 1.2", only: :test}, {:ecto, ">= 0.0.0", optional: true}, {:decimal, ">= 0.0.0", optional: true}, - {:nimble_parsec, "1.1.0"}, + {:nimble_parsec, if(match?([1, 11, _], ex_version()), do: "1.1.0", else: "~> 1.1")}, # Documentation dependencies {:ex_doc, "0.26.0", only: :docs, runtime: false} ] end + defp ex_version do + :elixir + |> Application.spec(:vsn) + |> to_string() + |> String.replace(~r/-.*$/, "") + |> String.split(".") + |> Enum.map(&String.to_integer/1) + end + defp aliases do [ benchmark: "cmd --cd ./benchmark_ecto_domo mix do deps.unlock --all + deps.get + benchmark",