Skip to content

Commit c4f7192

Browse files
committed
v0.10.2 fix regression from v0.10.1
1 parent 0a3e00b commit c4f7192

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## v0.10.2 (2023-10-09)
9+
10+
### Fixes
11+
- Fix regression introduced in v0.10.1 which made Kaffy ignore all admin modules.
12+
813
## v0.10.1 (2023-10-09)
914

1015
### Fixes

lib/kaffy/utils.ex

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -432,12 +432,8 @@ defmodule Kaffy.Utils do
432432

433433
defp get_schemas(mods) do
434434
Enum.filter(mods, fn m ->
435-
if is_module(m) do
436-
functions = m.__info__(:functions)
437-
Keyword.has_key?(functions, :__schema__) && Map.has_key?(m.__struct__, :__meta__)
438-
else
439-
false
440-
end
435+
functions = m.__info__(:functions)
436+
Keyword.has_key?(functions, :__schema__) && Map.has_key?(m.__struct__, :__meta__)
441437
end)
442438
end
443439

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ defmodule Kaffy.MixProject do
22
use Mix.Project
33

44
@source_url "https://github.com/aesmail/kaffy"
5-
@version "0.10.1"
5+
@version "0.10.2"
66

77
def project do
88
[

0 commit comments

Comments
 (0)