breaker_machines 0.28.0-aarch64-linux → 0.30.1-aarch64-linux

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: ec1b051cf1915badb4133b41975607f7fadead0d21f938c35df6511ca1ccb4dd
4
- data.tar.gz: 8ba1c9af957b4da4e6e0f46459bb11560b76c4dc479bf0dea41a46ca1ba38bbd
3
+ metadata.gz: febfb34b6e2f3bae7536d954a29e691580fefeeb91cdf468c57734584252ab22
4
+ data.tar.gz: fedb0272607bf6cfa4105a16d0e4540466d32166e53824ba432c264ad1918d07
5
5
  SHA512:
6
- metadata.gz: 371b8550dead028c9ec4d0d2849add6ac2f81cb7fc665e71d24e1f29f5deb42ad0bfdd70aa572a0d7129d6c68285d63646a57326ad6aaf4d69ce005a8f8fcea9
7
- data.tar.gz: c6b4ab065adffad03f83d1afd562a7aa2319b5038569d323c562a9c96ae5ff01b2d8b0122671c9926fc0611c6f7600c3e482b58ab8a524da2f0d03db4fcb67e6
6
+ metadata.gz: 272e91af9770c52bef7628a3fe7e0564fa8fb9d685d9613ff88d80d2ebc516021712474c17c301deb52ca6e2c9350626cf0a212bb93ffef2bde155e3a7603dbb
7
+ data.tar.gz: c3c82d200efebb4580c77b87df3fe8c42db4768c314c29360e023849013244518d0a779a24400b03f9426b6b986f107ef3c7a2973ebc147c35e72eb0d6f0ce00
data/CHANGELOG.md CHANGED
@@ -6,6 +6,34 @@
6
6
 
7
7
  * Restore shared circuit state after state machine initialization.
8
8
 
9
+ ## [0.30.1](https://github.com/seuros/breaker_machines/compare/breaker_machines/v0.30.0...breaker_machines/v0.30.1) (2026-11-23)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * sample breaker clocks outside the circuit lock ([9f7ec88](https://github.com/seuros/breaker_machines/commit/9f7ec88da8e28e8a372e4b078c27631631b7c9d1))
15
+
16
+ ## [0.30.0](https://github.com/seuros/breaker_machines/compare/breaker_machines/v0.29.0...breaker_machines/v0.30.0) (2026-11-17)
17
+
18
+
19
+ ### Features
20
+
21
+ * const Recovery::new ([c81f98f](https://github.com/seuros/breaker_machines/commit/c81f98fe44626edbdab9861617f3fa392b66eb43))
22
+
23
+ ## [0.29.0](https://github.com/seuros/breaker_machines/compare/breaker_machines/v0.28.1...breaker_machines/v0.29.0) (2026-11-17)
24
+
25
+
26
+ ### Features
27
+
28
+ * const Threshold::new ([a6cbc64](https://github.com/seuros/breaker_machines/commit/a6cbc64ed42cd5c51b7f617184fffa5f0ff37e05))
29
+
30
+ ## [0.28.1](https://github.com/seuros/breaker_machines/compare/breaker_machines/v0.28.0...breaker_machines/v0.28.1) (2026-11-16)
31
+
32
+
33
+ ### Bug Fixes
34
+
35
+ * give StorageError a kind so store exhaustion refuses as Refusal::Exhausted ([1c83941](https://github.com/seuros/breaker_machines/commit/1c839417f7c2c864835b4a817130224111826f7d))
36
+
9
37
  ## [0.28.0](https://github.com/seuros/breaker_machines/compare/breaker_machines/v0.27.0...breaker_machines/v0.28.0) (2026-11-16)
10
38
 
11
39
 
@@ -5,6 +5,34 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.27.1](https://github.com/seuros/breaker_machines/compare/breaker-machines-v0.27.0...breaker-machines-v0.27.1) (2026-11-23)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * sample breaker clocks outside the circuit lock ([9f7ec88](https://github.com/seuros/breaker_machines/commit/9f7ec88da8e28e8a372e4b078c27631631b7c9d1))
14
+
15
+ ## [0.27.0](https://github.com/seuros/breaker_machines/compare/breaker-machines-v0.26.0...breaker-machines-v0.27.0) (2026-11-17)
16
+
17
+
18
+ ### Features
19
+
20
+ * const Recovery::new ([c81f98f](https://github.com/seuros/breaker_machines/commit/c81f98fe44626edbdab9861617f3fa392b66eb43))
21
+
22
+ ## [0.26.0](https://github.com/seuros/breaker_machines/compare/breaker-machines-v0.25.1...breaker-machines-v0.26.0) (2026-11-17)
23
+
24
+
25
+ ### Features
26
+
27
+ * const Threshold::new ([a6cbc64](https://github.com/seuros/breaker_machines/commit/a6cbc64ed42cd5c51b7f617184fffa5f0ff37e05))
28
+
29
+ ## [0.25.1](https://github.com/seuros/breaker_machines/compare/breaker-machines-v0.25.0...breaker-machines-v0.25.1) (2026-11-16)
30
+
31
+
32
+ ### Bug Fixes
33
+
34
+ * give StorageError a kind so store exhaustion refuses as Refusal::Exhausted ([1c83941](https://github.com/seuros/breaker_machines/commit/1c839417f7c2c864835b4a817130224111826f7d))
35
+
8
36
  ## [0.25.0](https://github.com/seuros/breaker_machines/compare/breaker-machines-v0.24.0...breaker-machines-v0.25.0) (2026-11-16)
9
37
 
10
38
 
@@ -63,7 +63,11 @@ Identities never wrap. Every transition takes the next `u64` epoch, which
63
63
  fences the tickets admitted before it; once the last is taken, a call that
64
64
  would transition is `Refusal::Exhausted` with nothing changed, while calls
65
65
  that would not are still honoured. `MemoryStorage` treats its circuit
66
- generations and probe tokens the same way, answering a `StorageError`.
66
+ generations and probe tokens the same way, answering a `StorageError` of
67
+ kind `StorageErrorKind::Exhausted` (a failing backend is
68
+ `StorageErrorKind::Backend`). `DistributedCircuitBreaker` answers the
69
+ exhausted kind as `Refusal::Exhausted`, and a backend failure as
70
+ `CircuitError::Storage`.
67
71
 
68
72
  ## The runtime (`std`, `async`)
69
73
 
@@ -232,15 +232,16 @@ module BreakerMachines
232
232
 
233
233
  def draw = @random.rand(2**64)
234
234
 
235
- # Decide under the lock: the block runs native calls with the clock read
236
- # inside it and answers the lifecycle events replaying the Breaker's
237
- # answers. The machine moves under the lock, and a transition is stored
235
+ # Sample the configurable clock before locking; it can call back into
236
+ # the circuit. Clamp the sample against the latest instant under the lock.
237
+ # The machine moves under the lock, and a transition is stored
238
238
  # for other circuits of this name (unless it was adopted from them); the
239
239
  # hooks the transitions queued run once the lock is released.
240
240
  def decide(share: true)
241
+ sampled_at = @clock.call
241
242
  transitions = @mutex.synchronize do
242
243
  @pending = []
243
- events = Array(yield([@clock.call, @breaker.latest].max))
244
+ events = Array(yield([sampled_at, @breaker.latest].max))
244
245
  events.each { |event| __send__(:"#{event}!") }
245
246
  check_agreement(events)
246
247
  publish if share && !events.empty?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BreakerMachines
4
- VERSION = '0.28.0'
4
+ VERSION = '0.30.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: breaker_machines
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.28.0
4
+ version: 0.30.1
5
5
  platform: aarch64-linux
6
6
  authors:
7
7
  - Abdelkader Boudih
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-11-16 00:00:00.000000000 Z
11
+ date: 2026-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: deadline_machines