From c750f32c9f7e0a08e37a711456f5c9456520ca92 Mon Sep 17 00:00:00 2001 From: Martin Frost Date: Sun, 22 Jan 2017 22:20:57 +0100 Subject: [PATCH] Fix Elixir 1.4 warnings --- lib/tasks/isn.gen.migration.ex | 2 +- mix.exs | 6 +++--- test/isn_test.exs | 3 +-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/tasks/isn.gen.migration.ex b/lib/tasks/isn.gen.migration.ex index 5e2b9cb..30914b3 100644 --- a/lib/tasks/isn.gen.migration.ex +++ b/lib/tasks/isn.gen.migration.ex @@ -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) diff --git a/mix.exs b/mix.exs index 8bbf2c2..ec0cde8 100644 --- a/mix.exs +++ b/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}", diff --git a/test/isn_test.exs b/test/isn_test.exs index 60580dc..e1dfa73 100644 --- a/test/isn_test.exs +++ b/test/isn_test.exs @@ -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 -