Skip to content

Commit

Permalink
prepare release 0.5.0 (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
barnabasJ authored Jun 3, 2024
1 parent 038e2d2 commit 1dced98
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 22 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ All notable changes to this project will be documented here. The format is based
on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project
adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## Unreleased
## 2024-04-05 0.5.0

### Features

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The package can be installed by adding `ash_rbac` to your list of dependencies i
```elixir
def deps do
[
{:ash_rbac, "~> 0.4.0"},
{:ash_rbac, "~> 0.5.0"},
]
end
```
Expand Down
2 changes: 1 addition & 1 deletion documentation/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Add the ash_rbac dependency to your mix.exs
```elixir
defp deps do
[
{:ash_rbac, "~> 0.4.0"}
{:ash_rbac, "~> 0.5.0"}
]
end
```
Expand Down
4 changes: 2 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule AshRbac.MixProject do
def project do
[
app: :ash_rbac,
version: "0.4.0",
version: "0.5.0",
description: "A small extension for easier application of policies",
package: [
maintainers: ["travel tech d.luxe GmbH"],
Expand Down Expand Up @@ -61,7 +61,7 @@ defmodule AshRbac.MixProject do
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:ash, github: "ash-project/ash", branch: "main"},
{:ash, "~> 2.0"},
{:credo, "~> 1.6", only: [:dev, :test], runtime: false},
{:elixir_uuid, "~> 1.2", only: [:test], runtime: false},
{:ex_doc, "~> 0.27", only: :dev, runtime: false},
Expand Down
3 changes: 2 additions & 1 deletion mix.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
%{
"ash": {:git, "https://github.com/ash-project/ash.git", "acb9a0ee539896be4a844465933b904ed67c5034", [branch: "main"]},
"ash": {:hex, :ash, "2.15.17", "253467af43c4febc8dfbd5f174c0725d1d2a86c6e7ba6d4dd04ff25936bbaaa6", [:mix], [{:comparable, "~> 1.0", [hex: :comparable, repo: "hexpm", optional: false]}, {:decimal, "~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}, {:earmark, "~> 1.4", [hex: :earmark, repo: "hexpm", optional: false]}, {:ecto, "~> 3.7", [hex: :ecto, repo: "hexpm", optional: false]}, {:ets, "~> 0.8", [hex: :ets, repo: "hexpm", optional: false]}, {:jason, ">= 1.0.0", [hex: :jason, repo: "hexpm", optional: false]}, {:picosat_elixir, "~> 0.2", [hex: :picosat_elixir, repo: "hexpm", optional: false]}, {:plug, ">= 0.0.0", [hex: :plug, repo: "hexpm", optional: true]}, {:spark, ">= 1.1.20 and < 2.0.0-0", [hex: :spark, repo: "hexpm", optional: false]}, {:stream_data, "~> 0.6", [hex: :stream_data, repo: "hexpm", optional: false]}, {:telemetry, "~> 1.1", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "ea122915090b72c1fcff522bbf3cf566cc359479ae25de98e16509348d43430f"},
"benchee": {:hex, :benchee, "1.1.0", "f3a43817209a92a1fade36ef36b86e1052627fd8934a8b937ac9ab3a76c43062", [:mix], [{:deep_merge, "~> 1.0", [hex: :deep_merge, repo: "hexpm", optional: false]}, {:statistex, "~> 1.0", [hex: :statistex, repo: "hexpm", optional: false]}], "hexpm", "7da57d545003165a012b587077f6ba90b89210fd88074ce3c60ce239eb5e6d93"},
"blankable": {:hex, :blankable, "1.0.0", "89ab564a63c55af117e115144e3b3b57eb53ad43ba0f15553357eb283e0ed425", [:mix], [], "hexpm", "7cf11aac0e44f4eedbee0c15c1d37d94c090cb72a8d9fddf9f7aec30f9278899"},
"bunt": {:hex, :bunt, "0.2.1", "e2d4792f7bc0ced7583ab54922808919518d0e57ee162901a16a1b6664ef3b14", [:mix], [], "hexpm", "a330bfb4245239787b15005e66ae6845c9cd524a288f0d141c148b02603777a5"},
"comparable": {:hex, :comparable, "1.0.0", "bb669e91cedd14ae9937053e5bcbc3c52bb2f22422611f43b6e38367d94a495f", [:mix], [{:typable, "~> 0.1", [hex: :typable, repo: "hexpm", optional: false]}], "hexpm", "277c11eeb1cd726e7cd41c6c199e7e52fa16ee6830b45ad4cdc62e51f62eb60c"},
"credo": {:hex, :credo, "1.7.0", "6119bee47272e85995598ee04f2ebbed3e947678dee048d10b5feca139435f75", [:mix], [{:bunt, "~> 0.2.1", [hex: :bunt, repo: "hexpm", optional: false]}, {:file_system, "~> 0.2.8", [hex: :file_system, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "6839fcf63d1f0d1c0f450abc8564a57c43d644077ab96f2934563e68b8a769d7"},
"decimal": {:hex, :decimal, "2.1.1", "5611dca5d4b2c3dd497dec8f68751f1f1a54755e8ed2a966c2633cf885973ad6", [:mix], [], "hexpm", "53cfe5f497ed0e7771ae1a475575603d77425099ba5faef9394932b35020ffcc"},
"deep_merge": {:hex, :deep_merge, "1.0.0", "b4aa1a0d1acac393bdf38b2291af38cb1d4a52806cf7a4906f718e1feb5ee961", [:mix], [], "hexpm", "ce708e5f094b9cd4e8f2be4f00d2f4250c4095be93f8cd6d018c753894885430"},
"earmark": {:hex, :earmark, "1.4.46", "8c7287bd3137e99d26ae4643e5b7ef2129a260e3dcf41f251750cb4563c8fb81", [:mix], [], "hexpm", "798d86db3d79964e759ddc0c077d5eb254968ed426399fbf5a62de2b5ff8910a"},
"earmark_parser": {:hex, :earmark_parser, "1.4.33", "3c3fd9673bb5dcc9edc28dd90f50c87ce506d1f71b70e3de69aa8154bc695d44", [:mix], [], "hexpm", "2d526833729b59b9fdb85785078697c72ac5e5066350663e5be6a1182da61b8f"},
"ecto": {:hex, :ecto, "3.10.3", "eb2ae2eecd210b4eb8bece1217b297ad4ff824b4384c0e3fdd28aaf96edd6135", [:mix], [{:decimal, "~> 1.6 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "44bec74e2364d491d70f7e42cd0d690922659d329f6465e89feb8a34e8cd3433"},
"elixir_make": {:hex, :elixir_make, "0.7.7", "7128c60c2476019ed978210c245badf08b03dbec4f24d05790ef791da11aa17c", [:mix], [{:castore, "~> 0.1 or ~> 1.0", [hex: :castore, repo: "hexpm", optional: true]}], "hexpm", "5bc19fff950fad52bbe5f211b12db9ec82c6b34a9647da0c2224b8b8464c7e6c"},
Expand Down
20 changes: 4 additions & 16 deletions test/ash_rbac_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,7 @@ defmodule AshRbacTest do
created_at: %Ash.ForbiddenField{field: :created_at, type: :attribute},
id: _,
number: %Ash.NotLoaded{type: :calculation},
updated_at: %Ash.ForbiddenField{field: :updated_at, type: :attribute},
aggregates: %{},
calculations: %{}
updated_at: %Ash.ForbiddenField{field: :updated_at, type: :attribute}
}
]
} =
Expand All @@ -97,11 +95,7 @@ defmodule AshRbacTest do
created_at: nil,
id: _,
number: %Ash.NotLoaded{},
updated_at: nil,
aggregates: %{},
calculations: %{
{:__ash_fields_are_visible__, [:admin_only]} => false
}
updated_at: nil
}
]
} =
Expand All @@ -126,11 +120,7 @@ defmodule AshRbacTest do
created_at: nil,
id: _,
number: %Ash.NotLoaded{type: :calculation},
updated_at: nil,
aggregates: %{},
calculations: %{
{:__ash_fields_are_visible__, [:admin_only_number]} => false
}
updated_at: nil
}
]
} =
Expand All @@ -156,9 +146,7 @@ defmodule AshRbacTest do
created_at: nil,
id: _,
number: %Ash.NotLoaded{type: :calculation},
updated_at: nil,
aggregates: %{},
calculations: %{}
updated_at: nil
}
]
} =
Expand Down

0 comments on commit 1dced98

Please sign in to comment.