Skip to content

Commit 38aa5ec

Browse files
committed
chore: remove owl dependency
1 parent d3d6343 commit 38aa5ec

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

lib/ash/policy/authorizer/authorizer.ex

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -549,12 +549,8 @@ defmodule Ash.Policy.Authorizer do
549549
else
550550
case :os.type() do
551551
{_, :nt} ->
552-
{Owl.IO.select(
553-
[
554-
{:picosat_elixir, "~> 0.2"},
555-
{:simple_sat, "~> 0.1"}
556-
],
557-
label: """
552+
{Igniter.Util.IO.select(
553+
"""
558554
Ash.Policy.Authorizer requires a SAT solver (Boolean Satisfiability Solver). This solver is used to
559555
check policy requirements to answer questions like "Is this user allowed to do this action?" and
560556
"What filter must be applied to this query to show only the allowed records a user can see?".
@@ -564,7 +560,11 @@ defmodule Ash.Policy.Authorizer do
564560
1. `:picosat_elixir` (recommended) - A NIF wrapper around the PicoSAT SAT solver. Fast, production ready, battle tested.
565561
2. `:simple_sat` (only if necessary) - A pure Elixir SAT solver. Slower than PicoSAT, but no NIF dependency.
566562
""",
567-
render_as: &to_string(elem(&1, 0))
563+
[
564+
{:picosat_elixir, "~> 0.2"},
565+
{:simple_sat, "~> 0.1"}
566+
],
567+
display: &to_string(elem(&1, 0))
568568
), nil}
569569

570570
_ ->

mix.exs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -392,9 +392,6 @@ defmodule Ash.MixProject do
392392
# Code Generators
393393
{:igniter, "~> 0.6 and >= 0.6.4", optional: true},
394394

395-
# IO Utilities
396-
{:owl, "~> 0.11"},
397-
398395
# Dev/Test dependencies
399396
{:eflame, "~> 1.0", only: [:dev, :test]},
400397
{:ex_doc, "~> 0.37", only: [:dev, :test], runtime: false},

0 commit comments

Comments
 (0)