vwo-sdk 1.29.1 → 1.30.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 91b2904a81712b0093c6406bbcc0a2db8669ad01e2c49489a7dbb54177319c9d
4
- data.tar.gz: 2e224423aad754c5b8c9ddf6952e768f2b3e34bc2ec7840ada65b0ea2c40421d
3
+ metadata.gz: a8bf50eeb65a850a9a49fb00628208670c6bd7a167c591d8d649573fa0a67bc7
4
+ data.tar.gz: cfc520d123444c23f36683a1d89bef145e466ea21a9044543641226614e076df
5
5
  SHA512:
6
- metadata.gz: 80142e1852c8f81384df2df3125bd3eb1cbd53fa8851f984c58407535cf4409b0e121cdd7c0d86c05f2772295c43f955bca9145a831a3bde9c90f8f02c071cf7
7
- data.tar.gz: e0509cea3280a6efd33fb75cff9cf1ec2fa1491b7ca9da590101d05239e9f33b419c89de7444db2a7e7dd04af9d64de49c1c3772956aa954393310ae71450d99
6
+ metadata.gz: 1e79a2e33a718e0379724b39d115f59e4ef0925f9dcc682f6c553166af90d444f7a74c5551a9474051fcee1213104a8b6fe8c9842a51da1be90f76020c38a3da
7
+ data.tar.gz: 553e1b3553f5c3b49d3d1dae6fdd176706129d892439b04517d5e670f1945b91246c69ec0a2ceb95b14ad7334fb4b9b580cbbc26be1cbfd10495f77fae13673c
data/lib/vwo/constants.rb CHANGED
@@ -27,7 +27,7 @@ class VWO
27
27
  HTTP_PROTOCOL = 'http://'
28
28
  HTTPS_PROTOCOL = 'https://'
29
29
  URL_NAMESPACE = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'
30
- SDK_VERSION = '1.29.1'
30
+ SDK_VERSION = '1.30.0'
31
31
  SDK_NAME = 'ruby'
32
32
  VWO_DELIMITER = '_vwo_'
33
33
  MAX_EVENTS_PER_REQUEST = 5000
@@ -95,8 +95,8 @@ class VWO
95
95
  end
96
96
 
97
97
  user_id_for_hash_value = user_id
98
- if campaign[:isBucketingSeedEnabled]
99
- user_id_for_hash_value = campaign[:id].to_s + "_" + user_id
98
+ if campaign['isBucketingSeedEnabled']
99
+ user_id_for_hash_value = campaign['id'].to_s + "_" + user_id
100
100
  end
101
101
  hash_value = MurmurHash3::V32.str_hash(user_id_for_hash_value, SEED_VALUE) & U_MAX_32_BIT
102
102
  normalize = MAX_TRAFFIC_VALUE.to_f / campaign['percentTraffic']
@@ -147,8 +147,8 @@ class VWO
147
147
  user_id_for_hash_value = user_id
148
148
  if group_id
149
149
  user_id_for_hash_value = group_id.to_s + "_" + user_id
150
- elsif campaign[:isBucketingSeedEnabled]
151
- user_id_for_hash_value = campaign[:id].to_s + "_" + user_id
150
+ elsif campaign['isBucketingSeedEnabled']
151
+ user_id_for_hash_value = campaign['id'].to_s + "_" + user_id
152
152
  end
153
153
  hash_value = MurmurHash3::V32.str_hash(user_id_for_hash_value, SEED_VALUE) & U_MAX_32_BIT
154
154
  bucket_value = get_bucket_value(hash_value, MAX_TRAFFIC_PERCENT)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vwo-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.29.1
4
+ version: 1.30.0
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-25 00:00:00.000000000 Z
11
+ date: 2022-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: codecov