Skip to content

Commit

Permalink
v0.10.2 fix regression from v0.10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
aesmail committed Oct 9, 2023
1 parent 0a3e00b commit c4f7192
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## v0.10.2 (2023-10-09)

### Fixes
- Fix regression introduced in v0.10.1 which made Kaffy ignore all admin modules.

## v0.10.1 (2023-10-09)

### Fixes
Expand Down
8 changes: 2 additions & 6 deletions lib/kaffy/utils.ex
Original file line number Diff line number Diff line change
Expand Up @@ -432,12 +432,8 @@ defmodule Kaffy.Utils do

defp get_schemas(mods) do
Enum.filter(mods, fn m ->
if is_module(m) do
functions = m.__info__(:functions)
Keyword.has_key?(functions, :__schema__) && Map.has_key?(m.__struct__, :__meta__)
else
false
end
functions = m.__info__(:functions)
Keyword.has_key?(functions, :__schema__) && Map.has_key?(m.__struct__, :__meta__)
end)
end

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 Kaffy.MixProject do
use Mix.Project

@source_url "https://github.com/aesmail/kaffy"
@version "0.10.1"
@version "0.10.2"

def project do
[
Expand Down

0 comments on commit c4f7192

Please sign in to comment.