Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for more recent nimble_parsec versions #32

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -825,6 +825,10 @@ Domo compiled validation functions for the given struct based on the described t

## Changelog

## v1.5.16

* Allow latest dependencies for projects with Elixir > 12

## v1.5.15

* Support sum types as element of a list: [a | b]
Expand Down
22 changes: 17 additions & 5 deletions mix.exs
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -62,20 +62,32 @@ 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(ex_before_12?(), do: "1.1.0", else: "~> 1.1")},
# Documentation dependencies
{:ex_doc, "0.26.0", only: :docs, runtime: false}
{:ex_doc, if(ex_before_12?(), do: "0.26.0", else: "~> 0.26.0"), only: :docs, runtime: false}
]
end

defp ex_before_12? do
[1, minor, _] = ex_version()
minor < 12
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",
Expand Down
Loading