Fix Elixir 1.4 warnings
This commit is contained in:
parent
9ea1f173f7
commit
c750f32c9f
|
|
@ -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)
|
||||
|
|
|
|||
6
mix.exs
6
mix.exs
|
|
@ -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}",
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue