breaker_machines 0.28.1-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: cf418e624e0905bb2e7fec62ef02d7cdb2a842c57b836ca710d02e2dac13821d
4
- data.tar.gz: 4e4c12446b659c13845eb638a35925ee148837671d3c15ea1c163eecd939d206
3
+ metadata.gz: febfb34b6e2f3bae7536d954a29e691580fefeeb91cdf468c57734584252ab22
4
+ data.tar.gz: fedb0272607bf6cfa4105a16d0e4540466d32166e53824ba432c264ad1918d07
5
5
  SHA512:
6
- metadata.gz: 7630fd31be48cc95f7b521a5df0fe7f5b1bd155e9291f371170677f1e4175f929672440419a6d087e55ecba80808ef8bc7c80cb95e69b1a777118db74ac7efb3
7
- data.tar.gz: 0f3b73477bcc975e5fe9a584dea60c6fe10bbc43cf015762c76ab54c445ee096480d0cc0c1d1fded4a50b2e8b01ae70583107073e0643bb76ad5d07e3762c0c9
6
+ metadata.gz: 272e91af9770c52bef7628a3fe7e0564fa8fb9d685d9613ff88d80d2ebc516021712474c17c301deb52ca6e2c9350626cf0a212bb93ffef2bde155e3a7603dbb
7
+ data.tar.gz: c3c82d200efebb4580c77b87df3fe8c42db4768c314c29360e023849013244518d0a779a24400b03f9426b6b986f107ef3c7a2973ebc147c35e72eb0d6f0ce00
data/CHANGELOG.md CHANGED
@@ -6,6 +6,27 @@
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
+
9
30
  ## [0.28.1](https://github.com/seuros/breaker_machines/compare/breaker_machines/v0.28.0...breaker_machines/v0.28.1) (2026-11-16)
10
31
 
11
32
 
@@ -5,6 +5,27 @@ 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
+
8
29
  ## [0.25.1](https://github.com/seuros/breaker_machines/compare/breaker-machines-v0.25.0...breaker-machines-v0.25.1) (2026-11-16)
9
30
 
10
31
 
@@ -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.1'
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.1
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