posthog-ruby 3.3.0 → 3.3.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 +4 -4
- data/lib/posthog/feature_flags.rb +1 -8
- data/lib/posthog/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9df507c0722b4e1f6d12810813f6f8d37d24473a034ef067889d83edc3106dcc
|
4
|
+
data.tar.gz: c576573a7eef9476b9d16905b7bf26f249ed10ef4cb12691746de161dec9277d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2b8b07133cef4a959d79db0ec354fa8437f72b7e312240a41af44820e6663f7595da661c6b3e172885b7766f8f5f07ba35ee21d1795c564c09838358647d1cc
|
7
|
+
data.tar.gz: af0218271ebf8de7d45e289176e941d0e72e7871df5d3438f2c30d4f423170125d3b54e89ae4bf05ba63d80fbb9981b0e4a7acf02dfeb2fa17d7891dcf29d02e
|
@@ -733,15 +733,8 @@ module PostHog
|
|
733
733
|
is_inconclusive = false
|
734
734
|
result = nil
|
735
735
|
|
736
|
-
# Stable sort conditions with variant overrides to the top. This ensures that if overrides are present, they are
|
737
|
-
# evaluated first, and the variant override is applied to the first matching condition.
|
738
|
-
sorted_flag_conditions = flag_conditions.each_with_index.sort_by do |condition, idx|
|
739
|
-
[condition[:variant].nil? ? 1 : -1, idx]
|
740
|
-
end
|
741
|
-
|
742
736
|
# NOTE: This NEEDS to be `each` because `each_key` breaks
|
743
|
-
|
744
|
-
sorted_flag_conditions.each do |condition, _idx| # rubocop:disable Style/HashEachMethods
|
737
|
+
flag_conditions.each do |condition|
|
745
738
|
if condition_match(flag, distinct_id, condition, properties, evaluation_cache, cohort_properties)
|
746
739
|
variant_override = condition[:variant]
|
747
740
|
flag_multivariate = flag_filters[:multivariate] || {}
|
data/lib/posthog/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: posthog-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.3.
|
4
|
+
version: 3.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-09-
|
11
|
+
date: 2025-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|
@@ -57,7 +57,7 @@ licenses:
|
|
57
57
|
- MIT
|
58
58
|
metadata:
|
59
59
|
rubygems_mfa_required: 'true'
|
60
|
-
post_install_message:
|
60
|
+
post_install_message:
|
61
61
|
rdoc_options: []
|
62
62
|
require_paths:
|
63
63
|
- lib
|
@@ -72,8 +72,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
72
72
|
- !ruby/object:Gem::Version
|
73
73
|
version: '0'
|
74
74
|
requirements: []
|
75
|
-
rubygems_version: 3.
|
76
|
-
signing_key:
|
75
|
+
rubygems_version: 3.0.3.1
|
76
|
+
signing_key:
|
77
77
|
specification_version: 4
|
78
78
|
summary: PostHog library
|
79
79
|
test_files: []
|