vwo-fme-ruby-sdk 1.1.0 → 1.2.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 +4 -4
- data/lib/resources/debug_messages.json +13 -0
- data/lib/resources/error_messages.json +30 -0
- data/lib/resources/info_messages.json +33 -0
- data/lib/resources/warn_messages.json +1 -0
- data/lib/vwo/constants/constants.rb +1 -1
- data/lib/vwo/packages/logger/core/log_manager.rb +1 -1
- data/lib/vwo/packages/logger/logger.rb +1 -1
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e0d70f7fcb19c20548cdb55639655c0098f5fa149137014982baafb8bd185e9
|
4
|
+
data.tar.gz: 54c0eab76aef36e5de32fc4953e3cea7add5bbed100d1777c08da18cff900b01
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e78ca66f6fb6c71e60519658e04362c0b701d81ac3c79ecd18b8ad7aafedce4aec619dac425f1060b4c3f23aec55d43844645be69f998c4a280cd9a0ee70a9b7
|
7
|
+
data.tar.gz: 543ed4464c0e6685a6fa695d5237a573f0553f29f39bd13476451f2ba6e2a4ea21bfe595c01b1aceb356c9ca159e1c739d2f9e33f2eefc3ce9afcb70283c04ab
|
@@ -0,0 +1,13 @@
|
|
1
|
+
{
|
2
|
+
"API_CALLED": "API - {apiName} called",
|
3
|
+
"SERVICE_INITIALIZED": "VWO {service} initialized while creating an instance of SDK",
|
4
|
+
|
5
|
+
"EXPERIMENTS_EVALUATION_WHEN_ROLLOUT_PASSED": "Rollout rule got passed for user {userId}. Hence, evaluating experiments",
|
6
|
+
"EXPERIMENTS_EVALUATION_WHEN_NO_ROLLOUT_PRESENT": "No Rollout rules present for the feature. Hence, checking experiment rules",
|
7
|
+
|
8
|
+
"USER_BUCKET_TO_VARIATION": "User ID:{userId} for experiment:{campaignKey} having percent traffic:{percentTraffic} got bucket-value:{bucketValue} and hash-value:{hashValue}",
|
9
|
+
|
10
|
+
"IMPRESSION_FOR_TRACK_USER": "Impression built for vwo_variationShown(VWO standard event for tracking user) event haivng Account ID:{accountId}, User ID:{userId}, and experiment ID:{campaignId}",
|
11
|
+
"IMPRESSION_FOR_TRACK_GOAL": "Impression built for event:{eventName} event having Account ID:{accountId}, and user ID:{userId}",
|
12
|
+
"IMPRESSION_FOR_SYNC_VISITOR_PROP": "Impression built for {eventName}(VWO internal event) event for Account ID:{accountId}, and user ID:{userId}"
|
13
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
{
|
2
|
+
"API_THROW_ERROR": "API - {apiName} failed to execute. Trace:{err}",
|
3
|
+
"INIT_OPTIONS_ERROR": "[ERROR]: VWO-SDK {date} Options should be of type object",
|
4
|
+
"INIT_OPTIONS_SDK_KEY_ERROR": "[ERROR]: VWO-SDK {date} Please provide the sdkKey in the options and should be a of type string",
|
5
|
+
"INIT_OPTIONS_ACCOUNT_ID_ERROR": "[ERROR]: VWO-SDK {date} Please provide VWO account ID in the options and should be a of type string|number",
|
6
|
+
|
7
|
+
"INIT_OPTIONS_INVALID": "Invalid key:{key} passed in options. Should be of type:{correctType} and greater than equal to 1000",
|
8
|
+
|
9
|
+
"SETTINGS_FETCH_ERROR": "Settings could not be fetched. Error:{err}",
|
10
|
+
"SETTINGS_SCHEMA_INVALID": "Settings are not valid. Failed schema validation",
|
11
|
+
|
12
|
+
"POLLING_FETCH_SETTINGS_FAILED": "Error while fetching VWO settings with polling",
|
13
|
+
|
14
|
+
"API_INVALID_PARAM": "Key:{key} passed to API:{apiName} is not of valid type. Got type:{type}, should be:{correctType}",
|
15
|
+
"API_SETTING_INVALID": "Settings are not valid. Contact VWO Support",
|
16
|
+
"API_CONTEXT_INVALID": "Context should be an object and must contain a mandatory key - id, which is User ID",
|
17
|
+
|
18
|
+
"FEATURE_NOT_FOUND": "Feature not found for the key:{featureKey}",
|
19
|
+
"EVENT_NOT_FOUND": "Event:{eventName} not found in any of the features' metrics",
|
20
|
+
|
21
|
+
"STORED_DATA_ERROR": "Error in getting data from storage. Error:{err}",
|
22
|
+
"STORING_DATA_ERROR": "Key:{featureKey} is not valid. Not able to store data into storage",
|
23
|
+
|
24
|
+
"GATEWAY_URL_ERROR": "Please provide a valid URL for VWO Gateway Service while initializing the SDK",
|
25
|
+
|
26
|
+
"NETWORK_CALL_FAILED": "Error occurred while sending {method} request. Error:{err}",
|
27
|
+
"SETTINGS_FETCH_FAILED": "Failed to fetch settings and hence VWO client instance couldn't be updated when API: {apiName} got called having isViaWebhook param as {isViaWebhook}. Error: {err}",
|
28
|
+
"NETWORK_CALL_RETRY_ATTEMPT": "Request failed for {endPoint}, Error: {err}. Retrying in {delay} seconds, attempt {attempt} of {maxRetries}",
|
29
|
+
"NETWORK_CALL_RETRY_FAILED": "Max retries reached. Request failed for {endPoint}, Error: {err}"
|
30
|
+
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
{
|
2
|
+
"ON_INIT_ALREADY_RESOLVED": "[INFO]: VWO-SDK {date} {apiName} already resolved",
|
3
|
+
"ON_INIT_SETTINGS_FAILED": "[INFO]: VWO-SDK {date} VWO settings could not be fetched",
|
4
|
+
|
5
|
+
"POLLING_SET_SETTINGS": "There's a change in settings from the last settings fetched. Hence, instantiating a new VWO client internally",
|
6
|
+
"POLLING_NO_CHANGE_IN_SETTINGS": "No change in settings with the last settings fetched. Hence, not instantiating new VWO client",
|
7
|
+
|
8
|
+
"SETTINGS_FETCH_SUCCESS": "Settings fetched successfully",
|
9
|
+
|
10
|
+
"CLIENT_INITIALIZED": "VWO Client initialized",
|
11
|
+
|
12
|
+
"STORED_VARIATION_FOUND": "Variation {variationKey} found in storage for the user {userId} for the {experimentType} experiment:{experimentKey}",
|
13
|
+
|
14
|
+
"USER_PART_OF_CAMPAIGN": "User ID:{userId} is {notPart} part of experiment:{campaignKey}",
|
15
|
+
"SEGMENTATION_SKIP": "For userId:{userId} of experiment:{campaignKey}, segments was missing. Hence, skipping segmentation",
|
16
|
+
"SEGMENTATION_STATUS": "Segmentation {status} for userId:{userId} of experiment:{campaignKey}",
|
17
|
+
|
18
|
+
"USER_CAMPAIGN_BUCKET_INFO": "User ID:{userId} for experiment:{campaignKey} {status}",
|
19
|
+
|
20
|
+
"WHITELISTING_SKIP": "Whitelisting is not used for experiment:{campaignKey}, hence skipping evaluating whitelisting {variation} for User ID:{userId}",
|
21
|
+
"WHITELISTING_STATUS": "User ID:{userId} for experiment:{campaignKey} {status} whitelisting {variationString}",
|
22
|
+
|
23
|
+
"VARIATION_RANGE_ALLOCATION": "Variation:{variationKey} of experiment:{campaignKey} having weight:{variationWeight} got bucketing range: ({startRange} - {endRange})",
|
24
|
+
|
25
|
+
"IMPACT_ANALYSIS": "Tracking feature:{featureKey} being {status} for Impact Analysis Campaign for the user {userId}",
|
26
|
+
|
27
|
+
"MEG_SKIP_ROLLOUT_EVALUATE_EXPERIMENTS": "No rollout rule found for feature:{featureKey}. Hence, evaluating experiments",
|
28
|
+
"MEG_CAMPAIGN_FOUND_IN_STORAGE": "Campaign {campaignKey} found in storage for user ID:{userId}",
|
29
|
+
"MEG_CAMPAIGN_ELIGIBLE": "Campaign {campaignKey} is eligible for user ID:{userId}",
|
30
|
+
"MEG_WINNER_CAMPAIGN": "MEG: Campaign {campaignKey} is the winner for group {groupId} for user ID:{userId} {algo}",
|
31
|
+
"SETTINGS_UPDATED": "Settings fetched and updated successfully on the current VWO client instance when API: {apiName} got called having isViaWebhook param as {isViaWebhook}",
|
32
|
+
"NETWORK_CALL_SUCCESS": "Impression for {event} - {endPoint} was successfully received by VWO having Account ID:{accountId}, User ID:{userId} and UUID: {uuid}"
|
33
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{}
|
@@ -18,7 +18,7 @@ require_relative '../logger'
|
|
18
18
|
require_relative 'transport_manager'
|
19
19
|
require_relative '../transports/console_transport'
|
20
20
|
|
21
|
-
class LogManager <
|
21
|
+
class LogManager < VWOLogger
|
22
22
|
@instance = nil
|
23
23
|
|
24
24
|
# Use the `instance` method to initialize and get the instance
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vwo-fme-ruby-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- VWO
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: uuidtools
|
@@ -143,6 +143,10 @@ executables: []
|
|
143
143
|
extensions: []
|
144
144
|
extra_rdoc_files: []
|
145
145
|
files:
|
146
|
+
- lib/resources/debug_messages.json
|
147
|
+
- lib/resources/error_messages.json
|
148
|
+
- lib/resources/info_messages.json
|
149
|
+
- lib/resources/warn_messages.json
|
146
150
|
- lib/vwo.rb
|
147
151
|
- lib/vwo/api/get_flag.rb
|
148
152
|
- lib/vwo/api/set_attribute.rb
|