featureflip-openfeature 0.2.0 → 0.3.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/README.md +3 -2
- data/lib/featureflip/open_feature/context_mapping.rb +7 -5
- data/lib/featureflip/open_feature/version.rb +1 -1
- metadata +10 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6932b975f47af96768268fb976eb6293d328d2f9928fc16325be8be8196aab65
|
|
4
|
+
data.tar.gz: b7fdd849c9231f0265b85893243569ccb27be4edc1ae6515a3710c8e83bae7d8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9c4b3312881ad4588e48cb0c18e2642a38c567e957396ef1564a76d20a9d598af8b0f7bd7a000fff87feeeb18a77c3242fd8b6bb8cbac34cfcd2ca6bd88f87c3
|
|
7
|
+
data.tar.gz: d23d76105d2260e63c37deb5c08c59a16c053dc7100fb618482f249b0c93094a677eac3451e179e4c4710b7b40aa70693b578897c3724e9ced6dfc1e513ce3c6
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.0 — 2026-11-17
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
|
|
7
|
+
- `targeting_key` is written into the Featureflip context as `user_id` only, the canonical spelling, instead of under both `user_id` and `userId`. A targeting rule on either spelling still matches, because the SDK resolves `userId` and `user_id` to the same identity. That alias reached the SDK's condition evaluator in `featureflip` 2.13.1, so the provider now requires 2.13.1 or later. An explicit attribute of either spelling still wins. (#4546)
|
|
8
|
+
|
|
9
|
+
## 0.2.1 — 2026-10-26
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- Requires the `featureflip` gem 2.13 or later, so the evaluation events behind every flag the provider resolves carry the evaluation reason (`rule-match`, `fallthrough`, `flag-disabled`, `prerequisite-failed`, `error` or `flag-not-found`) and the matched rule id. Featureflip's flag Analytics tab uses them to show which part of the targeting served the traffic. (#4268)
|
|
14
|
+
|
|
3
15
|
## 0.2.0 — 2026-10-20
|
|
4
16
|
|
|
5
17
|
### Added
|
data/README.md
CHANGED
|
@@ -40,8 +40,9 @@ OpenFeature::SDK.set_provider_and_wait(Featureflip::OpenFeature::Provider.new(cl
|
|
|
40
40
|
|
|
41
41
|
## Behavior
|
|
42
42
|
|
|
43
|
-
- `targeting_key`
|
|
44
|
-
|
|
43
|
+
- `targeting_key` becomes `user_id`. A targeting rule on either `user_id` or
|
|
44
|
+
`userId` matches it, because the SDK resolves both names to the same identity.
|
|
45
|
+
An explicit attribute of either spelling wins.
|
|
45
46
|
- `Time`, `Date` and `DateTime` attributes become ISO-8601 strings.
|
|
46
47
|
- `fetch_integer_value` accepts whole-number floats (`3.0` returns `3`).
|
|
47
48
|
`fetch_float_value` accepts integers (`5` returns `5.0`).
|
|
@@ -22,12 +22,14 @@ module Featureflip
|
|
|
22
22
|
|
|
23
23
|
targeting_key = fields[TARGETING_KEY]
|
|
24
24
|
blank = targeting_key.nil? || (targeting_key.respond_to?(:empty?) && targeting_key.empty?)
|
|
25
|
-
#
|
|
26
|
-
#
|
|
27
|
-
#
|
|
28
|
-
#
|
|
25
|
+
# Written as user_id, the canonical spelling. A rule on userId still
|
|
26
|
+
# matches: the SDK resolves either name to the same identity, user_id
|
|
27
|
+
# first (#4518). That alias reaches the condition path only from
|
|
28
|
+
# featureflip 2.13.1, the gemspec floor; before it the condition
|
|
29
|
+
# evaluator read context[attribute] exactly and this wrote both. An
|
|
30
|
+
# explicit attribute of either spelling wins and nothing is added.
|
|
29
31
|
if !blank && IDENTITY_KEYS.none? { |k| context.key?(k) }
|
|
30
|
-
|
|
32
|
+
context["user_id"] = targeting_key
|
|
31
33
|
end
|
|
32
34
|
context
|
|
33
35
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: featureflip-openfeature
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Featureflip
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-11-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: featureflip
|
|
@@ -16,14 +16,20 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '2.
|
|
19
|
+
version: '2.13'
|
|
20
|
+
- - ">="
|
|
21
|
+
- !ruby/object:Gem::Version
|
|
22
|
+
version: 2.13.1
|
|
20
23
|
type: :runtime
|
|
21
24
|
prerelease: false
|
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
26
|
requirements:
|
|
24
27
|
- - "~>"
|
|
25
28
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '2.
|
|
29
|
+
version: '2.13'
|
|
30
|
+
- - ">="
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: 2.13.1
|
|
27
33
|
- !ruby/object:Gem::Dependency
|
|
28
34
|
name: openfeature-sdk
|
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|