optimizely-sdk 5.0.0.pre.beta → 5.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/lib/optimizely/audience.rb +2 -2
- data/lib/optimizely/bucketer.rb +2 -2
- data/lib/optimizely/config/datafile_project_config.rb +558 -542
- data/lib/optimizely/config_manager/http_project_config_manager.rb +8 -6
- data/lib/optimizely/config_manager/static_project_config_manager.rb +2 -1
- data/lib/optimizely/event/event_factory.rb +2 -2
- data/lib/optimizely/event_builder.rb +13 -13
- data/lib/optimizely/exceptions.rb +54 -10
- data/lib/optimizely/helpers/validator.rb +5 -7
- data/lib/optimizely/optimizely_config.rb +3 -1
- data/lib/optimizely/optimizely_factory.rb +14 -16
- data/lib/optimizely/version.rb +1 -1
- data/lib/optimizely.rb +15 -15
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7249ff9bec6f12c00a9a873df03e6f91c9692bcbe2388e87ea9a6a6f1472fbf5
|
4
|
+
data.tar.gz: 902fa025d32f1224833fa25f13158817ff3129244819a170ee3d907812290709
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b96a27927fd78a3d789b9edbb2c8488ba499c4f00220f08f9d9463691f38580db04f5dc6f7278873301a6c7217c54a9cf4f38d400b9feba196b7df70ec173e33
|
7
|
+
data.tar.gz: 368c9b5f096c8773c4bac487b8d6198ade424dde1ea6295449eaee3ecf5c0b4f7e2ab6b88a8bac4ab5ed2a2dce31f3ca24ef8c8596faae34cdae18aebfcdab79
|
data/LICENSE
CHANGED
@@ -187,7 +187,7 @@
|
|
187
187
|
same "printed page" as the copyright notice for easier
|
188
188
|
identification within third-party archives.
|
189
189
|
|
190
|
-
|
190
|
+
© Optimizely 2016
|
191
191
|
|
192
192
|
Licensed under the Apache License, Version 2.0 (the "License");
|
193
193
|
you may not use this file except in compliance with the License.
|
data/lib/optimizely/audience.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
#
|
4
|
-
# Copyright 2016-2017, 2019-2020, Optimizely and contributors
|
4
|
+
# Copyright 2016-2017, 2019-2020, 2023, Optimizely and contributors
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
7
|
# you may not use this file except in compliance with the License.
|
@@ -59,7 +59,7 @@ module Optimizely
|
|
59
59
|
user_condition_evaluator = UserConditionEvaluator.new(user_context, logger)
|
60
60
|
|
61
61
|
evaluate_user_conditions = lambda do |condition|
|
62
|
-
|
62
|
+
user_condition_evaluator.evaluate(condition)
|
63
63
|
end
|
64
64
|
|
65
65
|
evaluate_audience = lambda do |audience_id|
|
data/lib/optimizely/bucketer.rb
CHANGED
@@ -110,8 +110,8 @@ module Optimizely
|
|
110
110
|
# parent_id - String entity ID to use for bucketing ID
|
111
111
|
# traffic_allocations - Array of traffic allocations
|
112
112
|
#
|
113
|
-
# Returns
|
114
|
-
# or nil if no match is found. The second value contains the array of reasons stating how the
|
113
|
+
# Returns an array of two values where first value is the entity ID corresponding to the provided bucket value
|
114
|
+
# or nil if no match is found. The second value contains the array of reasons stating how the decision was taken
|
115
115
|
decide_reasons = []
|
116
116
|
bucketing_key = format(BUCKETING_ID_TEMPLATE, bucketing_id: bucketing_id, entity_id: parent_id)
|
117
117
|
bucket_value = generate_bucket_value(bucketing_key)
|