chrono_machines 0.0.0 → 0.5.0

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.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +79 -0
  3. data/LICENSE.txt +21 -0
  4. data/README.md +618 -0
  5. data/ext/chrono_machines_native/core/Cargo.toml +28 -0
  6. data/ext/chrono_machines_native/core/src/backoff.rs +516 -0
  7. data/ext/chrono_machines_native/core/src/dsl.rs +108 -0
  8. data/ext/chrono_machines_native/core/src/lib.rs +355 -0
  9. data/ext/chrono_machines_native/core/src/policy.rs +189 -0
  10. data/ext/chrono_machines_native/core/src/retry.rs +1511 -0
  11. data/ext/chrono_machines_native/core/src/sleep.rs +97 -0
  12. data/ext/chrono_machines_native/extconf.rb +3 -0
  13. data/ext/chrono_machines_native/ffi/Cargo.toml +23 -0
  14. data/ext/chrono_machines_native/ffi/extconf.rb +62 -0
  15. data/ext/chrono_machines_native/ffi/src/lib.rs +192 -0
  16. data/ext/chrono_machines_native/target/debug/build/clang-sys-414c893ed9493fe4/out/common.rs +355 -0
  17. data/ext/chrono_machines_native/target/debug/build/clang-sys-414c893ed9493fe4/out/dynamic.rs +276 -0
  18. data/ext/chrono_machines_native/target/debug/build/clang-sys-414c893ed9493fe4/out/macros.rs +49 -0
  19. data/ext/chrono_machines_native/target/debug/build/clang-sys-b1d0ba329a011cdd/out/common.rs +355 -0
  20. data/ext/chrono_machines_native/target/debug/build/clang-sys-b1d0ba329a011cdd/out/dynamic.rs +276 -0
  21. data/ext/chrono_machines_native/target/debug/build/clang-sys-b1d0ba329a011cdd/out/macros.rs +49 -0
  22. data/ext/chrono_machines_native/target/debug/build/rb-sys-7d416123f8551038/out/bindings-0.9.124-mri-arm64-darwin23-4.0.3.rs +9057 -0
  23. data/ext/chrono_machines_native/target/debug/build/rb-sys-848783778984ec5d/out/bindings-0.9.124-mri-arm64-darwin23-3.4.8.rs +8933 -0
  24. data/ext/chrono_machines_native/target/debug/build/rb-sys-ce17442a66050c01/out/bindings-0.9.128-mri-arm64-darwin23-3.4.8.rs +8933 -0
  25. data/ext/chrono_machines_native/target/package/chrono-machines-0.3.2/Cargo.toml +76 -0
  26. data/ext/chrono_machines_native/target/package/chrono-machines-0.3.2/src/backoff.rs +497 -0
  27. data/ext/chrono_machines_native/target/package/chrono-machines-0.3.2/src/dsl.rs +108 -0
  28. data/ext/chrono_machines_native/target/package/chrono-machines-0.3.2/src/lib.rs +352 -0
  29. data/ext/chrono_machines_native/target/package/chrono-machines-0.3.2/src/policy.rs +189 -0
  30. data/ext/chrono_machines_native/target/package/chrono-machines-0.3.2/src/retry.rs +1489 -0
  31. data/ext/chrono_machines_native/target/package/chrono-machines-0.3.2/src/sleep.rs +97 -0
  32. data/ext/chrono_machines_native/target/package/chrono_machines_native-0.2.3/Cargo.toml +56 -0
  33. data/ext/chrono_machines_native/target/package/chrono_machines_native-0.2.3/src/lib.rs +192 -0
  34. data/lib/chrono_machines/async_support.rb +38 -0
  35. data/lib/chrono_machines/configuration.rb +48 -0
  36. data/lib/chrono_machines/dsl.rb +21 -0
  37. data/lib/chrono_machines/errors.rb +15 -0
  38. data/lib/chrono_machines/executor.rb +157 -0
  39. data/lib/chrono_machines/native_speedup.rb +61 -0
  40. data/lib/chrono_machines/test_helper.rb +22 -0
  41. data/lib/chrono_machines/version.rb +1 -1
  42. data/lib/chrono_machines.rb +31 -3
  43. data/sig/chrono_machines.rbs +4 -0
  44. metadata +71 -10
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 474f154ed5894dbea202693d26b61a75e4df4bdb1dbbfc0ef1823536a2f477dc
4
- data.tar.gz: 1c29822882e486842767c41e91d9c3dcdcbce464e7b75fe8ccf5bf0a224a7674
3
+ metadata.gz: 3186aa3d77c3687efa8dcf51f9612c15997f9f5bdd51cf801a87d0a7ea7d28e6
4
+ data.tar.gz: ec4ea0d3b9c8c27828317617ca89e6404587958ba55105e44c57ecdb599d69f6
5
5
  SHA512:
6
- metadata.gz: d7efe36430add656b675ead11255f00ac25e332deeb3b965521f74838c72585b2d0aa22cfe22dd23e83ca02a43a793f205480a89b1efcebce043e4b7c6ac0a03
7
- data.tar.gz: 9d8e72a5da90ccb7dac0c933440a23d19ca7b7c1e68f789c8de3103fd8b6358ee5d288b9b372b660658c08d8e1dc032d72724eb77ed37e0bcb2f17b8a0889cc3
6
+ metadata.gz: f7e5f45ab6660cde57d0f6e101ffb0be54c64ad22a73b7ca39c1a13b74f854e9583355e41934b453211a435b0cf7dd716afbaf747c7e20458340f69eb6d76d51
7
+ data.tar.gz: 1fc648e0d7fe4252ecf94482981bfd278612707cc9efba0c2f13a5b6166b3cc49f1ab02732dde83ddf2292fc42f8d6cefb8d2850fc30a4b72d4d523df87e9f22
data/CHANGELOG.md ADDED
@@ -0,0 +1,79 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.5.0](https://github.com/seuros/chrono_machines/compare/chrono_machines/v0.4.4...chrono_machines/v0.5.0) (2026-06-24)
4
+
5
+
6
+ ### Features
7
+
8
+ * **native:** make core crate no_std capable ([#15](https://github.com/seuros/chrono_machines/issues/15)) ([76129a3](https://github.com/seuros/chrono_machines/commit/76129a31ad75142641e4a29a82424ad26fb9ecd6))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **native:** use workspace dependency for chrono-machines in ffi ([fdeca2f](https://github.com/seuros/chrono_machines/commit/fdeca2f938e2647107793cfcf4c5c7c77e62e09b))
14
+
15
+ ## [0.4.4](https://github.com/seuros/chrono_machines/compare/chrono_machines/v0.4.3...chrono_machines/v0.4.4) (2026-06-16)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * Upgrade setup-java action to version 5 ([f6dcecc](https://github.com/seuros/chrono_machines/commit/f6dcecc233d4d4f74bacad8bfe893eff981a4737))
21
+
22
+ ## [0.4.3](https://github.com/seuros/chrono_machines/compare/chrono_machines/v0.4.2...chrono_machines/v0.4.3) (2026-06-15)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * **native:** deduplicate backoff jitter, fibonacci, and retry-failure logic ([46f861a](https://github.com/seuros/chrono_machines/commit/46f861acc7e29024fc35dafb39aaec22db33440d))
28
+
29
+ ## [0.4.2](https://github.com/seuros/chrono_machines/compare/chrono_machines/v0.4.1...chrono_machines/v0.4.2) (2026-05-25)
30
+
31
+
32
+ ### Bug Fixes
33
+
34
+ * remove unused Magnus embed feature ([3b0877a](https://github.com/seuros/chrono_machines/commit/3b0877a11f768a135c877980320cae53fa58cd3d))
35
+
36
+ ## [0.4.1](https://github.com/seuros/chrono_machines/compare/chrono_machines/v0.4.0...chrono_machines/v0.4.1) (2026-03-19)
37
+
38
+
39
+ ### Bug Fixes
40
+
41
+ * **native:** upgrade rand to 0.10 ([#10](https://github.com/seuros/chrono_machines/issues/10)) ([d7e2738](https://github.com/seuros/chrono_machines/commit/d7e2738552a98e4f528055f671cfdfbdb02b0c7a))
42
+
43
+ ## [0.4.0](https://github.com/seuros/chrono_machines/compare/chrono_machines/v0.3.0...chrono_machines/v0.4.0) (2025-12-19)
44
+
45
+
46
+ ### Features
47
+
48
+ * add async support, error classification ([#6](https://github.com/seuros/chrono_machines/issues/6)) ([3d6d2c6](https://github.com/seuros/chrono_machines/commit/3d6d2c6e06de58247c74cdcef94e78a099b11e31))
49
+ * add constant and fibonacci backoff strategies with native acceleration ([582ba9c](https://github.com/seuros/chrono_machines/commit/582ba9ccd84072ec4ccf5d3340eced27cc4d1925))
50
+
51
+
52
+ ### Bug Fixes
53
+
54
+ * add Ruby 4.0.0-preview3 to test matrix ([#9](https://github.com/seuros/chrono_machines/issues/9)) ([df8a3a2](https://github.com/seuros/chrono_machines/commit/df8a3a23acf5ea37b115ab7d05936331b4ae2018))
55
+
56
+ ## [0.3.0](https://github.com/seuros/chrono_machines/compare/chrono_machines/v0.2.0...chrono_machines/v0.3.0) (2025-10-14)
57
+
58
+
59
+ ### Features
60
+
61
+ * add COSS (Contribution Open Source Standard) metadata ([de5b64a](https://github.com/seuros/chrono_machines/commit/de5b64af5c443d8987909199a69030fa332fa323))
62
+ * add GitHub Packages native compilation workflow ([0d7e950](https://github.com/seuros/chrono_machines/commit/0d7e9502d13a8de6b47756c27d682339435fe663))
63
+ * Add Rust native speedup with fluent retry DSL ([#4](https://github.com/seuros/chrono_machines/issues/4)) ([ac980bf](https://github.com/seuros/chrono_machines/commit/ac980bfda450b4e63739e4dc3c19513dd989e819))
64
+
65
+
66
+ ### Bug Fixes
67
+
68
+ * CI compilation using extconf.rb instead of rb_sys task ([bd844a5](https://github.com/seuros/chrono_machines/commit/bd844a594f25745edb407695ef36f7e214a29347))
69
+
70
+ ## [0.2.0](https://github.com/seuros/chrono_machines/compare/chrono_machines-v0.1.0...chrono_machines/v0.2.0) (2025-07-20)
71
+
72
+
73
+ ### Features
74
+
75
+ * migrate to Zeitwerk autoloading and improve Ruby compatibility ([#1](https://github.com/seuros/chrono_machines/issues/1)) ([162a1cb](https://github.com/seuros/chrono_machines/commit/162a1cb6ad81c3c59778dcd325cebdfe637c22cb))
76
+
77
+ ## [0.1.0] - 2025-07-12
78
+
79
+ - Initial release
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2025 Abdelkader Boudih
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.