statsig 2.8.1 → 2.8.3
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/evaluator.rb +2 -2
- data/lib/statsig.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a17857d17823d2f8d7f6a13d01c4f3d117e4187233d377441c4e7be7a6499ef1
|
|
4
|
+
data.tar.gz: 34bb6a509d1fca2ab2973edf7ce0f76814440c5197649a68af8c573130ef13d5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eef23c96fefa5aff93eec2ce8562a45ccb59434bfb68d264f39b50df987689c402286895103295b701ba6f71db970f43bd8832f608a2da0622a5bde1717d9521
|
|
7
|
+
data.tar.gz: 7df3f01db686cf387e30b7d45be967be4d9376340d64506359c0df6a0a9b169f45ef310a7b727b34f87cb9c4ddb97f7ba0a80daf7e79d8102f256f83f32369cd
|
data/lib/evaluator.rb
CHANGED
|
@@ -378,7 +378,7 @@ module Statsig
|
|
|
378
378
|
unless config.nil?
|
|
379
379
|
cur_count += config[:records]
|
|
380
380
|
end
|
|
381
|
-
sum += 1.0 /
|
|
381
|
+
sum += 1.0 / cur_count / total_records
|
|
382
382
|
next unless value < sum
|
|
383
383
|
|
|
384
384
|
end_result.json_value = group[:parameterValues]
|
|
@@ -599,7 +599,7 @@ module Statsig
|
|
|
599
599
|
end_result.target_app_ids = config[:targetAppIDs]
|
|
600
600
|
end_result.gate_value = did_pass
|
|
601
601
|
end_result.forward_all_exposures = config[:forwardAllExposures]
|
|
602
|
-
if config[:entity] == Const::TYPE_FEATURE_GATE
|
|
602
|
+
if config[:entity] == Const::TYPE_FEATURE_GATE || config[:entity] == Const::TYPE_HOLDOUT
|
|
603
603
|
end_result.gate_value = did_pass ? rule[:returnValue] == true : config[:defaultValue] == true
|
|
604
604
|
end
|
|
605
605
|
end_result.config_version = config[:version]
|
data/lib/statsig.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: statsig
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.8.
|
|
4
|
+
version: 2.8.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Statsig, Inc
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-01-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|