cedar_policy 0.6.0 → 0.6.2

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: 3caa8f1d7cb961d1206dfdca117971c465cd12ef4430e418109cc1b84ad2d02f
4
- data.tar.gz: 4b3a28e67b6b3d4dff9513751c237fee0d4e3d9a6dd0da5c998ba6e48c837c8c
3
+ metadata.gz: 38c040a8b2a66186277adb6e3424840bc3e410444ddde470fad7f1e04a42ce61
4
+ data.tar.gz: f4ee38c4f1de27d91353b4d9d9e80a85a5204f1eaa7450f67f94a417e67baf14
5
5
  SHA512:
6
- metadata.gz: e4053d1e2d72ed0a6614937cea2993e97a16f616a7f50f6c78f527aa7e6935a3d448f581f6e01a1cf7fd1b22902e627aeb9114dc299c88d7967b4e1b6077ce2e
7
- data.tar.gz: 6199d6cf0e504f4203b882bc02548e35825182e88121bfff5437add4d14a820f0674714eee05207477eda66b25da951277f8525c000beb083ce6d03ba4079c2c
6
+ metadata.gz: b56d9cbd59da63236216dba57f539a27b9480b01aa18526463eac8d0f7299af38a1c8f52af4c2bc5c1821293cefb9a9d17c1cc62eb570e197add92f03f38dfce
7
+ data.tar.gz: 6dac00819069fe90bd6dece4be28c489cd4fd9efe23ab827c59a37228f606e9ba8ffbf8b66766139a0e2cb5e6e09a2edd371dca73c9f321f4aef244311a0b4ac
@@ -1 +1 @@
1
- {".":"0.6.0"}
1
+ {".":"0.6.2"}
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.6.2](https://github.com/elct9620/cedar-policy-rb/compare/v0.6.1...v0.6.2) (2025-08-26)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * improve Ruby version compatibility and cross-compilation ([e08a3a0](https://github.com/elct9620/cedar-policy-rb/commit/e08a3a0c2266a1feb74a83ee38705205653f3625))
9
+ * revert rb_sys to 0.9.116 and restore mingw support ([6646b08](https://github.com/elct9620/cedar-policy-rb/commit/6646b08aea8954b0071b29936d03b48854eb203a))
10
+ * select correct minimal ruby version for different platform ([9d9fc09](https://github.com/elct9620/cedar-policy-rb/commit/9d9fc09a4c8dec6269cd05b22774c5e03aeb2dce))
11
+
12
+
13
+ ### Reverts
14
+
15
+ * restore rb_sys to 0.9.117 after investigation ([f1e77dd](https://github.com/elct9620/cedar-policy-rb/commit/f1e77ddca61b7c48575c6548620a76cc5954524e))
16
+
17
+ ## [0.6.1](https://github.com/elct9620/cedar-policy-rb/compare/v0.6.0...v0.6.1) (2025-08-26)
18
+
19
+
20
+ ### Miscellaneous Chores
21
+
22
+ * release-as 0.6.1 ([882b4d9](https://github.com/elct9620/cedar-policy-rb/commit/882b4d9566a09f733195fc8216032a2fd0f3c7b9))
23
+
3
24
  ## [0.6.0](https://github.com/elct9620/cedar-policy-rb/compare/v0.5.3...v0.6.0) (2025-06-12)
4
25
 
5
26
 
data/Cargo.lock CHANGED
@@ -43,9 +43,9 @@ dependencies = [
43
43
 
44
44
  [[package]]
45
45
  name = "autocfg"
46
- version = "1.4.0"
46
+ version = "1.5.0"
47
47
  source = "registry+https://github.com/rust-lang/crates.io-index"
48
- checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26"
48
+ checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
49
49
 
50
50
  [[package]]
51
51
  name = "base64"
@@ -96,9 +96,9 @@ checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7"
96
96
 
97
97
  [[package]]
98
98
  name = "bitflags"
99
- version = "2.9.1"
99
+ version = "2.9.3"
100
100
  source = "registry+https://github.com/rust-lang/crates.io-index"
101
- checksum = "1b8e56985ec62d17e9c1001dc89c88ecd7dc08e47eba5ec7c29c7b5eeecde967"
101
+ checksum = "34efbcccd345379ca2868b2b2c9d3782e9cc58ba87bc7d79d5b53d9c9ae6f25d"
102
102
 
103
103
  [[package]]
104
104
  name = "block-buffer"
@@ -120,28 +120,27 @@ dependencies = [
120
120
 
121
121
  [[package]]
122
122
  name = "bumpalo"
123
- version = "3.18.1"
123
+ version = "3.19.0"
124
124
  source = "registry+https://github.com/rust-lang/crates.io-index"
125
- checksum = "793db76d6187cd04dff33004d8e6c9cc4e05cd330500379d2394209271b4aeee"
125
+ checksum = "46c5e41b57b8bba42a04676d81cb89e9ee8e859a1a66f80a5a72e1cb76b34d43"
126
126
 
127
127
  [[package]]
128
128
  name = "cc"
129
- version = "1.2.26"
129
+ version = "1.2.34"
130
130
  source = "registry+https://github.com/rust-lang/crates.io-index"
131
- checksum = "956a5e21988b87f372569b66183b78babf23ebc2e744b733e4350a752c4dafac"
131
+ checksum = "42bc4aea80032b7bf409b0bc7ccad88853858911b7713a8062fdc0623867bedc"
132
132
  dependencies = [
133
133
  "shlex",
134
134
  ]
135
135
 
136
136
  [[package]]
137
137
  name = "cedar-policy"
138
- version = "4.4.1"
138
+ version = "4.5.1"
139
139
  source = "registry+https://github.com/rust-lang/crates.io-index"
140
- checksum = "a1d37df3afde553492d8413d02a733e86a786c29f5b36c6d8d72bc6e5c0c7f63"
140
+ checksum = "c48e6e6d7a17aabe41cf70c5613413ce0cc82f5f651357843bd02b8d41ca08a4"
141
141
  dependencies = [
142
142
  "cedar-policy-core",
143
143
  "cedar-policy-formatter",
144
- "cedar-policy-validator",
145
144
  "itertools 0.14.0",
146
145
  "lalrpop-util",
147
146
  "lazy_static",
@@ -158,9 +157,9 @@ dependencies = [
158
157
 
159
158
  [[package]]
160
159
  name = "cedar-policy-core"
161
- version = "4.4.1"
160
+ version = "4.5.1"
162
161
  source = "registry+https://github.com/rust-lang/crates.io-index"
163
- checksum = "dd896075d493e8283e960c94cf85d85773dc3359cf948a5f5ea88a6f249e8665"
162
+ checksum = "02b45be5c965ce63bec3d284fefe0e042342f4e77f149a1e7aafc045119df738"
164
163
  dependencies = [
165
164
  "chrono",
166
165
  "educe",
@@ -180,13 +179,14 @@ dependencies = [
180
179
  "smol_str",
181
180
  "stacker",
182
181
  "thiserror",
182
+ "unicode-security",
183
183
  ]
184
184
 
185
185
  [[package]]
186
186
  name = "cedar-policy-formatter"
187
- version = "4.4.1"
187
+ version = "4.5.1"
188
188
  source = "registry+https://github.com/rust-lang/crates.io-index"
189
- checksum = "95db50a024d5ed3efe4b9b513124b564313716ada017860c17995ec227ab46b1"
189
+ checksum = "ddec9c888e3afff8000f92d7c93e20a32559301c65fb80683335fb8bb8bf2f35"
190
190
  dependencies = [
191
191
  "cedar-policy-core",
192
192
  "itertools 0.14.0",
@@ -198,33 +198,9 @@ dependencies = [
198
198
  "smol_str",
199
199
  ]
200
200
 
201
- [[package]]
202
- name = "cedar-policy-validator"
203
- version = "4.4.1"
204
- source = "registry+https://github.com/rust-lang/crates.io-index"
205
- checksum = "2f40762e669e4ec5a4b3a2b3d3aa2567d768aa74b735760f13197312c1150f69"
206
- dependencies = [
207
- "cedar-policy-core",
208
- "educe",
209
- "itertools 0.14.0",
210
- "lalrpop",
211
- "lalrpop-util",
212
- "lazy_static",
213
- "miette",
214
- "nonempty",
215
- "ref-cast",
216
- "serde",
217
- "serde_json",
218
- "serde_with",
219
- "smol_str",
220
- "stacker",
221
- "thiserror",
222
- "unicode-security",
223
- ]
224
-
225
201
  [[package]]
226
202
  name = "cedar_policy"
227
- version = "0.6.0"
203
+ version = "0.6.2"
228
204
  dependencies = [
229
205
  "cedar-policy",
230
206
  "magnus",
@@ -242,9 +218,9 @@ dependencies = [
242
218
 
243
219
  [[package]]
244
220
  name = "cfg-if"
245
- version = "1.0.1"
221
+ version = "1.0.3"
246
222
  source = "registry+https://github.com/rust-lang/crates.io-index"
247
- checksum = "9555578bc9e57714c812a1f84e4fc5b4d21fcb063490c624de019f7464c91268"
223
+ checksum = "2fd1289c04a9ea8cb22300a459a72a385d7c73d3259e2ed7dcb2af674838cfa9"
248
224
 
249
225
  [[package]]
250
226
  name = "cfg_aliases"
@@ -356,6 +332,12 @@ dependencies = [
356
332
  "crypto-common",
357
333
  ]
358
334
 
335
+ [[package]]
336
+ name = "dyn-clone"
337
+ version = "1.0.20"
338
+ source = "registry+https://github.com/rust-lang/crates.io-index"
339
+ checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555"
340
+
359
341
  [[package]]
360
342
  name = "educe"
361
343
  version = "0.6.0"
@@ -433,9 +415,9 @@ dependencies = [
433
415
 
434
416
  [[package]]
435
417
  name = "glob"
436
- version = "0.3.2"
418
+ version = "0.3.3"
437
419
  source = "registry+https://github.com/rust-lang/crates.io-index"
438
- checksum = "a8d1add55171497b4705a648c6b583acafb01d58050a51727785f0b2c8e0a2b2"
420
+ checksum = "0cc23270f6e1808e30a928bdc84dea0b9b4136a8bc82338574f23baf47bbd280"
439
421
 
440
422
  [[package]]
441
423
  name = "hashbrown"
@@ -445,9 +427,9 @@ checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888"
445
427
 
446
428
  [[package]]
447
429
  name = "hashbrown"
448
- version = "0.15.4"
430
+ version = "0.15.5"
449
431
  source = "registry+https://github.com/rust-lang/crates.io-index"
450
- checksum = "5971ac85611da7067dbfcabef3c70ebb5606018acd9e2a3903a0da507521e0d5"
432
+ checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1"
451
433
 
452
434
  [[package]]
453
435
  name = "hex"
@@ -455,15 +437,6 @@ version = "0.4.3"
455
437
  source = "registry+https://github.com/rust-lang/crates.io-index"
456
438
  checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
457
439
 
458
- [[package]]
459
- name = "home"
460
- version = "0.5.11"
461
- source = "registry+https://github.com/rust-lang/crates.io-index"
462
- checksum = "589533453244b0995c858700322199b2becb13b627df2851f64a2775d024abcf"
463
- dependencies = [
464
- "windows-sys",
465
- ]
466
-
467
440
  [[package]]
468
441
  name = "iana-time-zone"
469
442
  version = "0.1.63"
@@ -507,12 +480,12 @@ dependencies = [
507
480
 
508
481
  [[package]]
509
482
  name = "indexmap"
510
- version = "2.9.0"
483
+ version = "2.11.0"
511
484
  source = "registry+https://github.com/rust-lang/crates.io-index"
512
- checksum = "cea70ddb795996207ad57735b50c5982d8844f38ba9ee5f1aedcfb708a2aa11e"
485
+ checksum = "f2481980430f9f78649238835720ddccc57e52df14ffce1c6f37391d61b563e9"
513
486
  dependencies = [
514
487
  "equivalent",
515
- "hashbrown 0.15.4",
488
+ "hashbrown 0.15.5",
516
489
  "serde",
517
490
  ]
518
491
 
@@ -605,9 +578,9 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
605
578
 
606
579
  [[package]]
607
580
  name = "libc"
608
- version = "0.2.172"
581
+ version = "0.2.175"
609
582
  source = "registry+https://github.com/rust-lang/crates.io-index"
610
- checksum = "d750af042f7ef4f724306de029d18836c26c1765a54a6a3f094cbd23a7267ffa"
583
+ checksum = "6a82ae493e598baaea5209805c49bbf2ea7de956d50d7da0da1164f9c6d28543"
611
584
 
612
585
  [[package]]
613
586
  name = "libloading"
@@ -616,7 +589,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
616
589
  checksum = "07033963ba89ebaf1584d767badaa2e8fcec21aedea6b8c0346d487d49c28667"
617
590
  dependencies = [
618
591
  "cfg-if",
619
- "windows-targets 0.53.0",
592
+ "windows-targets 0.53.3",
620
593
  ]
621
594
 
622
595
  [[package]]
@@ -637,18 +610,18 @@ checksum = "13dc2df351e3202783a1fe0d44375f7295ffb4049267b0f3018346dc122a1d94"
637
610
 
638
611
  [[package]]
639
612
  name = "logos"
640
- version = "0.15.0"
613
+ version = "0.15.1"
641
614
  source = "registry+https://github.com/rust-lang/crates.io-index"
642
- checksum = "ab6f536c1af4c7cc81edf73da1f8029896e7e1e16a219ef09b184e76a296f3db"
615
+ checksum = "ff472f899b4ec2d99161c51f60ff7075eeb3097069a36050d8037a6325eb8154"
643
616
  dependencies = [
644
617
  "logos-derive",
645
618
  ]
646
619
 
647
620
  [[package]]
648
621
  name = "logos-codegen"
649
- version = "0.15.0"
622
+ version = "0.15.1"
650
623
  source = "registry+https://github.com/rust-lang/crates.io-index"
651
- checksum = "189bbfd0b61330abea797e5e9276408f2edbe4f822d7ad08685d67419aafb34e"
624
+ checksum = "192a3a2b90b0c05b27a0b2c43eecdb7c415e29243acc3f89cc8247a5b693045c"
652
625
  dependencies = [
653
626
  "beef",
654
627
  "fnv",
@@ -662,9 +635,9 @@ dependencies = [
662
635
 
663
636
  [[package]]
664
637
  name = "logos-derive"
665
- version = "0.15.0"
638
+ version = "0.15.1"
666
639
  source = "registry+https://github.com/rust-lang/crates.io-index"
667
- checksum = "ebfe8e1a19049ddbfccbd14ac834b215e11b85b90bab0c2dba7c7b92fb5d5cba"
640
+ checksum = "605d9697bcd5ef3a42d38efc51541aa3d6a4a25f7ab6d1ed0da5ac632a26b470"
668
641
  dependencies = [
669
642
  "logos-codegen",
670
643
  ]
@@ -694,9 +667,9 @@ dependencies = [
694
667
 
695
668
  [[package]]
696
669
  name = "memchr"
697
- version = "2.7.4"
670
+ version = "2.7.5"
698
671
  source = "registry+https://github.com/rust-lang/crates.io-index"
699
- checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"
672
+ checksum = "32a282da65faaf38286cf3be983213fcf1d2e2a58700e808f83f4ea9a4804bc0"
700
673
 
701
674
  [[package]]
702
675
  name = "miette"
@@ -803,7 +776,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
803
776
  checksum = "3672b37090dbd86368a4145bc067582552b29c27377cad4e0a306c97f9bd7772"
804
777
  dependencies = [
805
778
  "fixedbitset",
806
- "indexmap 2.9.0",
779
+ "indexmap 2.11.0",
807
780
  ]
808
781
 
809
782
  [[package]]
@@ -846,9 +819,9 @@ dependencies = [
846
819
 
847
820
  [[package]]
848
821
  name = "proc-macro2"
849
- version = "1.0.95"
822
+ version = "1.0.101"
850
823
  source = "registry+https://github.com/rust-lang/crates.io-index"
851
- checksum = "02b3e5e68a3a1a02aad3ec490a98007cbc13c37cbe84a3cd7b8e406d76e7f778"
824
+ checksum = "89ae43fd86e4158d6db51ad8e2b80f313af9cc74f5c0e03ccb87de09998732de"
852
825
  dependencies = [
853
826
  "unicode-ident",
854
827
  ]
@@ -873,18 +846,18 @@ dependencies = [
873
846
 
874
847
  [[package]]
875
848
  name = "rb-sys"
876
- version = "0.9.116"
849
+ version = "0.9.117"
877
850
  source = "registry+https://github.com/rust-lang/crates.io-index"
878
- checksum = "7059846f68396df83155779c75336ca24567741cb95256e6308c9fcc370e8dad"
851
+ checksum = "f900d1ce4629a2ebffaf5de74bd8f9c1188d4c5ed406df02f97e22f77a006f44"
879
852
  dependencies = [
880
853
  "rb-sys-build",
881
854
  ]
882
855
 
883
856
  [[package]]
884
857
  name = "rb-sys-build"
885
- version = "0.9.116"
858
+ version = "0.9.117"
886
859
  source = "registry+https://github.com/rust-lang/crates.io-index"
887
- checksum = "ac217510df41b9ffc041573e68d7a02aaff770c49943c7494441c4b224b0ecd0"
860
+ checksum = "ef1e9c857028f631056bcd6d88cec390c751e343ce2223ddb26d23eb4a151d59"
888
861
  dependencies = [
889
862
  "bindgen",
890
863
  "lazy_static",
@@ -903,9 +876,9 @@ checksum = "a35802679f07360454b418a5d1735c89716bde01d35b1560fc953c1415a0b3bb"
903
876
 
904
877
  [[package]]
905
878
  name = "redox_syscall"
906
- version = "0.5.12"
879
+ version = "0.5.17"
907
880
  source = "registry+https://github.com/rust-lang/crates.io-index"
908
- checksum = "928fca9cf2aa042393a8325b9ead81d2f0df4cb12e1e24cef072922ccd99c5af"
881
+ checksum = "5407465600fb0548f1442edf71dd20683c6ed326200ace4b1ef0763521bb3b77"
909
882
  dependencies = [
910
883
  "bitflags",
911
884
  ]
@@ -932,9 +905,9 @@ dependencies = [
932
905
 
933
906
  [[package]]
934
907
  name = "regex"
935
- version = "1.11.1"
908
+ version = "1.11.2"
936
909
  source = "registry+https://github.com/rust-lang/crates.io-index"
937
- checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191"
910
+ checksum = "23d7fd106d8c02486a8d64e778353d1cffe08ce79ac2e82f540c86d0facf6912"
938
911
  dependencies = [
939
912
  "aho-corasick",
940
913
  "memchr",
@@ -944,9 +917,9 @@ dependencies = [
944
917
 
945
918
  [[package]]
946
919
  name = "regex-automata"
947
- version = "0.4.9"
920
+ version = "0.4.10"
948
921
  source = "registry+https://github.com/rust-lang/crates.io-index"
949
- checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908"
922
+ checksum = "6b9458fa0bfeeac22b5ca447c63aaf45f28439a709ccd244698632f9aa6394d6"
950
923
  dependencies = [
951
924
  "aho-corasick",
952
925
  "memchr",
@@ -955,9 +928,9 @@ dependencies = [
955
928
 
956
929
  [[package]]
957
930
  name = "regex-syntax"
958
- version = "0.8.5"
931
+ version = "0.8.6"
959
932
  source = "registry+https://github.com/rust-lang/crates.io-index"
960
- checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c"
933
+ checksum = "caf4aa5b0f434c91fe5c7f1ecb6a5ece2130b02ad2a590589dda5146df959001"
961
934
 
962
935
  [[package]]
963
936
  name = "rustc-hash"
@@ -985,9 +958,9 @@ dependencies = [
985
958
 
986
959
  [[package]]
987
960
  name = "rustversion"
988
- version = "1.0.21"
961
+ version = "1.0.22"
989
962
  source = "registry+https://github.com/rust-lang/crates.io-index"
990
- checksum = "8a0d197bd2c9dc6e53b84da9556a69ba4cdfab8619eb41a8bd1cc2027a0f6b1d"
963
+ checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
991
964
 
992
965
  [[package]]
993
966
  name = "ryu"
@@ -1004,6 +977,30 @@ dependencies = [
1004
977
  "winapi-util",
1005
978
  ]
1006
979
 
980
+ [[package]]
981
+ name = "schemars"
982
+ version = "0.9.0"
983
+ source = "registry+https://github.com/rust-lang/crates.io-index"
984
+ checksum = "4cd191f9397d57d581cddd31014772520aa448f65ef991055d7f61582c65165f"
985
+ dependencies = [
986
+ "dyn-clone",
987
+ "ref-cast",
988
+ "serde",
989
+ "serde_json",
990
+ ]
991
+
992
+ [[package]]
993
+ name = "schemars"
994
+ version = "1.0.4"
995
+ source = "registry+https://github.com/rust-lang/crates.io-index"
996
+ checksum = "82d20c4491bc164fa2f6c5d44565947a52ad80b9505d8e36f8d54c27c739fcd0"
997
+ dependencies = [
998
+ "dyn-clone",
999
+ "ref-cast",
1000
+ "serde",
1001
+ "serde_json",
1002
+ ]
1003
+
1007
1004
  [[package]]
1008
1005
  name = "scopeguard"
1009
1006
  version = "1.2.0"
@@ -1044,11 +1041,11 @@ dependencies = [
1044
1041
 
1045
1042
  [[package]]
1046
1043
  name = "serde_json"
1047
- version = "1.0.140"
1044
+ version = "1.0.143"
1048
1045
  source = "registry+https://github.com/rust-lang/crates.io-index"
1049
- checksum = "20068b6e96dc6c9bd23e01df8827e6c7e1f2fddd43c21810382803c136b99373"
1046
+ checksum = "d401abef1d108fbd9cbaebc3e46611f4b1021f714a0597a71f41ee463f5f4a5a"
1050
1047
  dependencies = [
1051
- "indexmap 2.9.0",
1048
+ "indexmap 2.11.0",
1052
1049
  "itoa",
1053
1050
  "memchr",
1054
1051
  "ryu",
@@ -1068,15 +1065,17 @@ dependencies = [
1068
1065
 
1069
1066
  [[package]]
1070
1067
  name = "serde_with"
1071
- version = "3.12.0"
1068
+ version = "3.14.0"
1072
1069
  source = "registry+https://github.com/rust-lang/crates.io-index"
1073
- checksum = "d6b6f7f2fcb69f747921f79f3926bd1e203fce4fef62c268dd3abfb6d86029aa"
1070
+ checksum = "f2c45cd61fefa9db6f254525d46e392b852e0e61d9a1fd36e5bd183450a556d5"
1074
1071
  dependencies = [
1075
1072
  "base64",
1076
1073
  "chrono",
1077
1074
  "hex",
1078
1075
  "indexmap 1.9.3",
1079
- "indexmap 2.9.0",
1076
+ "indexmap 2.11.0",
1077
+ "schemars 0.9.0",
1078
+ "schemars 1.0.4",
1080
1079
  "serde",
1081
1080
  "serde_derive",
1082
1081
  "serde_json",
@@ -1086,9 +1085,9 @@ dependencies = [
1086
1085
 
1087
1086
  [[package]]
1088
1087
  name = "serde_with_macros"
1089
- version = "3.12.0"
1088
+ version = "3.14.0"
1090
1089
  source = "registry+https://github.com/rust-lang/crates.io-index"
1091
- checksum = "8d00caa5193a3c8362ac2b73be6b9e768aa5a4b2f721d8f4b339600c3cb51f8e"
1090
+ checksum = "de90945e6565ce0d9a25098082ed4ee4002e047cb59892c318d66821e14bb30f"
1092
1091
  dependencies = [
1093
1092
  "darling",
1094
1093
  "proc-macro2",
@@ -1150,7 +1149,7 @@ dependencies = [
1150
1149
  "cfg-if",
1151
1150
  "libc",
1152
1151
  "psm",
1153
- "windows-sys",
1152
+ "windows-sys 0.59.0",
1154
1153
  ]
1155
1154
 
1156
1155
  [[package]]
@@ -1173,9 +1172,9 @@ checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
1173
1172
 
1174
1173
  [[package]]
1175
1174
  name = "syn"
1176
- version = "2.0.102"
1175
+ version = "2.0.106"
1177
1176
  source = "registry+https://github.com/rust-lang/crates.io-index"
1178
- checksum = "f6397daf94fa90f058bd0fd88429dd9e5738999cca8d701813c80723add80462"
1177
+ checksum = "ede7c438028d4436d71104916910f5bb611972c5cfd7f89b8300a8186e6fada6"
1179
1178
  dependencies = [
1180
1179
  "proc-macro2",
1181
1180
  "quote",
@@ -1190,28 +1189,27 @@ checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369"
1190
1189
 
1191
1190
  [[package]]
1192
1191
  name = "term"
1193
- version = "1.0.2"
1192
+ version = "1.1.0"
1194
1193
  source = "registry+https://github.com/rust-lang/crates.io-index"
1195
- checksum = "8a984c8d058c627faaf5e8e2ed493fa3c51771889196de1016cf9c1c6e90d750"
1194
+ checksum = "a43bddab41f8626c7bdaab872bbba75f8df5847b516d77c569c746e2ae5eb746"
1196
1195
  dependencies = [
1197
- "home",
1198
- "windows-sys",
1196
+ "windows-sys 0.60.2",
1199
1197
  ]
1200
1198
 
1201
1199
  [[package]]
1202
1200
  name = "thiserror"
1203
- version = "2.0.12"
1201
+ version = "2.0.16"
1204
1202
  source = "registry+https://github.com/rust-lang/crates.io-index"
1205
- checksum = "567b8a2dae586314f7be2a752ec7474332959c6460e02bde30d702a66d488708"
1203
+ checksum = "3467d614147380f2e4e374161426ff399c91084acd2363eaf549172b3d5e60c0"
1206
1204
  dependencies = [
1207
1205
  "thiserror-impl",
1208
1206
  ]
1209
1207
 
1210
1208
  [[package]]
1211
1209
  name = "thiserror-impl"
1212
- version = "2.0.12"
1210
+ version = "2.0.16"
1213
1211
  source = "registry+https://github.com/rust-lang/crates.io-index"
1214
- checksum = "7f7cf42b4507d8ea322120659672cf1b9dbb93f8f2d4ecfd6e51350ff5b17a1d"
1212
+ checksum = "6c5e1be1c48b9172ee610da68fd9cd2770e7a4056cb3fc98710ee6906f0c7960"
1215
1213
  dependencies = [
1216
1214
  "proc-macro2",
1217
1215
  "quote",
@@ -1251,9 +1249,9 @@ dependencies = [
1251
1249
 
1252
1250
  [[package]]
1253
1251
  name = "tinyvec"
1254
- version = "1.9.0"
1252
+ version = "1.10.0"
1255
1253
  source = "registry+https://github.com/rust-lang/crates.io-index"
1256
- checksum = "09b3661f17e86524eccd4371ab0429194e0d7c008abb45f7a7495b1719463c71"
1254
+ checksum = "bfa5fdc3bce6191a1dbc8c02d5c8bffcf557bafa17c124c5264a458f1b0613fa"
1257
1255
  dependencies = [
1258
1256
  "tinyvec_macros",
1259
1257
  ]
@@ -1395,11 +1393,11 @@ dependencies = [
1395
1393
 
1396
1394
  [[package]]
1397
1395
  name = "winapi-util"
1398
- version = "0.1.9"
1396
+ version = "0.1.10"
1399
1397
  source = "registry+https://github.com/rust-lang/crates.io-index"
1400
- checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb"
1398
+ checksum = "0978bf7171b3d90bac376700cb56d606feb40f251a475a5d6634613564460b22"
1401
1399
  dependencies = [
1402
- "windows-sys",
1400
+ "windows-sys 0.60.2",
1403
1401
  ]
1404
1402
 
1405
1403
  [[package]]
@@ -1439,9 +1437,9 @@ dependencies = [
1439
1437
 
1440
1438
  [[package]]
1441
1439
  name = "windows-link"
1442
- version = "0.1.1"
1440
+ version = "0.1.3"
1443
1441
  source = "registry+https://github.com/rust-lang/crates.io-index"
1444
- checksum = "76840935b766e1b0a05c0066835fb9ec80071d4c09a16f6bd5f7e655e3c14c38"
1442
+ checksum = "5e6ad25900d524eaabdbbb96d20b4311e1e7ae1699af4fb28c17ae66c80d798a"
1445
1443
 
1446
1444
  [[package]]
1447
1445
  name = "windows-result"
@@ -1470,6 +1468,15 @@ dependencies = [
1470
1468
  "windows-targets 0.52.6",
1471
1469
  ]
1472
1470
 
1471
+ [[package]]
1472
+ name = "windows-sys"
1473
+ version = "0.60.2"
1474
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1475
+ checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb"
1476
+ dependencies = [
1477
+ "windows-targets 0.53.3",
1478
+ ]
1479
+
1473
1480
  [[package]]
1474
1481
  name = "windows-targets"
1475
1482
  version = "0.52.6"
@@ -1488,10 +1495,11 @@ dependencies = [
1488
1495
 
1489
1496
  [[package]]
1490
1497
  name = "windows-targets"
1491
- version = "0.53.0"
1498
+ version = "0.53.3"
1492
1499
  source = "registry+https://github.com/rust-lang/crates.io-index"
1493
- checksum = "b1e4c7e8ceaaf9cb7d7507c974735728ab453b67ef8f18febdd7c11fe59dca8b"
1500
+ checksum = "d5fe6031c4041849d7c496a8ded650796e7b6ecc19df1a431c1a363342e5dc91"
1494
1501
  dependencies = [
1502
+ "windows-link",
1495
1503
  "windows_aarch64_gnullvm 0.53.0",
1496
1504
  "windows_aarch64_msvc 0.53.0",
1497
1505
  "windows_i686_gnu 0.53.0",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "cedar_policy"
3
- version = "0.6.0"
3
+ version = "0.6.2"
4
4
  edition = "2021"
5
5
  authors = ["Aotokitsuruya <contact@aotoki.me>"]
6
6
  license = "Apache-2.0"
@@ -10,6 +10,6 @@ publish = false
10
10
  crate-type = ["cdylib"]
11
11
 
12
12
  [dependencies]
13
- cedar-policy = "4.4.1"
13
+ cedar-policy = "4.5.1"
14
14
  magnus = "0.7.1"
15
15
  serde_magnus = "0.9.0"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CedarPolicy
4
- VERSION = "0.6.0"
4
+ VERSION = "0.6.2"
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.6.2
5
5
  platform: ruby
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: 2025-08-26 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Ruby bindings for Cedar policy evaluation engine.
14
14
  email: