cedar_policy 0.6.1 → 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: a8dbc4bacb220bb4c03873095c8429e735d6df3df88056b98193f8acaafd1e07
4
- data.tar.gz: f5f0de9e469de2d455840511b55ece64f999b47a2127c61ad9925e76eff5f654
3
+ metadata.gz: 38c040a8b2a66186277adb6e3424840bc3e410444ddde470fad7f1e04a42ce61
4
+ data.tar.gz: f4ee38c4f1de27d91353b4d9d9e80a85a5204f1eaa7450f67f94a417e67baf14
5
5
  SHA512:
6
- metadata.gz: 310f8639bc61e04b916a39962f668fdaac602514eec91c38c7b9ff6771173f4640427f70663e1e1bdd094e1482a55972ff1cbb0954fb88fb7bd5eb5cdc441b9e
7
- data.tar.gz: 0dd94866133e2b540051dc7d0acc367e3438f5fafb1d5d92e2653093ebb2f19c7765d6b6b9ebaa3d521771c68664332ec7d2e4d88a0d8057b511bc4e34edca81
6
+ metadata.gz: b56d9cbd59da63236216dba57f539a27b9480b01aa18526463eac8d0f7299af38a1c8f52af4c2bc5c1821293cefb9a9d17c1cc62eb570e197add92f03f38dfce
7
+ data.tar.gz: 6dac00819069fe90bd6dece4be28c489cd4fd9efe23ab827c59a37228f606e9ba8ffbf8b66766139a0e2cb5e6e09a2edd371dca73c9f321f4aef244311a0b4ac
@@ -1 +1 @@
1
- {".":"0.6.1"}
1
+ {".":"0.6.2"}
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
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
+
3
17
  ## [0.6.1](https://github.com/elct9620/cedar-policy-rb/compare/v0.6.0...v0.6.1) (2025-08-26)
4
18
 
5
19
 
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,15 +120,15 @@ 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
  ]
@@ -200,7 +200,7 @@ dependencies = [
200
200
 
201
201
  [[package]]
202
202
  name = "cedar_policy"
203
- version = "0.6.1"
203
+ version = "0.6.2"
204
204
  dependencies = [
205
205
  "cedar-policy",
206
206
  "magnus",
@@ -218,9 +218,9 @@ dependencies = [
218
218
 
219
219
  [[package]]
220
220
  name = "cfg-if"
221
- version = "1.0.1"
221
+ version = "1.0.3"
222
222
  source = "registry+https://github.com/rust-lang/crates.io-index"
223
- checksum = "9555578bc9e57714c812a1f84e4fc5b4d21fcb063490c624de019f7464c91268"
223
+ checksum = "2fd1289c04a9ea8cb22300a459a72a385d7c73d3259e2ed7dcb2af674838cfa9"
224
224
 
225
225
  [[package]]
226
226
  name = "cfg_aliases"
@@ -334,9 +334,9 @@ dependencies = [
334
334
 
335
335
  [[package]]
336
336
  name = "dyn-clone"
337
- version = "1.0.19"
337
+ version = "1.0.20"
338
338
  source = "registry+https://github.com/rust-lang/crates.io-index"
339
- checksum = "1c7a8fb8a9fbf66c1f703fe16184d10ca0ee9d23be5b4436400408ba54a95005"
339
+ checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555"
340
340
 
341
341
  [[package]]
342
342
  name = "educe"
@@ -415,9 +415,9 @@ dependencies = [
415
415
 
416
416
  [[package]]
417
417
  name = "glob"
418
- version = "0.3.2"
418
+ version = "0.3.3"
419
419
  source = "registry+https://github.com/rust-lang/crates.io-index"
420
- checksum = "a8d1add55171497b4705a648c6b583acafb01d58050a51727785f0b2c8e0a2b2"
420
+ checksum = "0cc23270f6e1808e30a928bdc84dea0b9b4136a8bc82338574f23baf47bbd280"
421
421
 
422
422
  [[package]]
423
423
  name = "hashbrown"
@@ -427,9 +427,9 @@ checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888"
427
427
 
428
428
  [[package]]
429
429
  name = "hashbrown"
430
- version = "0.15.4"
430
+ version = "0.15.5"
431
431
  source = "registry+https://github.com/rust-lang/crates.io-index"
432
- checksum = "5971ac85611da7067dbfcabef3c70ebb5606018acd9e2a3903a0da507521e0d5"
432
+ checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1"
433
433
 
434
434
  [[package]]
435
435
  name = "hex"
@@ -437,15 +437,6 @@ version = "0.4.3"
437
437
  source = "registry+https://github.com/rust-lang/crates.io-index"
438
438
  checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
439
439
 
440
- [[package]]
441
- name = "home"
442
- version = "0.5.11"
443
- source = "registry+https://github.com/rust-lang/crates.io-index"
444
- checksum = "589533453244b0995c858700322199b2becb13b627df2851f64a2775d024abcf"
445
- dependencies = [
446
- "windows-sys",
447
- ]
448
-
449
440
  [[package]]
450
441
  name = "iana-time-zone"
451
442
  version = "0.1.63"
@@ -489,12 +480,12 @@ dependencies = [
489
480
 
490
481
  [[package]]
491
482
  name = "indexmap"
492
- version = "2.9.0"
483
+ version = "2.11.0"
493
484
  source = "registry+https://github.com/rust-lang/crates.io-index"
494
- checksum = "cea70ddb795996207ad57735b50c5982d8844f38ba9ee5f1aedcfb708a2aa11e"
485
+ checksum = "f2481980430f9f78649238835720ddccc57e52df14ffce1c6f37391d61b563e9"
495
486
  dependencies = [
496
487
  "equivalent",
497
- "hashbrown 0.15.4",
488
+ "hashbrown 0.15.5",
498
489
  "serde",
499
490
  ]
500
491
 
@@ -587,9 +578,9 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
587
578
 
588
579
  [[package]]
589
580
  name = "libc"
590
- version = "0.2.172"
581
+ version = "0.2.175"
591
582
  source = "registry+https://github.com/rust-lang/crates.io-index"
592
- checksum = "d750af042f7ef4f724306de029d18836c26c1765a54a6a3f094cbd23a7267ffa"
583
+ checksum = "6a82ae493e598baaea5209805c49bbf2ea7de956d50d7da0da1164f9c6d28543"
593
584
 
594
585
  [[package]]
595
586
  name = "libloading"
@@ -598,7 +589,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
598
589
  checksum = "07033963ba89ebaf1584d767badaa2e8fcec21aedea6b8c0346d487d49c28667"
599
590
  dependencies = [
600
591
  "cfg-if",
601
- "windows-targets 0.53.0",
592
+ "windows-targets 0.53.3",
602
593
  ]
603
594
 
604
595
  [[package]]
@@ -619,18 +610,18 @@ checksum = "13dc2df351e3202783a1fe0d44375f7295ffb4049267b0f3018346dc122a1d94"
619
610
 
620
611
  [[package]]
621
612
  name = "logos"
622
- version = "0.15.0"
613
+ version = "0.15.1"
623
614
  source = "registry+https://github.com/rust-lang/crates.io-index"
624
- checksum = "ab6f536c1af4c7cc81edf73da1f8029896e7e1e16a219ef09b184e76a296f3db"
615
+ checksum = "ff472f899b4ec2d99161c51f60ff7075eeb3097069a36050d8037a6325eb8154"
625
616
  dependencies = [
626
617
  "logos-derive",
627
618
  ]
628
619
 
629
620
  [[package]]
630
621
  name = "logos-codegen"
631
- version = "0.15.0"
622
+ version = "0.15.1"
632
623
  source = "registry+https://github.com/rust-lang/crates.io-index"
633
- checksum = "189bbfd0b61330abea797e5e9276408f2edbe4f822d7ad08685d67419aafb34e"
624
+ checksum = "192a3a2b90b0c05b27a0b2c43eecdb7c415e29243acc3f89cc8247a5b693045c"
634
625
  dependencies = [
635
626
  "beef",
636
627
  "fnv",
@@ -644,9 +635,9 @@ dependencies = [
644
635
 
645
636
  [[package]]
646
637
  name = "logos-derive"
647
- version = "0.15.0"
638
+ version = "0.15.1"
648
639
  source = "registry+https://github.com/rust-lang/crates.io-index"
649
- checksum = "ebfe8e1a19049ddbfccbd14ac834b215e11b85b90bab0c2dba7c7b92fb5d5cba"
640
+ checksum = "605d9697bcd5ef3a42d38efc51541aa3d6a4a25f7ab6d1ed0da5ac632a26b470"
650
641
  dependencies = [
651
642
  "logos-codegen",
652
643
  ]
@@ -676,9 +667,9 @@ dependencies = [
676
667
 
677
668
  [[package]]
678
669
  name = "memchr"
679
- version = "2.7.4"
670
+ version = "2.7.5"
680
671
  source = "registry+https://github.com/rust-lang/crates.io-index"
681
- checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"
672
+ checksum = "32a282da65faaf38286cf3be983213fcf1d2e2a58700e808f83f4ea9a4804bc0"
682
673
 
683
674
  [[package]]
684
675
  name = "miette"
@@ -785,7 +776,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
785
776
  checksum = "3672b37090dbd86368a4145bc067582552b29c27377cad4e0a306c97f9bd7772"
786
777
  dependencies = [
787
778
  "fixedbitset",
788
- "indexmap 2.9.0",
779
+ "indexmap 2.11.0",
789
780
  ]
790
781
 
791
782
  [[package]]
@@ -828,9 +819,9 @@ dependencies = [
828
819
 
829
820
  [[package]]
830
821
  name = "proc-macro2"
831
- version = "1.0.95"
822
+ version = "1.0.101"
832
823
  source = "registry+https://github.com/rust-lang/crates.io-index"
833
- checksum = "02b3e5e68a3a1a02aad3ec490a98007cbc13c37cbe84a3cd7b8e406d76e7f778"
824
+ checksum = "89ae43fd86e4158d6db51ad8e2b80f313af9cc74f5c0e03ccb87de09998732de"
834
825
  dependencies = [
835
826
  "unicode-ident",
836
827
  ]
@@ -855,18 +846,18 @@ dependencies = [
855
846
 
856
847
  [[package]]
857
848
  name = "rb-sys"
858
- version = "0.9.116"
849
+ version = "0.9.117"
859
850
  source = "registry+https://github.com/rust-lang/crates.io-index"
860
- checksum = "7059846f68396df83155779c75336ca24567741cb95256e6308c9fcc370e8dad"
851
+ checksum = "f900d1ce4629a2ebffaf5de74bd8f9c1188d4c5ed406df02f97e22f77a006f44"
861
852
  dependencies = [
862
853
  "rb-sys-build",
863
854
  ]
864
855
 
865
856
  [[package]]
866
857
  name = "rb-sys-build"
867
- version = "0.9.116"
858
+ version = "0.9.117"
868
859
  source = "registry+https://github.com/rust-lang/crates.io-index"
869
- checksum = "ac217510df41b9ffc041573e68d7a02aaff770c49943c7494441c4b224b0ecd0"
860
+ checksum = "ef1e9c857028f631056bcd6d88cec390c751e343ce2223ddb26d23eb4a151d59"
870
861
  dependencies = [
871
862
  "bindgen",
872
863
  "lazy_static",
@@ -885,9 +876,9 @@ checksum = "a35802679f07360454b418a5d1735c89716bde01d35b1560fc953c1415a0b3bb"
885
876
 
886
877
  [[package]]
887
878
  name = "redox_syscall"
888
- version = "0.5.12"
879
+ version = "0.5.17"
889
880
  source = "registry+https://github.com/rust-lang/crates.io-index"
890
- checksum = "928fca9cf2aa042393a8325b9ead81d2f0df4cb12e1e24cef072922ccd99c5af"
881
+ checksum = "5407465600fb0548f1442edf71dd20683c6ed326200ace4b1ef0763521bb3b77"
891
882
  dependencies = [
892
883
  "bitflags",
893
884
  ]
@@ -914,9 +905,9 @@ dependencies = [
914
905
 
915
906
  [[package]]
916
907
  name = "regex"
917
- version = "1.11.1"
908
+ version = "1.11.2"
918
909
  source = "registry+https://github.com/rust-lang/crates.io-index"
919
- checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191"
910
+ checksum = "23d7fd106d8c02486a8d64e778353d1cffe08ce79ac2e82f540c86d0facf6912"
920
911
  dependencies = [
921
912
  "aho-corasick",
922
913
  "memchr",
@@ -926,9 +917,9 @@ dependencies = [
926
917
 
927
918
  [[package]]
928
919
  name = "regex-automata"
929
- version = "0.4.9"
920
+ version = "0.4.10"
930
921
  source = "registry+https://github.com/rust-lang/crates.io-index"
931
- checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908"
922
+ checksum = "6b9458fa0bfeeac22b5ca447c63aaf45f28439a709ccd244698632f9aa6394d6"
932
923
  dependencies = [
933
924
  "aho-corasick",
934
925
  "memchr",
@@ -937,9 +928,9 @@ dependencies = [
937
928
 
938
929
  [[package]]
939
930
  name = "regex-syntax"
940
- version = "0.8.5"
931
+ version = "0.8.6"
941
932
  source = "registry+https://github.com/rust-lang/crates.io-index"
942
- checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c"
933
+ checksum = "caf4aa5b0f434c91fe5c7f1ecb6a5ece2130b02ad2a590589dda5146df959001"
943
934
 
944
935
  [[package]]
945
936
  name = "rustc-hash"
@@ -967,9 +958,9 @@ dependencies = [
967
958
 
968
959
  [[package]]
969
960
  name = "rustversion"
970
- version = "1.0.21"
961
+ version = "1.0.22"
971
962
  source = "registry+https://github.com/rust-lang/crates.io-index"
972
- checksum = "8a0d197bd2c9dc6e53b84da9556a69ba4cdfab8619eb41a8bd1cc2027a0f6b1d"
963
+ checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
973
964
 
974
965
  [[package]]
975
966
  name = "ryu"
@@ -1000,9 +991,9 @@ dependencies = [
1000
991
 
1001
992
  [[package]]
1002
993
  name = "schemars"
1003
- version = "1.0.3"
994
+ version = "1.0.4"
1004
995
  source = "registry+https://github.com/rust-lang/crates.io-index"
1005
- checksum = "1375ba8ef45a6f15d83fa8748f1079428295d403d6ea991d09ab100155fbc06d"
996
+ checksum = "82d20c4491bc164fa2f6c5d44565947a52ad80b9505d8e36f8d54c27c739fcd0"
1006
997
  dependencies = [
1007
998
  "dyn-clone",
1008
999
  "ref-cast",
@@ -1050,11 +1041,11 @@ dependencies = [
1050
1041
 
1051
1042
  [[package]]
1052
1043
  name = "serde_json"
1053
- version = "1.0.140"
1044
+ version = "1.0.143"
1054
1045
  source = "registry+https://github.com/rust-lang/crates.io-index"
1055
- checksum = "20068b6e96dc6c9bd23e01df8827e6c7e1f2fddd43c21810382803c136b99373"
1046
+ checksum = "d401abef1d108fbd9cbaebc3e46611f4b1021f714a0597a71f41ee463f5f4a5a"
1056
1047
  dependencies = [
1057
- "indexmap 2.9.0",
1048
+ "indexmap 2.11.0",
1058
1049
  "itoa",
1059
1050
  "memchr",
1060
1051
  "ryu",
@@ -1082,9 +1073,9 @@ dependencies = [
1082
1073
  "chrono",
1083
1074
  "hex",
1084
1075
  "indexmap 1.9.3",
1085
- "indexmap 2.9.0",
1076
+ "indexmap 2.11.0",
1086
1077
  "schemars 0.9.0",
1087
- "schemars 1.0.3",
1078
+ "schemars 1.0.4",
1088
1079
  "serde",
1089
1080
  "serde_derive",
1090
1081
  "serde_json",
@@ -1158,7 +1149,7 @@ dependencies = [
1158
1149
  "cfg-if",
1159
1150
  "libc",
1160
1151
  "psm",
1161
- "windows-sys",
1152
+ "windows-sys 0.59.0",
1162
1153
  ]
1163
1154
 
1164
1155
  [[package]]
@@ -1181,9 +1172,9 @@ checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
1181
1172
 
1182
1173
  [[package]]
1183
1174
  name = "syn"
1184
- version = "2.0.102"
1175
+ version = "2.0.106"
1185
1176
  source = "registry+https://github.com/rust-lang/crates.io-index"
1186
- checksum = "f6397daf94fa90f058bd0fd88429dd9e5738999cca8d701813c80723add80462"
1177
+ checksum = "ede7c438028d4436d71104916910f5bb611972c5cfd7f89b8300a8186e6fada6"
1187
1178
  dependencies = [
1188
1179
  "proc-macro2",
1189
1180
  "quote",
@@ -1198,28 +1189,27 @@ checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369"
1198
1189
 
1199
1190
  [[package]]
1200
1191
  name = "term"
1201
- version = "1.0.2"
1192
+ version = "1.1.0"
1202
1193
  source = "registry+https://github.com/rust-lang/crates.io-index"
1203
- checksum = "8a984c8d058c627faaf5e8e2ed493fa3c51771889196de1016cf9c1c6e90d750"
1194
+ checksum = "a43bddab41f8626c7bdaab872bbba75f8df5847b516d77c569c746e2ae5eb746"
1204
1195
  dependencies = [
1205
- "home",
1206
- "windows-sys",
1196
+ "windows-sys 0.60.2",
1207
1197
  ]
1208
1198
 
1209
1199
  [[package]]
1210
1200
  name = "thiserror"
1211
- version = "2.0.12"
1201
+ version = "2.0.16"
1212
1202
  source = "registry+https://github.com/rust-lang/crates.io-index"
1213
- checksum = "567b8a2dae586314f7be2a752ec7474332959c6460e02bde30d702a66d488708"
1203
+ checksum = "3467d614147380f2e4e374161426ff399c91084acd2363eaf549172b3d5e60c0"
1214
1204
  dependencies = [
1215
1205
  "thiserror-impl",
1216
1206
  ]
1217
1207
 
1218
1208
  [[package]]
1219
1209
  name = "thiserror-impl"
1220
- version = "2.0.12"
1210
+ version = "2.0.16"
1221
1211
  source = "registry+https://github.com/rust-lang/crates.io-index"
1222
- checksum = "7f7cf42b4507d8ea322120659672cf1b9dbb93f8f2d4ecfd6e51350ff5b17a1d"
1212
+ checksum = "6c5e1be1c48b9172ee610da68fd9cd2770e7a4056cb3fc98710ee6906f0c7960"
1223
1213
  dependencies = [
1224
1214
  "proc-macro2",
1225
1215
  "quote",
@@ -1259,9 +1249,9 @@ dependencies = [
1259
1249
 
1260
1250
  [[package]]
1261
1251
  name = "tinyvec"
1262
- version = "1.9.0"
1252
+ version = "1.10.0"
1263
1253
  source = "registry+https://github.com/rust-lang/crates.io-index"
1264
- checksum = "09b3661f17e86524eccd4371ab0429194e0d7c008abb45f7a7495b1719463c71"
1254
+ checksum = "bfa5fdc3bce6191a1dbc8c02d5c8bffcf557bafa17c124c5264a458f1b0613fa"
1265
1255
  dependencies = [
1266
1256
  "tinyvec_macros",
1267
1257
  ]
@@ -1403,11 +1393,11 @@ dependencies = [
1403
1393
 
1404
1394
  [[package]]
1405
1395
  name = "winapi-util"
1406
- version = "0.1.9"
1396
+ version = "0.1.10"
1407
1397
  source = "registry+https://github.com/rust-lang/crates.io-index"
1408
- checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb"
1398
+ checksum = "0978bf7171b3d90bac376700cb56d606feb40f251a475a5d6634613564460b22"
1409
1399
  dependencies = [
1410
- "windows-sys",
1400
+ "windows-sys 0.60.2",
1411
1401
  ]
1412
1402
 
1413
1403
  [[package]]
@@ -1447,9 +1437,9 @@ dependencies = [
1447
1437
 
1448
1438
  [[package]]
1449
1439
  name = "windows-link"
1450
- version = "0.1.1"
1440
+ version = "0.1.3"
1451
1441
  source = "registry+https://github.com/rust-lang/crates.io-index"
1452
- checksum = "76840935b766e1b0a05c0066835fb9ec80071d4c09a16f6bd5f7e655e3c14c38"
1442
+ checksum = "5e6ad25900d524eaabdbbb96d20b4311e1e7ae1699af4fb28c17ae66c80d798a"
1453
1443
 
1454
1444
  [[package]]
1455
1445
  name = "windows-result"
@@ -1478,6 +1468,15 @@ dependencies = [
1478
1468
  "windows-targets 0.52.6",
1479
1469
  ]
1480
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
+
1481
1480
  [[package]]
1482
1481
  name = "windows-targets"
1483
1482
  version = "0.52.6"
@@ -1496,10 +1495,11 @@ dependencies = [
1496
1495
 
1497
1496
  [[package]]
1498
1497
  name = "windows-targets"
1499
- version = "0.53.0"
1498
+ version = "0.53.3"
1500
1499
  source = "registry+https://github.com/rust-lang/crates.io-index"
1501
- checksum = "b1e4c7e8ceaaf9cb7d7507c974735728ab453b67ef8f18febdd7c11fe59dca8b"
1500
+ checksum = "d5fe6031c4041849d7c496a8ded650796e7b6ecc19df1a431c1a363342e5dc91"
1502
1501
  dependencies = [
1502
+ "windows-link",
1503
1503
  "windows_aarch64_gnullvm 0.53.0",
1504
1504
  "windows_aarch64_msvc 0.53.0",
1505
1505
  "windows_i686_gnu 0.53.0",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "cedar_policy"
3
- version = "0.6.1"
3
+ version = "0.6.2"
4
4
  edition = "2021"
5
5
  authors = ["Aotokitsuruya <contact@aotoki.me>"]
6
6
  license = "Apache-2.0"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CedarPolicy
4
- VERSION = "0.6.1"
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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cedar_policy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aotokitsuruya