cedar_policy 0.6.2-aarch64-linux-gnu → 0.7.0-aarch64-linux-gnu
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.release-please-manifest.json +1 -1
- data/CHANGELOG.md +12 -0
- data/README.md +3 -3
- data/lib/cedar_policy/3.0/cedar_policy.so +0 -0
- data/lib/cedar_policy/3.1/cedar_policy.so +0 -0
- data/lib/cedar_policy/3.2/cedar_policy.so +0 -0
- data/lib/cedar_policy/3.3/cedar_policy.so +0 -0
- data/lib/cedar_policy/3.4/cedar_policy.so +0 -0
- data/lib/cedar_policy/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8f0c6563284f6912177284aa25f16bcc34f17a8b6801a2f18ff638ceaff2865d
|
|
4
|
+
data.tar.gz: f1ca2c31f318aa87c730638c7bc6fd88163e11869ae19db9402cd2a3b3c15f40
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c5581059dcd7df6c86bf154063ae3f01d684cea7e3592d8266161cbdb4e7e87a7c42116e44d5a5b31d9499b830816bb0c6f90b059197627008de59d3056eff72
|
|
7
|
+
data.tar.gz: af8fa0298cae30820a0ee6198755766825ce14ce3a72760cc5dd6916afaff94a68965e943d228b9ab060017e6a705f8ced6d63467c0966fc9c11eaad6be59fa8
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{".":"0.
|
|
1
|
+
{".":"0.7.0"}
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.7.0](https://github.com/elct9620/cedar-policy-rb/compare/v0.6.2...v0.7.0) (2026-02-26)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add policy_ids method to PolicySet ([3812daf](https://github.com/elct9620/cedar-policy-rb/commit/3812dafce10a6574c07316ec73e2e45c15fdcd9f))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **deps:** enable stable-api-compiled-fallback for Ruby 4.0 support ([c3603ec](https://github.com/elct9620/cedar-policy-rb/commit/c3603ec67e0aa25cba9f57a08c2906a1bb43ccce))
|
|
14
|
+
|
|
3
15
|
## [0.6.2](https://github.com/elct9620/cedar-policy-rb/compare/v0.6.1...v0.6.2) (2025-08-26)
|
|
4
16
|
|
|
5
17
|
|
data/README.md
CHANGED
|
@@ -40,7 +40,7 @@ policy_set = CedarPolicy::PolicySet.new(policy)
|
|
|
40
40
|
Prepare the Entity's ID via `EntityUid` or an object with `#to_hash` method which returns a hash with `:type` and `:id` keys.
|
|
41
41
|
|
|
42
42
|
```ruby
|
|
43
|
-
principal = CedarPolicy::EntityUid.new("
|
|
43
|
+
principal = CedarPolicy::EntityUid.new("AdminUser", "1") # or { type: "AdminUser", id: "1" }
|
|
44
44
|
action = CedarPolicy::EntityUid.new("Action", "view")
|
|
45
45
|
resource = CedarPolicy::EntityUid.new("Image", "1")
|
|
46
46
|
```
|
|
@@ -85,10 +85,10 @@ Create an `Authorizer` object and authorize the request with the policy set and
|
|
|
85
85
|
authorizer = CedarPolicy::Authorizer.new
|
|
86
86
|
```
|
|
87
87
|
|
|
88
|
-
If boolean result is enough, use `#
|
|
88
|
+
If boolean result is enough, use `#authorized?` method.
|
|
89
89
|
|
|
90
90
|
```ruby
|
|
91
|
-
authorizer.
|
|
91
|
+
authorizer.authorized?(request, policy_set, entities) # => true
|
|
92
92
|
```
|
|
93
93
|
|
|
94
94
|
If you want to get the decision object, use `#authorize` method.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/lib/cedar_policy/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cedar_policy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.7.0
|
|
5
5
|
platform: aarch64-linux-gnu
|
|
6
6
|
authors:
|
|
7
7
|
- Aotokitsuruya
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-02-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Ruby bindings for Cedar policy evaluation engine.
|
|
14
14
|
email:
|