vwo_log_messages 0.7.1 → 0.7.5

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: 960c94cb6e2879fdf9ef875ba4decaf25183b37b235493f89e5e9f5bf0977a41
4
- data.tar.gz: a2b706078e98b56e6ac6e4e57736df136705de8824df0a1a17afc2a6ac762216
3
+ metadata.gz: a60e0cf7e459fbce86f4a63f66d8611a0bb2e44a4eb6186f2cd2644e06b21727
4
+ data.tar.gz: e33c50a84b7a31d460cb6e11017dfbc31ad76cb480fc15dd6beb70918022022d
5
5
  SHA512:
6
- metadata.gz: b03fa4b992787b9d25ddbd2540e7539d1930181c4d41853402fa533099dce2b10ac0115db85d0b07c155a05f969d2eadb32d9ee9c70321f01eb8ce446b96fd87
7
- data.tar.gz: 6039f2d203662c11d33ed7025da58c973c8f1f5981889b54ae01fb9527be2c60688dc8d41854f8a11da8551ab78c0cedb7c28f422ac378fc550de3f408a076d7
6
+ metadata.gz: f522341503ca000da961152c19ea018fafe90bc724cedd2dfb44702456fe5f10ef3d6471036cc4ab3107a2c376ce6969ffda018f3573013ec57eb57dc63fe8ff
7
+ data.tar.gz: '039882446ad07915b28253cb97a8125f07147cce171c47ce84d67378c82d7cc21c6a6ec85eddab2065770bbcf2de11b9ec285724a7ff412e24496238a13a0b09'
@@ -1,8 +1,10 @@
1
1
  class VwoLogMessages
2
- # def get
3
- # # puts JSON.load(File.open(File.join(File.dirname(__FILE__), '/debug-messages.json')))
4
- # end
5
2
  def self.getMessage
6
- puts "Hello world!"
3
+ return {
4
+ 'debug_logs' => JSON.load(File.open(File.join(File.dirname(__FILE__), '../src/debug-messages.json'))),
5
+ 'error_logs' => JSON.load(File.open(File.join(File.dirname(__FILE__), '../src/error-messages.json'))),
6
+ 'info_logs' => JSON.load(File.open(File.join(File.dirname(__FILE__), '../src/info-messages.json'))),
7
+ 'warning_logs' => JSON.load(File.open(File.join(File.dirname(__FILE__), '../src/warning-messages.json')))
8
+ }
7
9
  end
8
10
  end
@@ -0,0 +1,16 @@
1
+ <?php
2
+
3
+ namespace vwo;
4
+
5
+ class VwoSdkLogMessages {
6
+
7
+ public static function get()
8
+ {
9
+ return [
10
+ "debugLogs" => json_decode(file_get_contents(__DIR__ . "/debug-messages.json"), true),
11
+ "infoLogs" => json_decode(file_get_contents(__DIR__ . "/info-messages.json"), true),
12
+ "errorLogs" => json_decode(file_get_contents(__DIR__ . "/error-messages.json"), true),
13
+ "warnLogs" => json_decode(file_get_contents(__DIR__ . "/warning-messages.json"), true)
14
+ ];
15
+ }
16
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "CONFIG_BATCH_EVENT_LIMIT_EXCEEDED": "({file}): Impression event - {endPoint} failed due to exceeding payload size. Parameter eventsPerRequest in batchEvents config in launch API has value:{eventsPerRequest} for account ID:{accountId}. Please read the official documentation for knowing the size limits",
3
+ "CONFIG_LOG_LEVEL_SET": "({file}): Log level set to {level}",
4
+ "CONFIG_CUSTOM_LOGGER_USED": "({file}): Custom logger used",
5
+ "CONFIG_DEVELOPMENT_MODE_STATUS": "({file}): DEVELOPMENT mode is ON. No tracking call will be made to VWO Server",
6
+
7
+ "POLLING_SETTINGS_FILE_REGISTERED": "({file}): Polling of settings-file is registered with a periodic interval of {pollingInterval} ms",
8
+
9
+ "SETTINGS_FILE_PROCESSED": "({file}): settings-file matches the schema, validated and properly processed for the Account ID:{accountId}",
10
+
11
+ "IMPRESSION_FOR_TRACK_USER": "({file}): Impression built for tracking user - {properties}",
12
+ "IMPRESSION_FOR_TRACK_GOAL": "({file}): Impression built for tracking goal - {properties}",
13
+ "IMPRESSION_FOR_PUSH": "({file}): Impression built for pushing custom dimension - {properties}",
14
+
15
+ "IMPRESSION_FOR_EVENT_ARCH_TRACK_USER": "({file}): Impression built for vwo_variationShown event for Account ID:{accountId}, User ID:{userId}, and Campaign ID:{campaignId}",
16
+ "IMPRESSION_FOR_EVENT_ARCH_TRACK_GOAL": "({file}): Impression built for {goalName} event for Account ID:{accountId}, User ID:{userId}, and Campaign ID:{campaignId}",
17
+ "IMPRESSION_FOR_EVENT_ARCH_PUSH": "({file}): Impression built for visitor-property:{property} for Account ID:{accountId} and User ID:{userId}",
18
+
19
+ "EVENT_BATCH_BEFORE_FLUSHING": "({file}): flushing event queue {manually} having {length} events for Account ID:{accountId}. {timer}",
20
+ "EVENT_BATCH_FLUSH": "{{file}}: Manually flushing batch events for Account ID:{accountId} having {queueLength} events",
21
+
22
+ "USER_STORAGE_SERVICE_NOT_CONFIGURED": "({file}): User Storage Service is not configured to get/set the data",
23
+ "USER_STORAGE_SERVICE_NO_STORED_DATA": "({file}): No stored variation for User ID:{userId} for Campaign:{campaignKey} found in User Storage Service",
24
+
25
+ "VARIATION_RANGE_ALLOCATION": "({file}): Variation:{variationName} of Campaign:{campaignKey} having weight:{variationWeight} got bucketing range: ( {start} - {end} )",
26
+
27
+ "MEG_ELIGIBLE_CAMPAIGNS": "({file}): Campaigns: {eligibleCampaignKeys} are eligible, {inEligibleText} are ineligible from the Group:{groupName} for the User ID:{userId}",
28
+
29
+ "SEGMENTATION_SKIPPED": "({file}): Segmentation is not used for Campaign:{campaignKey}, hence skipping evaluating segmentation{variation} for User ID:{userId}",
30
+ "SEGMENTATION_STATUS": "({file}): User ID:{userId} for Campaign:{campaignKey} with variables:{customVariables} {status} {segmentationType} {variation}",
31
+ "WHITELISTING_SKIPPED": "({file}): Whitelisting is not used for Campaign:{campaignKey}, hence skipping evaluating whitelisting for User ID:{userId}",
32
+
33
+ "USER_UUID": "({file}): VWO UUID generated for Account Id:{accountId} and User ID:{userId} is {uuid}",
34
+ "USER_HASH_BUCKET_VALUE": "({file}): User ID:{userId} having hash:{hashValue} got bucketValue:{bucketValue}",
35
+ "USER_CAMPAIGN_BUCKET_VALUES": "({file}): User ID:{userId} for Campaign:{campaignKey} having percent-traffic:{percentTraffic} got hash-value:{hashValue} and bucket-value:{bucketValue}"
36
+ }
@@ -0,0 +1,40 @@
1
+ {
2
+ "CONFIG_PARAMETER_INVALID": "({file}): {parameter} paased in {api} API is not correct. It should be of type:{type}",
3
+ "CONFIG_POLLING_SDK_KEY_NOT_PROVIVED": "({file}): SDK Key is required along with pollingInterval to poll the settings-file",
4
+ "CONFIG_CORRUPTED": "({file}): Config passed to {api} API is invalid. Please refer developer docs",
5
+
6
+ "SETTINGS_FILE_INVALID": "({file}): Settings file passed while instantiating SDK instance is invalid",
7
+ "SETTINGS_FILE_CORRUPTED": "({file}): Fetched settings-file doesn't match the desired schema. Please contact VWO Support for help",
8
+
9
+ "BATCH_QUEUE_EMPTY": "{{file}}: No batch queue present for account:{accountId} when calling flushEvents API. Check batchEvents config in launch API",
10
+
11
+ "API_HAS_CORRUPTED_SETTINGS_FILE": "({file}): {api} API has corrupted settings-file. Please check or reach out to VWO support",
12
+
13
+ "API_BAD_PARAMETERS": "({file}): {api} API got bad parameters. Refer the developer docs",
14
+ "API_NOT_APPLICABLE": "({file}): {api} API is not valid for Campaign:{campaignKey} having type:{campaignType} for User ID:{userId}",
15
+
16
+ "USER_ID_INVALID": "({file}): Invalid User Id:{userId} passed to the API",
17
+
18
+ "CAMPAIGN_NOT_FOUND_FOR_GOAL": "({file}): No such campaign found corresponding to goalIdentifier:{goalIdentifier}. Please verify from VWO app",
19
+
20
+ "POLLING_FAILED": "({file}): Fetching of settings-file failed via polling for the accountId:{accountId}",
21
+
22
+ "SEGMENTATION_REGEX_CREATION_FAILED": "({file}): Regular expression:{regex} used for targeting cound not be evaluated",
23
+ "SEGMENTATION_ERROR": "({file}): Could not segment the User ID:{userId} for Campaign:{campaignKey}{variation} with customVariables:{customVariables}. Error message: {err}",
24
+
25
+ "USER_STORAGE_SERVICE_GET_FAILED": "({file}): Getting data from User Storage Service failed for User ID:{userId}. Error: {error}",
26
+ "USER_STORAGE_SERVICE_SET_FAILED": "({file}): Saving data into User Storage Service failed for User ID:{userId}. Error: {error}",
27
+
28
+ "IMPRESSION_FAILED": "({file}): Impression event could not be sent to VWO - {endPoint}. Reason: {err}",
29
+
30
+ "TAG_KEY_LENGTH_EXCEEDED": "({file}): Length of custom dimension key:{tagKey} for User Id:{userId} can not be greater than 255",
31
+ "TAG_VALUE_LENGTH_EXCEEDED": "({file}): Length of custom dimension value:{tagValue} of tagKey:{tagKey} for User Id:{userId} can not be greater than 255",
32
+
33
+ "TRACK_API_GOAL_NOT_FOUND": "({file}): Goal:{goalIdentifier} not found for Campaign:{campaignKey} and User Id:{userId}",
34
+ "TRACK_API_REVENUE_NOT_PASSED_FOR_REVENUE_GOAL": "({file}): Revenue value should be passed for revenue goal:{goalIdentifier} for Campaign:{campaignKey} and User Id:{userId}",
35
+
36
+ "UNABLE_TO_CAST_VALUE": "({file}): Unable to cast value:{variableValue} to type:{variableType}, returning null",
37
+ "VARIABLE_NOT_FOUND": "({file}): Variable:{variableKey} for User ID:{userId} is not found in settings-file, returning null",
38
+ "MISSING_IMPORT_SETTINGS_MANDATORY_PARAMS": "AccountId and sdkKey are required for fetching account settings. Aborting!",
39
+ "ACCOUNT_SETTINGS_NOT_FOUND": "({file}): Request failed for fetching account settings. Got Status Code: ${statusCode} and message: ${message}"
40
+ }
@@ -0,0 +1,58 @@
1
+ {
2
+ "CONFIG_VALID": "({file}): SDK configuration and account settings-file are valid",
3
+ "CONFIG_PARAMETER_USED": "({file}): {parameter} paased in launch API having type:{type}",
4
+ "CONFIG_RETURN_PROMISE": "({file}): {method} API returns a promise as returnPromiseFor is set to true for this API",
5
+
6
+ "SDK_INITIALIZED": "({file}): SDK is properly initialzed with the passed configuration",
7
+
8
+ "POLLING_SUCCESS": "({file}): settings-file fetched successfully via polling for the accountId:{accountId}",
9
+ "POLLING_SETTINGS_FILE_UPDATED": "({file}): SDK instance is updated with the latest settings-file for the accountId:{accountId}",
10
+ "POLLING_SETTINGS_FILE_NOT_UPDATED": "{file}: settings-file fetched via polling is same as earlier fetched settings",
11
+
12
+ "DECISION_NO_VARIATION_ALLOTED": "({file}): Variation was not assigned to the User ID:{userId} for Campaign:{campaignKey}",
13
+
14
+
15
+ "EVENT_BATCH_DEFAULTS": "({file}): {parameter} not passed in SDK configuration, setting it default to {defaultValue}",
16
+ "EVENT_QUEUE": "({file}): Event with payload:{event} pushed to the {queueType} queue",
17
+ "EVENT_BATCH_After_FLUSHING": "({file}): Event queue having {length} events has been flushed {manually}",
18
+
19
+ "CAMPAIGN_NOT_ACTIVATED": "({file}): Activate the campaign:{campaignKey} first for User ID:{userId} to {reason}",
20
+ "CAMPAIGN_USER_ALREADY_TRACKED": "({file}): User ID:{userId} for Campaign:{campaignKey} has already been tracked earlier for \"{api}\" API. No tracking call is made to VWO server",
21
+ "CAMPAIGN_GOAL_ALREADY_TRACKED": "({file}): Goal:{goalIdentifier} of Campaign:{campaignKey} for User ID:{userId} has already been tracked earlier. No tracking call is made to VWO server",
22
+
23
+ "GOT_STORED_VARIATION": "({file}): Got stored variation from User Storage Service for User ID:{userId} for Campaign:{campaignKey} as Variation:{variationName}",
24
+ "GETTING_DATA_USER_STORAGE_SERVICE": "({file}): Read data from User Storage Service for User ID:{userId} and Campaign:{campaignKey}",
25
+ "SETTING_DATA_USER_STORAGE_SERVICE": "({file}): Set data into User Storage Service for User ID:{userId} and Campaign:{campaignKey}",
26
+
27
+ "IMPRESSION_SUCCESS": "({file}): Impression event - {endPoint} was successfully received by VWO having main keys: Account ID:{accountId}, {mainKeys}",
28
+ "IMPRESSION_SUCCESS_FOR_EVENT_ARCH": "({file}): Impression for {event} - {endPoint} was successfully received by VWO for Account ID:{accountId}",
29
+ "IMPRESSION_BATCH_SUCCESS": "({file}): Impression event - {endPoint} was successfully received by VWO having Account ID:{accountId}",
30
+ "IMPRESSION_BATCH_FAILED": "({file}): Batch events couldn\"t be received by VWO. Calling Flush Callback with error and data",
31
+
32
+ "MEG_ELIGIBLE_CAMPAIGNS": "({file}): Got {noOfEligibleCampaigns} eligible winners out of {noOfGroupCampaigns} campaigns from the Group:{groupName} and for User ID:{userId}",
33
+
34
+ "OTHER_CAMPAIGN_SATISFIES_WHITELISTING_STORAGE": "({file}): Campaign:{campaignKey} of Group:{groupName} satisfies {type} for User ID:{userId}",
35
+ "SEGMENTATION_STATUS": "({file}): User ID:{userId} for Campaign:{campaignKey} with variables:{customVariables} {status} {segmentationType} {variation}",
36
+
37
+ "MEG_CALLED_CAMPAIGN_NOT_WINNER": "({file}): Campaign:{campaignKey} does not qualify from the mutually exclusive group:{groupName} for User ID:{userId}",
38
+ "MEG_GOT_WINNER_CAMPAIGN": "({file}): Campaign:{campaignKey} is selected from the mutually exclusive group:{groupName} for the User ID:{userId}",
39
+
40
+ "FEATURE_STATUS": "({file}): Campaign:{campaignKey} is {status} for user ID:{userId}",
41
+
42
+ "FEATURE_VARIABLE_VALUE": "({file}): For User ID:{userId}, value for variable:{variableKey} of feature:{campaignKey} is:{variableValue}",
43
+ "FEATURE_VARIABLE_DEFAULT_VALUE": "({file}): Feature is not enabled for variation:{variationName}. Returning default value for the variable:{variableKey}",
44
+
45
+ "USER_NOT_PART_OF_CAMPAIGN": "({file}): User ID:{userId} did not qualify for Campaign:{campaignKey}",
46
+ "USER_VARIATION_STATUS": "({file}): User ID:{userId} for Campaign:{campaignKey} {status}",
47
+ "USER_CAMPAIGN_ELIGIBILITY": "({file}): User ID:{userId} for Campaign:{campaignKey} is {status} to become part of campaign",
48
+ "USER_VARIATION_ALLOCATION_STATUS": "({file}): User ID:{userId} for Campaign:{campaignKey} {status}",
49
+
50
+ "OPT_OUT_API_CALLED": "({file}): You have opted out for not tracking i.e. all API calls will stop functioning and will simply early return",
51
+ "API_NOT_ENABLED": "({file}): {api} API is disabled as you opted out for tracking. Reinitialize the SDK to enable the normal functioning of all APIs.",
52
+
53
+ "INITIATING_ACTIVATE": "({file}): Initiating activation of user {userId} for campaign {campaignKey}.",
54
+ "INITIATING_GET_VARIATION": "({file}): Initiating getVariation of user '{userId}' for campaign '{campaignKey}'.",
55
+ "INITIATING_GET_FEATURE_VARIATION": "({file}): Initiating getFeatureVariable for variable key '{variableKey}' of user '{userId}' for campaign '{campaignKey}'.",
56
+ "INITIATING_IS_FEATURE_ENABLED": "({file}): Initiating isFeatureEnabled of user '{userId}' for campaign '{campaignKey}'.",
57
+ "INITIATING_PUSH_DIMENSION": "({file}): Initiating push segment of user '{userId}' with tag name `{tagKey}` and tag value '{tagValue}'."
58
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "CAMPAIGN_NOT_RUNNING": "({file}): {api} API called with Campaign:{campaignKey} but the campaign is not RUNNING. Please verify from VWO App",
3
+ "CAMPAIGN_NOT_ACTIVATED": "({file}): Campaign:{campaignKey} for User ID:{userId} is not yet activated for API:{api}. Use activate API to activate A/B test or isFeatureEnabled API to activate Feature Test"
4
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vwo_log_messages
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - VWO
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-24 00:00:00.000000000 Z
11
+ date: 2022-03-28 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: VWO log messages for VWO FullStack testing SDKs
14
14
  email:
@@ -18,6 +18,11 @@ extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
20
  - lib/vwo_log_messages.rb
21
+ - src/VwoSdkLogMessages.php
22
+ - src/debug-messages.json
23
+ - src/error-messages.json
24
+ - src/info-messages.json
25
+ - src/warning-messages.json
21
26
  homepage: https://vwo.com/fullstack/server-side-testing/
22
27
  licenses:
23
28
  - Apache-2.0
@@ -26,6 +31,7 @@ post_install_message:
26
31
  rdoc_options: []
27
32
  require_paths:
28
33
  - lib
34
+ - src
29
35
  required_ruby_version: !ruby/object:Gem::Requirement
30
36
  requirements:
31
37
  - - ">="