quonfig-openfeature 0.0.5 → 0.0.6
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/VERSION +1 -1
- data/lib/quonfig/openfeature/provider.rb +16 -6
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b7dadf25b1ab1e6b89f51da4349c2d75b762f365a9a503c599d98e2e0a5f3e62
|
|
4
|
+
data.tar.gz: 87282d0419edc8fe129f47e8a3273afa8df0534e18cc5b7f20693c15b51ae81f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7cc0a385157c241f508c2b9d769181c829321f04a309fd3d6a5eb27d528fc1acbf04c0b16575104c13bc486340ffe25c972a3c937c23820bafee43ca28f1dfa6
|
|
7
|
+
data.tar.gz: 453b860ba153b45b2eba50e8a99a5dc60aaa6903bfcc0cf50c14635f9aada3a21877969ec00a00b6159a6d94a17ac9ae34ced1973840ebf0196b3909e1b82d2e
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.0.6 - 2026-05-15
|
|
4
|
+
|
|
5
|
+
- **Chore: bump `quonfig` runtime floor to `>= 0.0.15` (qfg-ie49).** The 0.0.15 release of the native Ruby SDK fixes how `restart_total` (Layer 1 SSE) is counted under clean-FIN reconnects and hardens the reconnect-counting logger wrapper against worker-thread death. Provider code is unchanged — the fix is in the SDK's SSE delivery path. Tightening the floor signals this provider is tested against and requires the fixed SDK so downstream installs of the OpenFeature provider can't pull in an SSE-restart-buggy SDK.
|
|
6
|
+
|
|
3
7
|
## 0.0.5 - 2026-05-07
|
|
4
8
|
|
|
5
9
|
- **Chore: bump `quonfig` runtime floor to `>= 0.0.13` (qfg-7jnb.11).** The 0.0.13 release of the native Ruby SDK adds support for the `IS_PRESENT` and `IS_NOT_PRESENT` targeting operators (qfg-7jnb.6). Tightening the floor signals that this provider is tested against and requires the new SDK; downstream Bundler resolutions already on `>= 0.0.12` would have picked up 0.0.13 automatically, but the explicit floor prevents a stale install from masking missing-operator behaviour.
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.6
|
|
@@ -145,21 +145,29 @@ module Quonfig
|
|
|
145
145
|
# the SDK consumes. The Quonfig SDK's *_details methods don't raise, so
|
|
146
146
|
# this is a pure mapping layer.
|
|
147
147
|
def to_resolution(details, default_value)
|
|
148
|
+
variant = details.variant
|
|
149
|
+
flag_metadata = details.flag_metadata || {}
|
|
148
150
|
case details.reason
|
|
149
151
|
when ::Quonfig::EvaluationDetails::REASON_STATIC
|
|
150
|
-
ResolutionDetails.new(value: details.value, reason: Reason::STATIC
|
|
152
|
+
ResolutionDetails.new(value: details.value, reason: Reason::STATIC,
|
|
153
|
+
variant: variant, flag_metadata: flag_metadata)
|
|
151
154
|
when ::Quonfig::EvaluationDetails::REASON_TARGETING_MATCH
|
|
152
|
-
ResolutionDetails.new(value: details.value, reason: Reason::TARGETING_MATCH
|
|
155
|
+
ResolutionDetails.new(value: details.value, reason: Reason::TARGETING_MATCH,
|
|
156
|
+
variant: variant, flag_metadata: flag_metadata)
|
|
153
157
|
when ::Quonfig::EvaluationDetails::REASON_SPLIT
|
|
154
|
-
ResolutionDetails.new(value: details.value, reason: Reason::SPLIT
|
|
158
|
+
ResolutionDetails.new(value: details.value, reason: Reason::SPLIT,
|
|
159
|
+
variant: variant, flag_metadata: flag_metadata)
|
|
155
160
|
when ::Quonfig::EvaluationDetails::REASON_DEFAULT
|
|
156
|
-
ResolutionDetails.new(value: default_value, reason: Reason::DEFAULT
|
|
161
|
+
ResolutionDetails.new(value: default_value, reason: Reason::DEFAULT,
|
|
162
|
+
variant: variant, flag_metadata: flag_metadata)
|
|
157
163
|
when ::Quonfig::EvaluationDetails::REASON_ERROR
|
|
158
164
|
ResolutionDetails.new(
|
|
159
165
|
value: default_value,
|
|
160
166
|
reason: Reason::ERROR,
|
|
161
167
|
error_code: map_error_code(details.error_code),
|
|
162
|
-
error_message: details.error_message
|
|
168
|
+
error_message: details.error_message,
|
|
169
|
+
variant: variant,
|
|
170
|
+
flag_metadata: flag_metadata
|
|
163
171
|
)
|
|
164
172
|
else
|
|
165
173
|
# Defensive default: surface as ERROR so unknown reasons don't
|
|
@@ -168,7 +176,9 @@ module Quonfig
|
|
|
168
176
|
value: default_value,
|
|
169
177
|
reason: Reason::ERROR,
|
|
170
178
|
error_code: ErrorCode::GENERAL,
|
|
171
|
-
error_message: "unknown reason: #{details.reason.inspect}"
|
|
179
|
+
error_message: "unknown reason: #{details.reason.inspect}",
|
|
180
|
+
variant: variant,
|
|
181
|
+
flag_metadata: flag_metadata
|
|
172
182
|
)
|
|
173
183
|
end
|
|
174
184
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: quonfig-openfeature
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jeff Dwyer
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-05-
|
|
11
|
+
date: 2026-05-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: openfeature-sdk
|
|
@@ -30,14 +30,14 @@ dependencies:
|
|
|
30
30
|
requirements:
|
|
31
31
|
- - ">="
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: 0.0.
|
|
33
|
+
version: 0.0.15
|
|
34
34
|
type: :runtime
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
38
|
- - ">="
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: 0.0.
|
|
40
|
+
version: 0.0.15
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: minitest
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|