From e65556ab7ab7d447fabce831d31539d9fb8b938c Mon Sep 17 00:00:00 2001 From: mpanarin Date: Sat, 5 Jun 2021 13:01:00 +0300 Subject: [PATCH] :art: apply mix format to the repo --- config/dev.exs | 1 + config/prod.exs | 1 + config/test.exs | 1 + lib/Bumper/bumper.ex | 4 +- lib/Bumper/files.ex | 8 +- lib/Config/config.ex | 39 +++++-- lib/Config/config_macros.ex | 2 +- lib/Git/utils.ex | 15 ++- lib/Hooks/behaviours.ex | 15 ++- lib/Hooks/inspect.ex | 4 +- lib/Tasks/mix_bump.ex | 26 +++-- lib/Tasks/mix_bump_version.ex | 2 +- mix.exs | 6 +- test/bumper_test.exs | 24 ++-- test/hooks_test/inspect_test.exs | 8 +- test/test_helper.exs | 5 +- test/versioce_test.exs | 191 +++++++++++++++++-------------- 17 files changed, 200 insertions(+), 152 deletions(-) diff --git a/config/dev.exs b/config/dev.exs index e69de29..8b13789 100644 --- a/config/dev.exs +++ b/config/dev.exs @@ -0,0 +1 @@ + diff --git a/config/prod.exs b/config/prod.exs index e69de29..8b13789 100644 --- a/config/prod.exs +++ b/config/prod.exs @@ -0,0 +1 @@ + diff --git a/config/test.exs b/config/test.exs index e69de29..8b13789 100644 --- a/config/test.exs +++ b/config/test.exs @@ -0,0 +1 @@ + diff --git a/lib/Bumper/bumper.ex b/lib/Bumper/bumper.ex index e19f693..34cb567 100644 --- a/lib/Bumper/bumper.ex +++ b/lib/Bumper/bumper.ex @@ -14,7 +14,7 @@ defmodule Versioce.Bumper do iex> Versioce.Bumper.current_version {:ok, "0.1.0"} """ - @spec current_version() :: {:ok, String.t} | {:error, String.t} + @spec current_version() :: {:ok, String.t()} | {:error, String.t()} def current_version do case Mix.Project.get() do nil -> {:error, "No project configured"} @@ -49,7 +49,7 @@ defmodule Versioce.Bumper do iex> Versioce.Bumper.bump({[], ["minor"]}, "0.0.1") "0.1.0" """ - @spec bump({OptionParser.parsed, OptionParser.argv}, String.t) :: String.t + @spec bump({OptionParser.parsed(), OptionParser.argv()}, String.t()) :: String.t() def bump({[], []}, from) do IO.puts("Nothing to do") from diff --git a/lib/Bumper/files.ex b/lib/Bumper/files.ex index dd82382..cd866e7 100644 --- a/lib/Bumper/files.ex +++ b/lib/Bumper/files.ex @@ -2,7 +2,8 @@ defmodule Versioce.Bumper.Files do alias Versioce.Bumper.FilesFake alias Versioce.Bumper.FilesImplementation - defdelegate update_version_files(from, to), to: if Mix.env == :test, do: FilesFake, else: FilesImplementation + defdelegate update_version_files(from, to), + to: if(Mix.env() == :test, do: FilesFake, else: FilesImplementation) end defmodule Versioce.Bumper.FilesFake do @@ -30,16 +31,17 @@ defmodule Versioce.Bumper.FilesImplementation do """ @spec update_version_files(String.t(), String.t()) :: :ok | Exception def update_version_files(from, to) do - ["mix.exs" | Config.files] + ["mix.exs" | Config.files()] |> Enum.each(&update_version_file(&1, from, to)) end defp update_version_file(file, from, to) do data = File.read!(file) - |> String.replace(from, to, global: Config.global) + |> String.replace(from, to, global: Config.global()) File.write!(file, data) end + # coveralls-ignore-stop end diff --git a/lib/Config/config.ex b/lib/Config/config.ex index ed625ea..fdb64d5 100644 --- a/lib/Config/config.ex +++ b/lib/Config/config.ex @@ -13,27 +13,44 @@ defmodule Versioce.Config do import Versioce.Config.Macros, only: :macros - value :files, ["README.md"], - "Files to be updated with new version" - value :global, false, + value(:files, ["README.md"], "Files to be updated with new version") + + value( + :global, + false, "Whether the update will be global in file.\nBy default versioce will update only the first version in file it finds" - value :pre_hooks, [], - "Hooks to run before the version bumping" - value :post_hooks, [], - "Hooks to run after the version bumping" + ) + + value(:pre_hooks, [], "Hooks to run before the version bumping") + value(:post_hooks, [], "Hooks to run after the version bumping") defmodule Git do @moduledoc """ Configuration module for versioce git integration. see `Versioce.Config` for more details """ - value [:git, :dirty_add], false, + value( + [:git, :dirty_add], + false, "Whether to add all the files in `git add` or only from `Versioce.Config.files`. By default only `Versioce.Config.files`" - value [:git, :commit_message_template], "Bump version to {version}", + ) + + value( + [:git, :commit_message_template], + "Bump version to {version}", "Template for the commit message. `{version}` will be replaced with the version you bumped to" - value [:git, :tag_template], "{version}", + ) + + value( + [:git, :tag_template], + "{version}", "Template for the tag annotation. `{version}` will be replaced with the version you bumped to" - value [:git, :tag_message_template], "Release version to {version}", + ) + + value( + [:git, :tag_message_template], + "Release version to {version}", "Template for the tag message. `{version}` will be replaced with the version you bumped to" + ) end end diff --git a/lib/Config/config_macros.ex b/lib/Config/config_macros.ex index b769480..3810422 100644 --- a/lib/Config/config_macros.ex +++ b/lib/Config/config_macros.ex @@ -51,6 +51,7 @@ defmodule Versioce.Config.Macros do defmacro value(path, default, doc) when is_list(path) do h = List.first(path) t = List.last(path) + quote do @doc """ Get config value for #{to_string(unquote(t))} @@ -81,5 +82,4 @@ defmodule Versioce.Config.Macros do end end end - end diff --git a/lib/Git/utils.ex b/lib/Git/utils.ex index 8c01178..cf1c7d6 100644 --- a/lib/Git/utils.ex +++ b/lib/Git/utils.ex @@ -6,7 +6,7 @@ defmodule Versioce.Git do @doc """ Get git repository. """ - @spec repo() :: Git.Repository.t + @spec repo() :: Git.Repository.t() def repo do Git.init!() end @@ -14,7 +14,7 @@ defmodule Versioce.Git do @doc """ Stage files. """ - @spec add([String.t]) :: String.t + @spec add([String.t()]) :: String.t() def add(args \\ ["."]) do repo() |> Git.add!(args) @@ -23,7 +23,7 @@ defmodule Versioce.Git do @doc """ Make a commit with a message. """ - @spec commit(String.t) :: String.t + @spec commit(String.t()) :: String.t() def commit(message) do repo() |> Git.commit!(["-m", message]) @@ -32,27 +32,26 @@ defmodule Versioce.Git do @doc """ Create a tag. """ - @spec tag(String.t, String.t) :: String.t + @spec tag(String.t(), String.t()) :: String.t() def tag(name, message) do repo() |> Git.tag!(["-a", name, "-m", message]) end end - defmodule Versioce.Git.Hook do - @moduledoc false + @moduledoc false @doc false defmacro __using__(_opts) do - quote do + quote do @doc false def run(false, _) do {:error, "Optional dependency `git_cli` is not loaded."} end @doc false - def run(params) do + def run(params) do Code.ensure_loaded?(Git) |> run(params) end diff --git a/lib/Hooks/behaviours.ex b/lib/Hooks/behaviours.ex index 2a2b7f1..009000f 100644 --- a/lib/Hooks/behaviours.ex +++ b/lib/Hooks/behaviours.ex @@ -25,12 +25,12 @@ defmodule Versioce.PreHook do a list of command line args for `bump` task. It should return them in form `{:ok, args} | {:error, reason}` """ - @callback run([String.t]) :: {:ok, [String.t]} | {:error, String.t} + @callback run([String.t()]) :: {:ok, [String.t()]} | {:error, String.t()} @doc false defmacro __using__(_opts) do - quote do - @behaviour Versioce.PreHook + quote do + @behaviour Versioce.PreHook end end end @@ -62,17 +62,16 @@ defmodule Versioce.PostHook do the new version of the project. It should return it in form `{:ok, version} | {:error, reason}` """ - @callback run(String.t) :: {:ok, String.t} | {:error, String.t} + @callback run(String.t()) :: {:ok, String.t()} | {:error, String.t()} @doc false defmacro __using__(_opts) do - quote do - @behaviour Versioce.PostHook + quote do + @behaviour Versioce.PostHook end end end - defmodule Versioce.OK do @moduledoc false @@ -88,12 +87,12 @@ defmodule Versioce.OK do def unit(value), do: {:ok, value} end - defmodule Versioce.Hooks do @moduledoc false @spec run(any, [module()]) :: Versioce.OK.ok_tuple() def run(params, []), do: Versioce.OK.unit(params) + def run(params, hooks) do [h | tail] = hooks diff --git a/lib/Hooks/inspect.ex b/lib/Hooks/inspect.ex index 5549ec7..ee97796 100644 --- a/lib/Hooks/inspect.ex +++ b/lib/Hooks/inspect.ex @@ -6,7 +6,7 @@ defmodule Versioce.PreHooks.Inspect do """ use Versioce.PreHook - def run(args) do + def run(args) do IO.inspect(args) {:ok, args} end @@ -20,7 +20,7 @@ defmodule Versioce.PostHooks.Inspect do """ use Versioce.PostHook - def run(version) do + def run(version) do IO.inspect(version) {:ok, version} end diff --git a/lib/Tasks/mix_bump.ex b/lib/Tasks/mix_bump.ex index 89a44ae..6d549a9 100644 --- a/lib/Tasks/mix_bump.ex +++ b/lib/Tasks/mix_bump.ex @@ -22,10 +22,13 @@ defmodule Mix.Tasks.Bump do defp run_pre_hooks({options, params}) do case Keyword.fetch(options, :no_pre_hooks) do - {:ok, true} -> {:ok, "No hooks to run"} + {:ok, true} -> + {:ok, "No hooks to run"} + _ -> - hooks = Config.pre_hooks() - |> IO.inspect(label: "Running pre-hooks") + hooks = + Config.pre_hooks() + |> IO.inspect(label: "Running pre-hooks") Versioce.Hooks.run(params, hooks) end @@ -33,10 +36,13 @@ defmodule Mix.Tasks.Bump do defp run_post_hooks({{options, _}, params}) do case Keyword.fetch(options, :no_post_hooks) do - {:ok, true} -> {:ok, "No hooks to run"} + {:ok, true} -> + {:ok, "No hooks to run"} + _ -> - hooks = Config.post_hooks() - |> IO.inspect(label: "Running post-hooks") + hooks = + Config.post_hooks() + |> IO.inspect(label: "Running post-hooks") Versioce.Hooks.run(params, hooks) end @@ -54,9 +60,9 @@ defmodule Mix.Tasks.Bump do @doc false @spec run( - {OptionParser.parsed, OptionParser.argv}, - {:ok, String.t} | {:error, String.t} - ) :: {:ok, String.t} | {:error, String.t} + {OptionParser.parsed(), OptionParser.argv()}, + {:ok, String.t()} | {:error, String.t()} + ) :: {:ok, String.t()} | {:error, String.t()} def run(_, {:error, error} = res) do IO.puts("Error: #{error}") @@ -74,7 +80,7 @@ defmodule Mix.Tasks.Bump do end @doc false - @spec parse([String.t]) :: {OptionParser.parsed, OptionParser.argv} + @spec parse([String.t()]) :: {OptionParser.parsed(), OptionParser.argv()} def parse(options) do OptionParser.parse!(options, strict: @options) end diff --git a/lib/Tasks/mix_bump_version.ex b/lib/Tasks/mix_bump_version.ex index 6197d15..c2a48b7 100644 --- a/lib/Tasks/mix_bump_version.ex +++ b/lib/Tasks/mix_bump_version.ex @@ -14,7 +14,7 @@ defmodule Mix.Tasks.Bump.Version do @doc false def run(_) do - {_, text} = Versioce.Bumper.current_version + {_, text} = Versioce.Bumper.current_version() IO.puts(text) end diff --git a/mix.exs b/mix.exs index cdabc41..254f89a 100644 --- a/mix.exs +++ b/mix.exs @@ -26,7 +26,7 @@ defmodule Versioce.MixProject do "coveralls.detail": :test, "coveralls.post": :test, "coveralls.html": :test, - "coveralls.json": :test, + "coveralls.json": :test ] ] end @@ -57,7 +57,7 @@ defmodule Versioce.MixProject do {:ex_doc, "~> 0.22", only: [:release, :dev]}, {:dialyxir, "~> 1.0", only: [:dev], runtime: false}, {:excoveralls, "~> 0.10", only: :test}, - {:git_cli, "~> 0.3.0", optional: true}, + {:git_cli, "~> 0.3.0", optional: true} ] end @@ -68,7 +68,7 @@ defmodule Versioce.MixProject do source_ref: "v#{@version}", extras: [ "README.md", - "docs/available_hooks.md", + "docs/available_hooks.md" ] ] end diff --git a/test/bumper_test.exs b/test/bumper_test.exs index 6bbfd2b..edac377 100644 --- a/test/bumper_test.exs +++ b/test/bumper_test.exs @@ -3,7 +3,6 @@ defmodule VersioceTest.Bumper do alias Versioce.Bumper import ExUnit.CaptureIO - defp helper_bump(options, version) do options |> Mix.Tasks.Bump.parse() @@ -18,18 +17,27 @@ defmodule VersioceTest.Bumper do defp test_build_pre(binding, new_vers) do vers = "0.1.0" assert helper_bump([binding, "--pre", "alpha"], vers) == new_vers <> "-alpha" - assert helper_bump([binding, "--pre", "alpha.3.spam-eggs"], vers) == new_vers <> "-alpha.3.spam-eggs" + + assert helper_bump([binding, "--pre", "alpha.3.spam-eggs"], vers) == + new_vers <> "-alpha.3.spam-eggs" assert helper_bump([binding, "--build", "foo"], vers) == new_vers <> "+foo" - assert helper_bump([binding, "--build", "foo.3.spam-eggs"], vers) == new_vers <> "+foo.3.spam-eggs" + + assert helper_bump([binding, "--build", "foo.3.spam-eggs"], vers) == + new_vers <> "+foo.3.spam-eggs" + assert helper_bump([binding, "--build", "bar.50-6"], vers) == new_vers <> "+bar.50-6" - assert helper_bump([binding, "--pre", "alpha", "--build", "foo"], vers) == new_vers <>"-alpha+foo" - assert helper_bump([binding, "--pre", "alpha.1.test-test", "--build", "foo.1.-bar"], vers) == new_vers <>"-alpha.1.test-test+foo.1.-bar" + assert helper_bump([binding, "--pre", "alpha", "--build", "foo"], vers) == + new_vers <> "-alpha+foo" + + assert helper_bump([binding, "--pre", "alpha.1.test-test", "--build", "foo.1.-bar"], vers) == + new_vers <> "-alpha.1.test-test+foo.1.-bar" assert_raise Version.InvalidVersionError, fn -> helper_bump([binding, "--build", "foo[]"], vers) end + assert_raise Version.InvalidVersionError, fn -> helper_bump([binding, "--pre", "foo[]"], vers) end @@ -46,11 +54,10 @@ defmodule VersioceTest.Bumper do end describe "Test version bumping:" do - test "Nothing specified" do assert capture_io(fn -> - assert helper_bump([], "0.1.0") == "0.1.0" - end) == "Nothing to do\n" + assert helper_bump([], "0.1.0") == "0.1.0" + end) == "Nothing to do\n" end test "Bump with patch" do @@ -62,6 +69,7 @@ defmodule VersioceTest.Bumper do test_versioning("minor", "0.2.0") test_build_pre("minor", "0.2.0") end + test "Bump with major" do test_versioning("major", "1.0.0") test_build_pre("major", "1.0.0") diff --git a/test/hooks_test/inspect_test.exs b/test/hooks_test/inspect_test.exs index c64e441..7233b57 100644 --- a/test/hooks_test/inspect_test.exs +++ b/test/hooks_test/inspect_test.exs @@ -4,13 +4,13 @@ defmodule VersioceTest.Hooks.Inspect do test "Inspect pre hook" do assert capture_io(fn -> - assert Versioce.PreHooks.Inspect.run(["minor"]) == {:ok, ["minor"]} - end) == "[\"minor\"]\n" + assert Versioce.PreHooks.Inspect.run(["minor"]) == {:ok, ["minor"]} + end) == "[\"minor\"]\n" end test "Inspect post hook" do assert capture_io(fn -> - assert Versioce.PostHooks.Inspect.run("0.1.0") == {:ok, "0.1.0"} - end) == "\"0.1.0\"\n" + assert Versioce.PostHooks.Inspect.run("0.1.0") == {:ok, "0.1.0"} + end) == "\"0.1.0\"\n" end end diff --git a/test/test_helper.exs b/test/test_helper.exs index 94d45bf..31ce4ad 100644 --- a/test/test_helper.exs +++ b/test/test_helper.exs @@ -1,10 +1,9 @@ defmodule Versioce.TestHelper.FailingHook do - use Versioce.PreHook + use Versioce.PreHook def run(_) do - {:error, "Hook failed"} + {:error, "Hook failed"} end end - ExUnit.start() diff --git a/test/versioce_test.exs b/test/versioce_test.exs index 2b2d289..f962715 100644 --- a/test/versioce_test.exs +++ b/test/versioce_test.exs @@ -13,156 +13,171 @@ defmodule VersioceTest do end describe "Version bumping task" do - test "No bumping if we couldn't get current_version" do Application.put_all_env([ - {:versioce, [ - {:pre_hooks, [Versioce.PreHooks.Inspect]}, - {:post_hooks, []}, - ]} + {:versioce, + [ + {:pre_hooks, [Versioce.PreHooks.Inspect]}, + {:post_hooks, []} + ]} ]) + assert capture_io(fn -> - Mix.Tasks.Bump.run(["0.1.1"], {:error, "no current version"}) - end) == """ - Error: no current version - """ + Mix.Tasks.Bump.run(["0.1.1"], {:error, "no current version"}) + end) == """ + Error: no current version + """ end test "No hooks, only bump", fixture do Application.put_all_env([ - {:versioce, [ - {:pre_hooks, []}, - {:post_hooks, []}, - ]} + {:versioce, + [ + {:pre_hooks, []}, + {:post_hooks, []} + ]} ]) assert capture_io(fn -> Mix.Task.rerun("bump", ["0.1.0"]) end) == """ - Running pre-hooks: [] - Bumping version from #{fixture.current_version}: - "0.1.0" - Running post-hooks: [] - """ + Running pre-hooks: [] + Bumping version from #{fixture.current_version}: + "0.1.0" + Running post-hooks: [] + """ end test "Bumping with pre hooks", fixture do Application.put_all_env([ - {:versioce, [ - {:pre_hooks, [Versioce.PreHooks.Inspect]}, - {:post_hooks, []}, - ]} + {:versioce, + [ + {:pre_hooks, [Versioce.PreHooks.Inspect]}, + {:post_hooks, []} + ]} ]) assert capture_io(fn -> Mix.Task.rerun("bump", ["0.1.0"]) end) == """ - Running pre-hooks: [Versioce.PreHooks.Inspect] - ["0.1.0"] - Bumping version from #{fixture.current_version}: - "0.1.0" - Running post-hooks: [] - """ + Running pre-hooks: [Versioce.PreHooks.Inspect] + ["0.1.0"] + Bumping version from #{fixture.current_version}: + "0.1.0" + Running post-hooks: [] + """ end test "Bumping with post hooks", fixture do Application.put_all_env([ - {:versioce, [ - {:pre_hooks, []}, - {:post_hooks, [Versioce.PostHooks.Inspect]}, - ]} + {:versioce, + [ + {:pre_hooks, []}, + {:post_hooks, [Versioce.PostHooks.Inspect]} + ]} ]) assert capture_io(fn -> Mix.Task.rerun("bump", ["0.1.0"]) end) == """ - Running pre-hooks: [] - Bumping version from #{fixture.current_version}: - "0.1.0" - Running post-hooks: [Versioce.PostHooks.Inspect] - "0.1.0" - """ + Running pre-hooks: [] + Bumping version from #{fixture.current_version}: + "0.1.0" + Running post-hooks: [Versioce.PostHooks.Inspect] + "0.1.0" + """ end test "Bumping with pre hooks ignored", fixture do Application.put_all_env([ - {:versioce, [ - {:pre_hooks, [Versioce.PreHooks.Inspect]}, - {:post_hooks, []}, - ]} + {:versioce, + [ + {:pre_hooks, [Versioce.PreHooks.Inspect]}, + {:post_hooks, []} + ]} ]) assert capture_io(fn -> Mix.Task.rerun("bump", ["0.1.0", "--no-pre-hooks"]) end) == """ - Bumping version from #{fixture.current_version}: - "0.1.0" - Running post-hooks: [] - """ + Bumping version from #{fixture.current_version}: + "0.1.0" + Running post-hooks: [] + """ end + test "Bumping with post hooks ignored", fixture do Application.put_all_env([ - {:versioce, [ - {:pre_hooks, []}, - {:post_hooks, [Versioce.PostHooks.Inspect]}, - ]} + {:versioce, + [ + {:pre_hooks, []}, + {:post_hooks, [Versioce.PostHooks.Inspect]} + ]} ]) assert capture_io(fn -> Mix.Task.rerun("bump", ["0.1.0", "--no-post-hooks"]) end) == """ - Running pre-hooks: [] - Bumping version from #{fixture.current_version}: - "0.1.0" - """ + Running pre-hooks: [] + Bumping version from #{fixture.current_version}: + "0.1.0" + """ end test "Bumping with errors in pre hooks" do Application.put_all_env([ - {:versioce, [ - {:pre_hooks, [Versioce.TestHelper.FailingHook]}, - {:post_hooks, []}, - ]} + {:versioce, + [ + {:pre_hooks, [Versioce.TestHelper.FailingHook]}, + {:post_hooks, []} + ]} ]) + assert capture_io(fn -> Mix.Task.rerun("bump", ["0.1.0"]) end) == """ - Running pre-hooks: [Versioce.TestHelper.FailingHook] - Hook failed - """ + Running pre-hooks: [Versioce.TestHelper.FailingHook] + Hook failed + """ end test "Bumping with errors in post hooks", fixture do Application.put_all_env([ - {:versioce, [ - {:pre_hooks, []}, - {:post_hooks, [Versioce.TestHelper.FailingHook]}, - ]} + {:versioce, + [ + {:pre_hooks, []}, + {:post_hooks, [Versioce.TestHelper.FailingHook]} + ]} ]) + assert capture_io(fn -> Mix.Task.rerun("bump", ["0.1.0"]) end) == """ - Running pre-hooks: [] - Bumping version from #{fixture.current_version}: - "0.1.0" - Running post-hooks: [Versioce.TestHelper.FailingHook] - Hook failed - """ + Running pre-hooks: [] + Bumping version from #{fixture.current_version}: + "0.1.0" + Running post-hooks: [Versioce.TestHelper.FailingHook] + Hook failed + """ end test "Pre hooks pipeline stops on error" do Application.put_all_env([ - {:versioce, [ - {:pre_hooks, [Versioce.TestHelper.FailingHook, Versioce.PreHooks.Inspect]}, - {:post_hooks, []}, - ]} + {:versioce, + [ + {:pre_hooks, [Versioce.TestHelper.FailingHook, Versioce.PreHooks.Inspect]}, + {:post_hooks, []} + ]} ]) + assert capture_io(fn -> Mix.Task.rerun("bump", ["0.1.0"]) end) == """ - Running pre-hooks: [Versioce.TestHelper.FailingHook, Versioce.PreHooks.Inspect] - Hook failed - """ + Running pre-hooks: [Versioce.TestHelper.FailingHook, Versioce.PreHooks.Inspect] + Hook failed + """ end test "Post hooks pipeline stops on error", fixture do Application.put_all_env([ - {:versioce, [ - {:pre_hooks, []}, - {:post_hooks, [Versioce.TestHelper.FailingHook, Versioce.PostHooks.Inspect]}, - ]} + {:versioce, + [ + {:pre_hooks, []}, + {:post_hooks, [Versioce.TestHelper.FailingHook, Versioce.PostHooks.Inspect]} + ]} ]) + assert capture_io(fn -> Mix.Task.rerun("bump", ["0.1.0"]) end) == """ - Running pre-hooks: [] - Bumping version from #{fixture.current_version}: - "0.1.0" - Running post-hooks: [Versioce.TestHelper.FailingHook, Versioce.PostHooks.Inspect] - Hook failed - """ + Running pre-hooks: [] + Bumping version from #{fixture.current_version}: + "0.1.0" + Running post-hooks: [Versioce.TestHelper.FailingHook, Versioce.PostHooks.Inspect] + Hook failed + """ end end end