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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 60a16a735d2bf5e3244e1514bfc21449a29b858bae3913c18b9bfdb207976e6a
4
- data.tar.gz: 900c8ac04388a49d1373f30f3259ae2d094be802919a3ab1adcbb8d3d1a8a8f5
3
+ metadata.gz: 6932b975f47af96768268fb976eb6293d328d2f9928fc16325be8be8196aab65
4
+ data.tar.gz: b7fdd849c9231f0265b85893243569ccb27be4edc1ae6515a3710c8e83bae7d8
5
5
  SHA512:
6
- metadata.gz: a6ceab1d48a085aa47653b74573ab0a18f52f828269816e40b378026a2955e5aa7b6d1e49a63ee345167fab47cfba82c5c90516c8763fa51fe2f315484b6e82f
7
- data.tar.gz: 772885e6e9f044e5a141397b0ffebbb997c0aad42d119e279330a8bdd8c28f2399686b9e148ba0db382914a2b35047f2160371b7a8a9a2500427f2280d5d158b
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` is written under both `user_id` and `userId`, so a targeting
44
- rule on either spelling matches. An explicit attribute of either spelling wins.
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
- # BOTH spellings, because the Ruby SDK's condition evaluator reads
26
- # context[attribute] exactly; the userId/user_id alias exists only on
27
- # the bucketing path. A rule on either spelling must match. An explicit
28
- # attribute of either spelling wins and nothing is overwritten.
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
- IDENTITY_KEYS.each { |k| context[k] = targeting_key }
32
+ context["user_id"] = targeting_key
31
33
  end
32
34
  context
33
35
  end
@@ -2,6 +2,6 @@ module Featureflip
2
2
  module OpenFeature
3
3
  # Rewritten from the release tag at publish time; the committed value is
4
4
  # convention, the tag is what ships.
5
- VERSION = "0.2.0"
5
+ VERSION = "0.3.0"
6
6
  end
7
7
  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.2.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-10-21 00:00:00.000000000 Z
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.11'
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.11'
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