From f5235c247520b132d50994efd9bca40ce62d312e Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Sat, 2 Sep 2023 12:28:25 +0100 Subject: [PATCH] v1.1.1 --- CHANGELOG.md | 4 ++++ lib/mix_test_watch/path.ex | 2 +- lib/mix_test_watch/watcher.ex | 4 +++- mix.exs | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f10cfe..b1f6b9f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ Changelog ========= +## v1.1.1 - 2023-09-02 + +- Fixed warning on Elixir v1.15.5. + ## v1.1.0 - 2021-08-30 - `.heex` files are now watched by default. diff --git a/lib/mix_test_watch/path.ex b/lib/mix_test_watch/path.ex index 68e6833..7d109ad 100644 --- a/lib/mix_test_watch/path.ex +++ b/lib/mix_test_watch/path.ex @@ -12,7 +12,7 @@ defmodule MixTestWatch.Path do # Public API # - @spec watching?(MixTestWatch.Config.t(), String.t()) :: boolean + @spec watching?(String.t(), MixTestWatch.Config.t()) :: boolean def watching?(path, config \\ %Config{}) do watched_directory?(path) and elixir_extension?(path, config.extra_extensions) and diff --git a/lib/mix_test_watch/watcher.ex b/lib/mix_test_watch/watcher.ex index 7c0085c..39594b6 100644 --- a/lib/mix_test_watch/watcher.ex +++ b/lib/mix_test_watch/watcher.ex @@ -26,14 +26,16 @@ defmodule MixTestWatch.Watcher do # Genserver callbacks # - @spec init(String.t()) :: {:ok, %{args: String.t()}} + @spec init(String.t()) :: {:ok, Keyword.t()} def init(_) do opts = [dirs: [Path.absname("")], name: :mix_test_watcher] + case FileSystem.start_link(opts) do {:ok, _} -> FileSystem.subscribe(:mix_test_watcher) {:ok, []} + other -> Logger.warning("Could not start the file system monitor.") other diff --git a/mix.exs b/mix.exs index 0661d33..71ed19b 100644 --- a/mix.exs +++ b/mix.exs @@ -2,7 +2,7 @@ defmodule MixTestWatch.Mixfile do use Mix.Project @source_url "https://github.com/lpil/mix-test.watch" - @version "1.1.0" + @version "1.1.1" def project do [