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

v0.3.0 #17

Merged
merged 1 commit into from
Jul 10, 2024
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
24 changes: 4 additions & 20 deletions .formatter.exs
Original file line number Diff line number Diff line change
@@ -1,22 +1,6 @@
# Used by "mix format"

defmodule LocalFormat do
@moduledoc false
def format(styler_compat) when styler_compat in [:gt, :eq] do
[
plugins: [Styler],
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"]
]
end

def format(_) do
[
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"]
]
end
end

elixir_version = System.version()
styler_compat = Version.compare(elixir_version, "1.14.0")

LocalFormat.format(styler_compat)
[
plugins: [Styler],
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"]
]
17 changes: 3 additions & 14 deletions mix.exs
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
defmodule DNSSRVCluster.MixProject do
use Mix.Project

@version "0.2.0"
@version "0.3.0"
@scm_url "https://github.com/pertsevds/dns_srv_cluster"
@maintainer "Dmitriy Pertsev"

def project do
elixir_version = System.version()
styler_compat = Version.compare(elixir_version, "1.14.0")

[
app: :dns_srv_cluster,
version: @version,
Expand All @@ -24,7 +21,7 @@ defmodule DNSSRVCluster.MixProject do
"coveralls.html": :test
],
docs: docs(),
deps: deps(styler_compat),
deps: deps(),
source_url: @scm_url,
homepage_url: @scm_url,
elixirc_paths: elixirc_paths(Mix.env()),
Expand Down Expand Up @@ -53,7 +50,7 @@ defmodule DNSSRVCluster.MixProject do
end

# Run "mix help deps" to learn about dependencies.
defp deps(styler_compat) when styler_compat in [:gt, :eq] do
defp deps do
[
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:excoveralls, "~> 0.10", only: :test, runtime: false},
Expand All @@ -62,14 +59,6 @@ defmodule DNSSRVCluster.MixProject do
]
end

defp deps(_) do
[
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:excoveralls, "~> 0.10", only: :test, runtime: false},
{:ex_doc, "~> 0.30", only: :dev, runtime: false}
]
end

defp aliases do
[
test: "test --no-start"
Expand Down
Loading