cedar_policy 0.6.0-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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a9c8b2062cc3bb7c920335588cfd24d853cf7b9117da786fa3a4128d5672f010
4
- data.tar.gz: e19f200fe286085a3690f818be0635e1186648188c22f558187ae6b65b73c002
3
+ metadata.gz: 8f0c6563284f6912177284aa25f16bcc34f17a8b6801a2f18ff638ceaff2865d
4
+ data.tar.gz: f1ca2c31f318aa87c730638c7bc6fd88163e11869ae19db9402cd2a3b3c15f40
5
5
  SHA512:
6
- metadata.gz: d11a91b0c9719e838249bc6e3f2ea80ed0805a81aff6617c4dd8407e70ad9f48f2ceb31c267b7400a23fb6eb6acd7ba1e1dd8095c8889487a7eb79897e462b4e
7
- data.tar.gz: bc841fd7459c4e3667d9d1efd9cce69b67bc23ce716a7455410446c99c2b8d6dcc14828b516b9bbe1aa4740859a1902246f55d04ee1e242e6f672e1ad82854d4
6
+ metadata.gz: c5581059dcd7df6c86bf154063ae3f01d684cea7e3592d8266161cbdb4e7e87a7c42116e44d5a5b31d9499b830816bb0c6f90b059197627008de59d3056eff72
7
+ data.tar.gz: af8fa0298cae30820a0ee6198755766825ce14ce3a72760cc5dd6916afaff94a68965e943d228b9ab060017e6a705f8ced6d63467c0966fc9c11eaad6be59fa8
@@ -1 +1 @@
1
- {".":"0.6.0"}
1
+ {".":"0.7.0"}
data/CHANGELOG.md CHANGED
@@ -1,5 +1,38 @@
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
+
15
+ ## [0.6.2](https://github.com/elct9620/cedar-policy-rb/compare/v0.6.1...v0.6.2) (2025-08-26)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * improve Ruby version compatibility and cross-compilation ([e08a3a0](https://github.com/elct9620/cedar-policy-rb/commit/e08a3a0c2266a1feb74a83ee38705205653f3625))
21
+ * revert rb_sys to 0.9.116 and restore mingw support ([6646b08](https://github.com/elct9620/cedar-policy-rb/commit/6646b08aea8954b0071b29936d03b48854eb203a))
22
+ * select correct minimal ruby version for different platform ([9d9fc09](https://github.com/elct9620/cedar-policy-rb/commit/9d9fc09a4c8dec6269cd05b22774c5e03aeb2dce))
23
+
24
+
25
+ ### Reverts
26
+
27
+ * restore rb_sys to 0.9.117 after investigation ([f1e77dd](https://github.com/elct9620/cedar-policy-rb/commit/f1e77ddca61b7c48575c6548620a76cc5954524e))
28
+
29
+ ## [0.6.1](https://github.com/elct9620/cedar-policy-rb/compare/v0.6.0...v0.6.1) (2025-08-26)
30
+
31
+
32
+ ### Miscellaneous Chores
33
+
34
+ * release-as 0.6.1 ([882b4d9](https://github.com/elct9620/cedar-policy-rb/commit/882b4d9566a09f733195fc8216032a2fd0f3c7b9))
35
+
3
36
  ## [0.6.0](https://github.com/elct9620/cedar-policy-rb/compare/v0.5.3...v0.6.0) (2025-06-12)
4
37
 
5
38
 
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("User", "1") # or { type: "User", id: "1" }
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 `#authorize?` method.
88
+ If boolean result is enough, use `#authorized?` method.
89
89
 
90
90
  ```ruby
91
- authorizer.authorize?(request, policy_set, entities) # => true
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CedarPolicy
4
- VERSION = "0.6.0"
4
+ VERSION = "0.7.0"
5
5
  end
data/lib/cedar_policy.rb CHANGED
@@ -4,12 +4,18 @@ require "json"
4
4
  require "set"
5
5
 
6
6
  require_relative "cedar_policy/version"
7
- require_relative "cedar_policy/cedar_policy"
8
7
  require_relative "cedar_policy/entity_uid"
9
8
  require_relative "cedar_policy/entity"
10
9
  require_relative "cedar_policy/entities"
11
10
  require_relative "cedar_policy/context"
12
11
 
12
+ begin
13
+ RUBY_VERSION =~ /(\d+\.\d+)/
14
+ require "cedar_policy/#{Regexp.last_match(1)}/cedar_policy"
15
+ rescue LoadError
16
+ require "cedar_policy/cedar_policy"
17
+ end
18
+
13
19
  # :nodoc:
14
20
  module CedarPolicy
15
21
  class Error < StandardError; end
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.6.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: 2025-06-12 00:00:00.000000000 Z
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: