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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e895ef67d6f423e89151951d6868fa464c1efe64cee6dd37be8923351bf88467
4
- data.tar.gz: 7bf79b2a93e79c8717e52ed2a6ca3261f0d3933859e05e0cee1c9c22aaaa77db
3
+ metadata.gz: 9df507c0722b4e1f6d12810813f6f8d37d24473a034ef067889d83edc3106dcc
4
+ data.tar.gz: c576573a7eef9476b9d16905b7bf26f249ed10ef4cb12691746de161dec9277d
5
5
  SHA512:
6
- metadata.gz: 881cd65e3634adc8fe539fad751591876ffd070ed712b4de8533fdf38e231ba15fd126daa0afece1b1f06b27306c3afa00c1129e37c98202391593f439cfa886
7
- data.tar.gz: 2333ef174f7f08858cf518d66ac60bd6c5fa8246d06b61c73c89c5e7d08cf2986b5b45bc952d6d18476b3b73257402ee5838a362da100da1b64d7c72f4ae38eb
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
- # This is not a hash, it's just an array with 2 entries
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] || {}
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PostHog
4
- VERSION = '3.3.0'
4
+ VERSION = '3.3.2'
5
5
  end
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.0
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-23 00:00:00.000000000 Z
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.5.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: []