Skip to content

Commit

Permalink
bump version, appease mix format
Browse files Browse the repository at this point in the history
  • Loading branch information
dch committed Apr 22, 2024
1 parent 14811f2 commit 3aacebc
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 15 deletions.
3 changes: 3 additions & 0 deletions .formatter.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[
inputs: ["*.{ex,exs}", "{config,lib,test}/**/*.{ex,exs}"]
]
5 changes: 3 additions & 2 deletions lib/logger_syslog_backend.ex
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ defmodule LoggerSyslogBackend do
buffer = Keyword.get(opts, :buffer)

path =
Keyword.get_lazy(opts, :path, fn -> default_path() end) |> IO.iodata_to_binary()
Keyword.get_lazy(opts, :path, fn -> default_path() end)
|> IO.iodata_to_binary()
|> String.to_charlist()

%{
Expand Down Expand Up @@ -116,7 +117,7 @@ defmodule LoggerSyslogBackend do
app_id = app_id || Application.get_application(md[:module] || :elixir)

pre =
:io_lib.format('<~B>~s ~s ~p: ', [
:io_lib.format(~c"<~B>~s ~s ~p: ", [
facility ||| severity(level),
timestamp(ts),
app_id,
Expand Down
30 changes: 17 additions & 13 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@ defmodule LoggerSyslogBackend.Mixfile do
use Mix.Project

def project do
[app: :logger_syslog_backend,
version: "1.0.2",
elixir: "~> 1.5",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
package: package(),
deps: deps()]
[
app: :logger_syslog_backend,
version: "1.0.2",
elixir: "~> 1.5",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
deps: deps()
]
end

# Configuration for the OTP application
Expand All @@ -24,10 +26,12 @@ defmodule LoggerSyslogBackend.Mixfile do
end

defp package do
[files: ["lib", "mix.exs", "README.md", "LICENSE"],
maintainers: ["Paulo Almeida"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/pma/logger_syslog_backend"}]
[
files: ["lib", "mix.exs", "README.md", "LICENSE"],
maintainers: ["Paulo Almeida"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/pma/logger_syslog_backend"}
]
end

# Dependencies can be Hex packages:
Expand All @@ -40,6 +44,6 @@ defmodule LoggerSyslogBackend.Mixfile do
#
# Type `mix help deps` for more examples and options
defp deps do
[{:ex_doc, "~> 0.17", only: :dev},]
[{:ex_doc, "~> 0.17", only: :dev}]
end
end

0 comments on commit 3aacebc

Please sign in to comment.