Fix Elixir 1.4 warnings

This commit is contained in:
Martin Frost 2017-01-22 22:20:57 +01:00
parent 9ea1f173f7
commit c750f32c9f
3 changed files with 5 additions and 6 deletions

View File

@ -19,7 +19,7 @@ defmodule Mix.Tasks.Isn.Gen.Migration do
def run(args) do
Mix.Task.run "app.start", args
[repo] = parse_repo(args)
filename = "#{timestamp}_create_isn_extension.exs"
filename = "#{timestamp()}_create_isn_extension.exs"
path = Path.relative_to(migrations_path(repo), Mix.Project.app_path)
file = Path.join(path, filename)
create_directory(path)

View File

@ -7,11 +7,11 @@ defmodule ISN.Mixfile do
[app: :isn,
version: @version,
elixir: "~> 1.0",
deps: deps,
deps: deps(),
test_paths: ["test"],
# Hex
description: description,
package: package,
description: description(),
package: package(),
# Docs
name: "ISN",
docs: [source_ref: "v#{@version}",

View File

@ -4,7 +4,7 @@ defmodule ISNTest do
alias Postgrex, as: P
setup do
options = Keyword.merge(conn_options, [extensions: [{ISN, {}}]])
options = Keyword.merge(conn_options(), [extensions: [{ISN, {}}]])
{:ok, pid} = P.start_link(options)
{:ok, [pid: pid]}
end
@ -49,4 +49,3 @@ defmodule ISNTest do
query(context[:pid], "SELECT $1::upc", ["220356483481"])
end
end