Skip to content

Commit

Permalink
v1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
lpil committed Sep 2, 2023
1 parent 298d5db commit f5235c2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion lib/mix_test_watch/path.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion lib/mix_test_watch/watcher.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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
[
Expand Down

0 comments on commit f5235c2

Please sign in to comment.