featureflip 2.4.0 → 2.4.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: fbe86937e4d8a9310f509da9c05ee1bcce31ebc4f633504249dd81429c586bbc
4
- data.tar.gz: d71d56d4641775aafa8f11ef426adf40ea162e8a9eeb0ecafacb75998003c34d
3
+ metadata.gz: aecafb52584cdd159977d5675c171b745b05be804b20c5a375edceb5dd719e8c
4
+ data.tar.gz: 61e57b0db95b63da79bacc9c0f9af36ff24525cbf44f50f15a18f79124574a0a
5
5
  SHA512:
6
- metadata.gz: f8bd1ce419e5d8ebf74696c34000e1fcb89eb9f34cf5136acb4fc28dff86ae91da031b16464ef1d4f74fed4141dfb3bbe2c1e0ef1651bb65dba3d268f6ad3419
7
- data.tar.gz: 6dde7ff7991f6e29f88c56253578200ee7b981ed754c86c5c1555fb4dfa847e02f0e23542c7c1ce509ec26c631083342d16ca67433aef99fc50316cedc92ce9c
6
+ metadata.gz: 2419e95a82d2512a886d535e03cfb644668424873e383af9713503c772e8fa14faa45b734ac4419705f7511fc69fbe61bab0cacd2f98a24e9ca57e67cbdb5978
7
+ data.tar.gz: b6c7d2b7e1c4cc9c9aca050b9e97af993ec6201b7caf95f33bc2c6e0cdb8dc6a698c3eb3998f1805051e7f2e73907ea76a7f94a458a02b2f9185a347b4dc3f8f
@@ -32,10 +32,20 @@ module Featureflip
32
32
  @mutex.synchronize { @flags.dup }
33
33
  end
34
34
 
35
+ # Apply a single flag delta (SSE `flag.created` / `flag.updated`).
36
+ #
37
+ # Rejects only a *strictly older* config. Equal versions must be applied:
38
+ # the wire version is second-granular, so two edits to one flag inside the
39
+ # same wall-clock second carry an identical version, and treating equal as
40
+ # stale discarded the second edit outright. With streaming on there is no
41
+ # polling snapshot to correct it, so the store evaluated against the
42
+ # pre-edit config until an SSE `sync` or reconnect.
43
+ #
44
+ # Re-applying an identical config is harmless; dropping a real one is not.
35
45
  def upsert(flag)
36
46
  @mutex.synchronize do
37
47
  existing = @flags[flag.key]
38
- return if existing && existing.version >= flag.version
48
+ return if existing && existing.version > flag.version
39
49
  @flags[flag.key] = flag
40
50
  end
41
51
  end
@@ -1,3 +1,3 @@
1
1
  module Featureflip
2
- VERSION = "2.4.0"
2
+ VERSION = "2.4.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: featureflip
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Featureflip
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-07-29 00:00:00.000000000 Z
11
+ date: 2026-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logger