From 7eee1a363cfee2dc8e1fea20cc9cd19e1a9bf99f Mon Sep 17 00:00:00 2001 From: Unnawut Leepaisalsuwanna Date: Sat, 31 Mar 2018 01:58:29 +0700 Subject: [PATCH] Fix error when the dependency version could not be found --- lib/mix/tasks/licenses.ex | 2 +- mix.exs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mix/tasks/licenses.ex b/lib/mix/tasks/licenses.ex index 782642d..91083f3 100644 --- a/lib/mix/tasks/licenses.ex +++ b/lib/mix/tasks/licenses.ex @@ -18,7 +18,7 @@ defmodule Mix.Tasks.Licenses do licenses = Licensir.Scanner.scan() Enum.each(licenses, fn(license) -> - license.name <> " " <> license.version + license.name <> " " <> (license.version || "") |> String.pad_trailing(@name_width) |> Kernel.<>("-> " <> license.license) |> IO.puts() diff --git a/mix.exs b/mix.exs index 0ceeff2..3dbf466 100644 --- a/mix.exs +++ b/mix.exs @@ -4,7 +4,7 @@ defmodule Licensir.Mixfile do def project do [ app: :licensir, - version: "0.2.3", + version: "0.2.4", elixir: "~> 1.5", escript: [main_module: Licensir.Licenses], deps: deps(),